# 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-blobs" version = "0.28.1" authors = [ "dignifiedquire ", "n0 team", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "blob and collection transfer support for iroh" readme = "README.md" keywords = [ "hashing", "quic", "blake3", ] license = "MIT OR Apache-2.0" repository = "https://github.com/n0-computer/iroh-blobs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "iroh_docsrs", ] [profile.dev-ci] opt-level = 1 inherits = "dev" [profile.optimized-release] opt-level = 3 lto = true debug = 0 debug-assertions = false panic = "abort" incremental = false inherits = "release" [lib] name = "iroh_blobs" path = "src/lib.rs" [[example]] name = "fetch-fsm" path = "examples/fetch-fsm.rs" [[example]] name = "fetch-stream" path = "examples/fetch-stream.rs" [[example]] name = "provide-bytes" path = "examples/provide-bytes.rs" [dependencies.anyhow] version = "1" [dependencies.async-channel] version = "2.3.1" [dependencies.bao-tree] version = "0.13" features = [ "tokio_fsm", "validate", ] default-features = false [dependencies.bytes] version = "1.7" features = ["serde"] [dependencies.chrono] version = "0.4.31" [dependencies.derive_more] version = "1.0.0" features = [ "debug", "display", "deref", "deref_mut", "from", "try_into", "into", ] [dependencies.futures-buffered] version = "0.2.4" [dependencies.futures-lite] version = "2.3" [dependencies.genawaiter] version = "0.99.1" features = ["futures03"] [dependencies.hashlink] version = "0.9.0" optional = true [dependencies.hex] version = "0.4.3" [dependencies.iroh-base] version = "0.28.0" features = ["redb"] [dependencies.iroh-io] version = "0.6.0" features = ["stats"] [dependencies.iroh-metrics] version = "0.28.0" default-features = false [dependencies.iroh-net] version = "0.28.1" [dependencies.iroh-router] version = "0.28.0" [dependencies.num_cpus] version = "1.15.0" [dependencies.oneshot] version = "0.1.8" [dependencies.parking_lot] version = "0.12.1" optional = true [dependencies.pin-project] version = "1.1.5" [dependencies.postcard] version = "1" features = [ "alloc", "use-std", "experimental-derive", ] default-features = false [dependencies.quinn] version = "0.12" features = ["ring"] package = "iroh-quinn" [dependencies.rand] version = "0.8" [dependencies.range-collections] version = "0.4.0" [dependencies.redb] version = "2.0.0" optional = true [dependencies.redb_v1] version = "1.5.1" optional = true package = "redb" [dependencies.reflink-copy] version = "0.1.8" optional = true [dependencies.self_cell] version = "1.0.1" [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde-error] version = "0.1.3" [dependencies.smallvec] version = "1.10.0" features = [ "serde", "const_new", ] [dependencies.tempfile] version = "3.10.0" optional = true [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = ["fs"] [dependencies.tokio-util] version = "0.7" features = [ "io-util", "io", ] [dependencies.tracing] version = "0.1" [dependencies.tracing-futures] version = "0.2.5" [dev-dependencies.futures-buffered] version = "0.2.4" [dev-dependencies.futures-util] version = "0.3.30" [dev-dependencies.http-body] version = "0.4.5" [dev-dependencies.iroh-test] version = "0.28" [dev-dependencies.proptest] version = "1.0.0" [dev-dependencies.rcgen] version = "0.12.0" [dev-dependencies.rustls] version = "0.23" features = ["ring"] default-features = false [dev-dependencies.serde_json] version = "1.0.107" [dev-dependencies.serde_test] version = "1.0.176" [dev-dependencies.tempfile] version = "3.10.0" [dev-dependencies.testresult] version = "0.4.0" [dev-dependencies.tokio] version = "1" features = [ "macros", "test-util", ] [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [features] default = ["fs-store"] downloader = [ "dep:parking_lot", "tokio-util/time", "dep:hashlink", ] fs-store = [ "dep:reflink-copy", "redb", "dep:redb_v1", "dep:tempfile", ] metrics = ["iroh-metrics/metrics"] redb = ["dep:redb"] [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(iroh_docsrs)"]