Registry / networking / tokio-net

tokio-net

JSON →
library0.0.0rscratesunverified

Event loop that drives Tokio I/O resources.

# Cargo.toml [dependencies] tokio-net = "0.0.0"
INSTALL
IMPORT
SIG · TOKIO-NET
T
tokio-net
networkingrustv0.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TcpListener
use tokio_net::TcpListener;

Binds a TCP listener on localhost port 8080.

use tokio_net::TcpListener; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let listener = TcpListener::bind("127.0.0.1:8080").await?; println!("Listening on port 8080"); Ok(()) }
Debug
Known issues
gotchaThis crate is a low-level component; prefer tokio::net for most use cases.
fix
Use the tokio crate with the 'net' feature instead.
affects: >=0.1.0
Upgrade
Version history
0.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
23
OpenAI (training)
2
Resources
tokio-net — cargo add tokio-net · libregistry