# 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 = "2021" rust-version = "1.76" name = "iroh" version = "0.28.1" authors = [ "dignifiedquire ", "n0 team", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A toolkit for building distributed applications" readme = "README.md" keywords = [ "networking", "p2p", "holepunching", "ipfs", ] license = "MIT OR Apache-2.0" repository = "https://github.com/n0-computer/iroh" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "iroh_docsrs", ] [lib] name = "iroh" path = "src/lib.rs" [[example]] name = "client" path = "examples/client.rs" required-features = ["examples"] [[example]] name = "collection-fetch" path = "examples/collection-fetch.rs" [[example]] name = "collection-provide" path = "examples/collection-provide.rs" [[example]] name = "custom-protocol" path = "examples/custom-protocol.rs" required-features = ["examples"] [[example]] name = "hello-world-fetch" path = "examples/hello-world-fetch.rs" [[example]] name = "hello-world-provide" path = "examples/hello-world-provide.rs" [[example]] name = "local-swarm-discovery" path = "examples/local-swarm-discovery.rs" required-features = ["discovery-local-network"] [[example]] name = "rpc" path = "examples/rpc.rs" required-features = ["examples"] [[test]] name = "batch" path = "tests/batch.rs" [[test]] name = "client" path = "tests/client.rs" [[test]] name = "gc" path = "tests/gc.rs" [[test]] name = "provide" path = "tests/provide.rs" [[test]] name = "sync" path = "tests/sync.rs" [dependencies.anyhow] version = "1" [dependencies.async-channel] version = "2.3.1" [dependencies.bao-tree] version = "0.13" features = ["tokio_fsm"] default-features = false [dependencies.bytes] version = "1.7" [dependencies.clap] version = "4" features = ["derive"] optional = true [dependencies.console] version = "0.15.5" optional = true [dependencies.derive_more] version = "1.0.0" features = [ "debug", "display", "from", "try_into", "from_str", ] [dependencies.futures-buffered] version = "0.2.4" [dependencies.futures-lite] version = "2.3" [dependencies.futures-util] version = "0.3" [dependencies.genawaiter] version = "0.99" features = ["futures03"] default-features = false [dependencies.hex] version = "0.4.3" [dependencies.indicatif] version = "0.17" features = ["tokio"] optional = true [dependencies.iroh-base] version = "0.28.0" features = ["key"] [dependencies.iroh-blobs] version = "0.28.0" features = ["downloader"] [dependencies.iroh-docs] version = "0.28.0" [dependencies.iroh-gossip] version = "0.28.1" [dependencies.iroh-io] version = "0.6.0" features = ["stats"] [dependencies.iroh-metrics] version = "0.28.0" optional = true [dependencies.iroh-net] version = "0.28.1" features = ["discovery-local-network"] [dependencies.iroh-router] version = "0.28.0" [dependencies.nested_enum_utils] version = "0.1.0" [dependencies.num_cpus] version = "1.15.0" [dependencies.parking_lot] version = "0.12.1" [dependencies.portable-atomic] version = "1" [dependencies.postcard] version = "1" features = [ "alloc", "use-std", "experimental-derive", ] default-features = false [dependencies.quic-rpc] version = "0.14" features = [ "flume-transport", "quinn-transport", ] default-features = false [dependencies.quic-rpc-derive] version = "0.14" [dependencies.quinn] version = "0.12" package = "iroh-quinn" [dependencies.rand] version = "0.8" [dependencies.ref-cast] version = "1.0.23" [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde-error] version = "0.1.3" [dependencies.strum] version = "0.25" features = ["derive"] [dependencies.tempfile] version = "3.4" [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = [ "io-util", "rt", ] [dependencies.tokio-stream] version = "0.1" [dependencies.tokio-util] version = "0.7" features = [ "codec", "io-util", "io", "time", ] [dependencies.tracing] version = "0.1" [dependencies.url] version = "2.5.0" features = ["serde"] [dependencies.walkdir] version = "2" [dev-dependencies.anyhow] version = "1" [dev-dependencies.genawaiter] version = "0.99" features = ["futures03"] [dev-dependencies.iroh-test] version = "0.28.0" [dev-dependencies.proptest] version = "1.2.0" [dev-dependencies.rand_chacha] version = "0.3.1" [dev-dependencies.regex] version = "1.7.1" features = ["std"] [dev-dependencies.serde_json] version = "1.0.107" [dev-dependencies.testdir] version = "0.9.1" [dev-dependencies.testresult] version = "0.4.0" [dev-dependencies.tokio] version = "1" features = [ "macros", "io-util", "rt", ] [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [features] default = [ "metrics", "fs-store", ] discovery-local-network = [ "iroh-net/discovery-local-network", "examples", "dep:console", ] discovery-pkarr-dht = ["iroh-net/discovery-pkarr-dht"] examples = [ "dep:clap", "dep:indicatif", ] fs-store = ["iroh-blobs/fs-store"] metrics = [ "iroh-metrics", "iroh-blobs/metrics", ] test = [] test-utils = ["iroh-net/test-utils"] [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(iroh_docsrs)"]