# 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-base" version = "0.28.0" authors = ["n0 team"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "base type and utilities for Iroh" readme = "README.md" 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_base" path = "src/lib.rs" [dependencies.aead] version = "0.5.2" features = ["bytes"] optional = true [dependencies.anyhow] version = "1" [dependencies.blake3] version = "1.4.5" optional = true package = "iroh-blake3" [dependencies.crypto_box] version = "0.9.1" features = [ "serde", "chacha20", ] optional = true [dependencies.data-encoding] version = "2.3.3" optional = true [dependencies.derive_more] version = "1.0.0" features = [ "debug", "display", "from_str", ] optional = true [dependencies.ed25519-dalek] version = "2.0.0" features = [ "serde", "rand_core", ] optional = true [dependencies.getrandom] version = "0.2" optional = true default-features = false [dependencies.hex] version = "0.4.3" [dependencies.once_cell] version = "1.18.0" optional = true [dependencies.postcard] version = "1" features = [ "alloc", "use-std", "experimental-derive", ] optional = true default-features = false [dependencies.rand] version = "0.8" optional = true [dependencies.rand_core] version = "0.6.4" optional = true [dependencies.redb] version = "2.0.0" optional = true [dependencies.serde] version = "1" features = ["derive"] [dependencies.ssh-key] version = "0.6.0" features = [ "ed25519", "std", "rand_core", ] optional = true [dependencies.thiserror] version = "1" [dependencies.ttl_cache] version = "0.5.1" optional = true [dependencies.url] version = "2.5.0" features = ["serde"] optional = true [dependencies.zeroize] version = "1.5" optional = true [dev-dependencies.iroh-test] version = "0.27.0" [dev-dependencies.proptest] version = "1.0.0" [dev-dependencies.serde_json] version = "1.0.107" [dev-dependencies.serde_test] version = "1.0.176" [features] base32 = [ "dep:data-encoding", "dep:postcard", ] default = [ "hash", "base32", ] hash = [ "dep:blake3", "dep:data-encoding", "dep:postcard", "dep:derive_more", "base32", ] key = [ "dep:ed25519-dalek", "dep:once_cell", "dep:rand", "dep:rand_core", "dep:ssh-key", "dep:ttl_cache", "dep:aead", "dep:crypto_box", "dep:zeroize", "dep:url", "dep:derive_more", "dep:getrandom", ] redb = ["dep:redb"] wasm = ["getrandom?/js"] [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(iroh_docsrs)"]