Documentation
# 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.89"
name = "iroh-docs"
version = "0.96.0"
authors = ["n0 team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Iroh sync"
readme = "README.md"
license = "MIT/Apache-2.0"
repository = "https://github.com/n0-computer/iroh-docs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "iroh_docsrs",
]

[features]
default = ["metrics"]
metrics = [
    "iroh-metrics/metrics",
    "iroh/metrics",
]

[lib]
name = "iroh_docs"
path = "src/lib.rs"

[[example]]
name = "setup"
path = "examples/setup.rs"

[[test]]
name = "client"
path = "tests/client.rs"

[[test]]
name = "gc"
path = "tests/gc.rs"

[[test]]
name = "sync"
path = "tests/sync.rs"

[[test]]
name = "util"
path = "tests/util.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-channel]
version = "2.3.1"

[dependencies.blake3]
version = "1.8"

[dependencies.bytes]
version = "1.7"
features = ["serde"]

[dependencies.derive_more]
version = "2.0.1"
features = [
    "debug",
    "deref",
    "display",
    "from",
    "from_str",
    "try_into",
    "into",
    "as_ref",
]

[dependencies.ed25519-dalek]
version = "3.0.0-pre.1"
features = [
    "serde",
    "rand_core",
]

[dependencies.futures-buffered]
version = "0.2.4"

[dependencies.futures-lite]
version = "2.3.0"

[dependencies.futures-util]
version = "0.3.25"

[dependencies.hex]
version = "0.4"

[dependencies.iroh]
version = "0.96"

[dependencies.iroh-blobs]
version = "0.98"

[dependencies.iroh-gossip]
version = "0.96"
features = ["net"]

[dependencies.iroh-metrics]
version = "0.38"
default-features = false

[dependencies.iroh-tickets]
version = "0.2"

[dependencies.irpc]
version = "0.12.0"

[dependencies.n0-error]
version = "0.1.0"

[dependencies.n0-future]
version = "0.3"

[dependencies.num_enum]
version = "0.7"

[dependencies.postcard]
version = "1"
features = [
    "alloc",
    "use-std",
    "experimental-derive",
]
default-features = false

[dependencies.quinn]
version = "0.16.0"
package = "iroh-quinn"

[dependencies.rand]
version = "0.9.2"

[dependencies.redb]
version = "2.6.3"

[dependencies.self_cell]
version = "1.0.3"

[dependencies.serde]
version = "1.0.164"
features = ["derive"]

[dependencies.serde-error]
version = "0.1.3"

[dependencies.strum]
version = "0.26"
features = ["derive"]

[dependencies.tempfile]
version = "3.4"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "time",
    "io-util",
]

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dependencies.tokio-util]
version = "0.7.12"
features = [
    "codec",
    "io-util",
    "io",
    "rt",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.data-encoding]
version = "2.6.0"

[dev-dependencies.iroh]
version = "0.96"
features = ["test-utils"]

[dev-dependencies.nested_enum_utils]
version = "0.2"

[dev-dependencies.parking_lot]
version = "0.12.3"

[dev-dependencies.proptest]
version = "1.2.0"

[dev-dependencies.rand_chacha]
version = "0.9"

[dev-dependencies.tempfile]
version = "3.4"

[dev-dependencies.test-strategy]
version = "0.4"

[dev-dependencies.testdir]
version = "0.7"

[dev-dependencies.testresult]
version = "0.4.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.20"
features = ["env-filter"]

[dev-dependencies.tracing-test]
version = "0.2.5"

[lints.rust]
missing_debug_implementations = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(iroh_docsrs)"]