Registry / networking / iroh-net

iroh-net

JSON →
library0.28.2rscratesunverified

Networking support for iroh, now deprecated in favor of the main iroh crate.

# Cargo.toml [dependencies] iroh-net = "0.28.2"
INSTALL
IMPORT
SIG · IROH-NET
I
iroh-net
networkingrustv0.28.2
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.

MagicEndpoint
use iroh_net::MagicEndpoint;

Creates a MagicEndpoint and prints the local address.

use iroh_net::MagicEndpoint; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let ep = MagicEndpoint::builder().bind(0).await?; println!("Bound to {:?}", ep.local_addr()); Ok(()) }
Debug
Known issues
breakingThis crate is deprecated; use the main `iroh` crate instead.
fix
Replace `iroh-net` dependency with `iroh` and update imports accordingly.
affects: >=0.28.0
Upgrade
Version history
0.28.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
iroh-net — cargo add iroh-net · libregistry