# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2024" rust-version = "1.91" name = "iroh" version = "1.2.0" authors = [ "dignifiedquire ", "n0 team", ] build = "build.rs" autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "p2p quic connections dialed by public key" readme = "README.md" keywords = [ "quic", "networking", "holepunching", "p2p", ] license = "MIT OR Apache-2.0" repository = "https://github.com/n0-computer/iroh" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "iroh_docsrs", ] [package.metadata.cargo_check_external_types] allowed_external_types = [ "iroh_base::*", "iroh_dns::*", "iroh_relay::*", "iroh_metrics::*", "n0_error::*", "n0_watcher::*", "noq::*", "noq_proto::*", "noq_udp::*", "bytes::*", "http::*", "serde_core::*", "tokio::*", "url::*", "rustls::*", "futures_core::stream::Stream", "futures_lite::stream::Boxed", ] [features] default = [ "metrics", "fast-apple-datapath", "portmapper", "tls-ring", ] fast-apple-datapath = ["noq/fast-apple-datapath"] metrics = [ "iroh-metrics/metrics", "iroh-relay/metrics", ] platform-verifier = ["iroh-relay/platform-verifier"] portmapper = ["dep:portmapper"] qlog = ["noq/qlog"] test-utils = [ "iroh-relay/test-utils", "iroh-relay/server", "dep:axum", "dep:simple-dns", ] tls-aws-lc-rs = [ "noq/aws-lc-rs", "iroh-relay/tls-aws-lc-rs", "iroh-dns/tls-aws-lc-rs", ] tls-ring = [ "noq/ring", "iroh-relay/tls-ring", "iroh-dns/tls-ring", ] unstable-custom-transports = [] unstable-net-report = [] [lib] name = "iroh" crate-type = [ "lib", "cdylib", ] path = "src/lib.rs" [[example]] name = "0rtt" path = "examples/0rtt.rs" required-features = [] [[example]] name = "auth-hook" path = "examples/auth-hook.rs" [[example]] name = "connect" path = "examples/connect.rs" required-features = [] [[example]] name = "connect-unreliable" path = "examples/connect-unreliable.rs" required-features = [] [[example]] name = "custom-transport" path = "examples/custom-transport.rs" required-features = [ "test-utils", "unstable-custom-transports", ] [[example]] name = "echo" path = "examples/echo.rs" required-features = [] [[example]] name = "echo-no-router" path = "examples/echo-no-router.rs" required-features = [] [[example]] name = "home-relay-status" path = "examples/home-relay-status.rs" required-features = [] [[example]] name = "incoming-filter" path = "examples/incoming-filter.rs" required-features = [] [[example]] name = "listen" path = "examples/listen.rs" required-features = [] [[example]] name = "listen-unreliable" path = "examples/listen-unreliable.rs" required-features = [] [[example]] name = "monitor-connections" path = "examples/monitor-connections.rs" [[example]] name = "pq-only-key-exchange" path = "examples/pq-only-key-exchange.rs" required-features = ["tls-aws-lc-rs"] [[example]] name = "prefer-pq-key-exchange" path = "examples/prefer-pq-key-exchange.rs" required-features = ["tls-aws-lc-rs"] [[example]] name = "remote-info" path = "examples/remote-info.rs" [[example]] name = "screening-connection" path = "examples/screening-connection.rs" [[example]] name = "search" path = "examples/search.rs" required-features = [] [[example]] name = "transfer" path = "examples/transfer.rs" required-features = [] [[test]] name = "integration" path = "tests/integration.rs" [[test]] name = "patchbay" path = "tests/patchbay.rs" [dependencies.axum] version = "0.8" optional = true [dependencies.backon] version = "1.4" [dependencies.blake3] version = "1.8.3" default-features = false [dependencies.bytes] version = "1.11" [dependencies.ctutils] version = "0.4.0" default-features = false [dependencies.data-encoding] version = "2.2" [dependencies.derive_more] version = "2.0.1" features = [ "debug", "display", "from", "try_into", "deref", "from_str", "into_iterator", ] [dependencies.ed25519-dalek] version = ">=3.0.0-rc.0,<4.0.0" features = [ "serde", "rand_core", "zeroize", "pkcs8", "pem", ] [dependencies.futures-util] version = "0.3" [dependencies.http] version = "1" [dependencies.ipnet] version = "2" [dependencies.iroh-base] version = "1.2.0" features = [ "key", "relay", ] default-features = false [dependencies.iroh-dns] version = "1.3.0" [dependencies.iroh-metrics] version = "1.0.1" default-features = false [dependencies.iroh-relay] version = "1.2.0" default-features = false [dependencies.n0-error] version = "1.0.0" [dependencies.n0-future] version = "0.3" [dependencies.n0-watcher] version = "1.0.0" [dependencies.netwatch] version = "0.19.3" [dependencies.noq] version = "1.3.0" features = ["rustls"] default-features = false [dependencies.noq-proto] version = "1.3.0" default-features = false [dependencies.noq-udp] version = "1.3.0" default-features = false [dependencies.papaya] version = "0.2.3" default-features = false [dependencies.pin-project] version = "1" [dependencies.portable-atomic] version = "1" [dependencies.rand] version = "0.10" [dependencies.reqwest] version = "0.13" features = [ "rustls-no-provider", "stream", ] default-features = false [dependencies.rustc-hash] version = "2" [dependencies.rustls] version = "0.23.33" default-features = false [dependencies.serde] version = "1.0.219" features = [ "derive", "rc", ] [dependencies.simple-dns] version = "0.12" optional = true [dependencies.smallvec] version = "1.11.1" [dependencies.strum] version = "0.28" features = ["derive"] [dependencies.tokio] version = "1.44.1" features = [ "io-util", "macros", "sync", "rt", ] [dependencies.tokio-stream] version = "0.1.15" features = ["sync"] [dependencies.tokio-util] version = "0.7" features = [ "io-util", "io", "rt", ] [dependencies.tracing] version = "0.1" [dependencies.url] version = "2.5" features = ["serde"] [dependencies.webpki_types] version = "1.12" package = "rustls-pki-types" [dev-dependencies.chrono] version = "0.4.43" [dev-dependencies.console_error_panic_hook] version = "0.1" [dev-dependencies.n0-error] version = "1.0.0" features = ["anyhow"] [dev-dependencies.postcard] version = "1.1.1" features = ["use-std"] [dev-dependencies.rand_chacha] version = "0.10" [dev-dependencies.simple-dns] version = "0.12" [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [build-dependencies.cfg_aliases] version = "0.2.2" [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.getrandom] version = "0.4" features = ["wasm_js"] [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.time] version = "0.3" features = ["wasm-bindgen"] [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.wasm-bindgen-futures] version = "0.4" [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test] version = "0.3.62" [target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dev-dependencies.wasm-tracing] version = "2.1.0" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.noq] version = "1.3.0" features = [ "runtime-tokio", "rustls", ] default-features = false [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.portmapper] version = "0.19.3" optional = true default-features = false [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.tokio] version = "1" features = [ "io-util", "macros", "sync", "rt", "net", "fs", "io-std", ] [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.assert_matches] version = "1.5.0" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.axum] version = "0.8" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.clap] version = "4" features = ["derive"] [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.console] version = "0.16" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.indicatif] version = "0.18" features = ["tokio"] [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.iroh-base] version = "1.2.0" features = [ "key", "relay", ] default-features = false [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.iroh-relay] version = "1.2.0" features = [ "test-utils", "server", ] default-features = false [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.n0-tracing-test] version = "0.3" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.parse-size] version = "1.1.0" features = ["std"] [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.pretty_assertions] version = "1.4" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.rand_chacha] version = "0.10" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.serde_json] version = "1" [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.tokio] version = "1" features = [ "io-util", "sync", "rt", "rt-multi-thread", "net", "fs", "macros", "time", "test-util", ] [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [target.'cfg(target_os = "linux")'.dev-dependencies.ctor] version = "1.0" [target.'cfg(target_os = "linux")'.dev-dependencies.patchbay] version = "0.7" features = ["iroh-metrics"] [target.'cfg(target_os = "linux")'.dev-dependencies.testdir] version = "0.10" [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(iroh_docsrs)", "cfg(iroh_loom)", "cfg(skip_patchbay)", ]