[dependencies.aead]
features = ["bytes"]
optional = true
version = "0.5.2"
[dependencies.anyhow]
version = "1"
[dependencies.blake3]
optional = true
package = "iroh-blake3"
version = "1.4.5"
[dependencies.crypto_box]
features = ["serde", "chacha20"]
optional = true
version = "0.9.1"
[dependencies.data-encoding]
optional = true
version = "2.3.3"
[dependencies.derive_more]
features = ["debug", "display", "from_str"]
optional = true
version = "1.0.0"
[dependencies.ed25519-dalek]
features = ["serde", "rand_core"]
optional = true
version = "2.0.0"
[dependencies.getrandom]
default-features = false
optional = true
version = "0.2"
[dependencies.hex]
version = "0.4.3"
[dependencies.once_cell]
optional = true
version = "1.18.0"
[dependencies.postcard]
default-features = false
features = ["alloc", "use-std", "experimental-derive"]
optional = true
version = "1"
[dependencies.rand]
optional = true
version = "0.8"
[dependencies.rand_core]
optional = true
version = "0.6.4"
[dependencies.redb]
optional = true
version = "2.0.0"
[dependencies.serde]
features = ["derive"]
version = "1"
[dependencies.ssh-key]
features = ["ed25519", "std", "rand_core"]
optional = true
version = "0.6.0"
[dependencies.thiserror]
version = "1"
[dependencies.ttl_cache]
optional = true
version = "0.5.1"
[dependencies.url]
features = ["serde"]
optional = true
version = "2.5.0"
[dependencies.zeroize]
optional = true
version = "1.5"
[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"]
[lib]
name = "iroh_base"
path = "src/lib.rs"
[lints.clippy]
unused-async = "warn"
[lints.rust]
missing_debug_implementations = "warn"
[lints.rust.unexpected_cfgs]
check-cfg = ["cfg(iroh_docsrs)"]
level = "warn"
priority = 0
[package]
authors = ["n0 team"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
description = "base type and utilities for Iroh"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "iroh-base"
readme = "README.md"
repository = "https://github.com/n0-computer/iroh"
rust-version = "1.76"
version = "0.28.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]