In Rust I'm getting the error during cargo build
:
use tokio::net::{TcpListener, TcpStream};
^^^^^ use of undeclared crate or module `tokio`
even though I have
[dependencies]
tokio-tungstenite = {version = "0.17", features = ["native-tls"]}
and I can see the tokio
in the cargo tree
└── tokio-tungstenite v0.17.1
├── tokio v1.18.1
Is Rust not pulling in the transitive dependencies? I thought it would.