radio/iroh-base/Cargo.toml

[package]
name = "iroh-base"
version = "0.96.1"
edition = "2024"
readme = "README.md"
description = "base type and utilities for Iroh"
license = "MIT OR Apache-2.0"
authors = ["n0 team"]
repository = "https://github.com/n0-computer/iroh"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.89"

[lints]
workspace = true

[dependencies]
curve25519-dalek = { version = "=5.0.0-pre.1", features = ["serde", "rand_core", "zeroize"], optional = true }
data-encoding = { version = "2.3.3", optional = true }
# Pin digest to version compatible with curve25519-dalek 5.0.0-pre.1.
digest = { version = "=0.11.0-rc.10", optional = true }
# Pin sha2 to fix version incompatibility
sha2 = { version = "=0.11.0-rc.2", optional = true }
ed25519-dalek = { version = "=3.0.0-pre.1", features = ["serde", "rand_core", "zeroize"], optional = true }
derive_more = { version = "2.0.1", features = ["debug", "display"], optional = true }
url = { version = "2.5.3", features = ["serde"], optional = true }
rand_core = { version = "0.9.3", optional = true }
serde = { version = "1", features = ["derive", "rc"] }
n0-error = "0.1"
zeroize = { version = "1.8.2", optional = true, features = ["derive"] }
zeroize_derive = { version = "1.4.2", optional = true } # needed for minimal versions

[dev-dependencies]
postcard = { version = "1", features = ["use-std"] }
proptest = "1.0.0"
rand = "0.9.2"
rand_chacha = "0.9"
serde_json = "1"
serde_test = "1"


[features]
default = ["relay"]
key = [
  "dep:curve25519-dalek",
  "dep:digest",
  "dep:ed25519-dalek",
  "dep:sha2",
  "dep:url",
  "dep:derive_more",
  "dep:data-encoding",
  "dep:rand_core",
  "dep:zeroize",
  "dep:zeroize_derive",
  "relay",
]
relay = [
  "dep:url",
  "dep:derive_more",
]

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

Synonyms

nox/Cargo.toml
optica/Cargo.toml
rs/Cargo.toml
cw-cyber/Cargo.toml
zheng/Cargo.toml
trident/Cargo.toml
honeycrisp/Cargo.toml
bbg/Cargo.toml
lens/Cargo.toml
radio/Cargo.toml
hemera/Cargo.toml
strata/Cargo.toml
strata/compute/Cargo.toml
rs/rsc/Cargo.toml
lens/binius/Cargo.toml
hemera/bench/Cargo.toml
radio/iroh-blobs/Cargo.toml
cyb/cyb-boot/Cargo.toml
radio/iroh-ffi/Cargo.toml
hemera/wgsl/Cargo.toml
strata/proof/Cargo.toml
radio/particle/Cargo.toml
rs/macros/Cargo.toml
radio/iroh-gossip/Cargo.toml
cyb/src-tauri/Cargo.toml
honeycrisp/rane/Cargo.toml
honeycrisp/unimem/Cargo.toml
lens/src/Cargo.toml
rs/core/Cargo.toml
radio/radio-cli/Cargo.toml
strata/core/Cargo.toml
cyb/cyb/Cargo.toml
nox/rs/Cargo.toml
hemera/cli/Cargo.toml
radio/iroh-dns-server/Cargo.toml
nox/cli/Cargo.toml
hemera/rs/Cargo.toml
radio/iroh-docs/Cargo.toml
lens/ikat/Cargo.toml
lens/core/Cargo.toml
radio/iroh-car/Cargo.toml
strata/ext/Cargo.toml
nox/metal/Cargo.toml
radio/cyber-bao/Cargo.toml
strata/src/Cargo.toml
radio/iroh/Cargo.toml
bostrom-mcp/rust/Cargo.toml
rs/mir-format/Cargo.toml
radio/iroh-willow/Cargo.toml
radio/iroh-relay/Cargo.toml
lens/assayer/Cargo.toml
honeycrisp/aruminium/Cargo.toml
honeycrisp/acpu/Cargo.toml
lens/brakedown/Cargo.toml
lens/porphyry/Cargo.toml
cw-cyber/contracts/std-test/Cargo.toml
strata/genies/cli/Cargo.toml
strata/jali/rs/Cargo.toml
cw-cyber/contracts/hub-channels/Cargo.toml
cw-cyber/contracts/hub-libs/Cargo.toml
strata/kuro/cli/Cargo.toml
cw-cyber/contracts/litium-core/Cargo.toml
cw-cyber/contracts/litium-refer/Cargo.toml
cyb/cyb/cyb-services/Cargo.toml
strata/nebu/rs/Cargo.toml
radio/iroh-ffi/iroh-js/Cargo.toml
cw-cyber/contracts/cw-cyber-subgraph/Cargo.toml
cw-cyber/packages/cyber-std-test/Cargo.toml
rs/tests/macro-integration/Cargo.toml
strata/kuro/rs/Cargo.toml
strata/nebu/wgsl/Cargo.toml
cw-cyber/contracts/graph-filter/Cargo.toml
cw-cyber/contracts/litium-wrap/Cargo.toml
radio/tests/integration/Cargo.toml
strata/trop/rs/Cargo.toml
honeycrisp/aruminium/benches/Cargo.toml
cw-cyber/contracts/hub-tokens/Cargo.toml
strata/trop/wgsl/Cargo.toml
radio/iroh/bench/Cargo.toml
cw-cyber/contracts/cw-cyber-gift/Cargo.toml
cw-cyber/contracts/litium-mine/Cargo.toml
cyb/cyb/cyb-ui/Cargo.toml
trident/editor/zed/Cargo.toml
cw-cyber/contracts/cw-cyber-passport/Cargo.toml
strata/jali/cli/Cargo.toml
strata/jali/wgsl/Cargo.toml
cw-cyber/contracts/hub-protocols/Cargo.toml
cw-cyber/contracts/hub-skills/Cargo.toml
strata/nebu/cli/Cargo.toml
cw-cyber/packages/hub-base/Cargo.toml
honeycrisp/rane/benches/Cargo.toml
strata/trop/cli/Cargo.toml
strata/kuro/wgsl/Cargo.toml
cw-cyber/packages/cyber-std/Cargo.toml
cw-cyber/contracts/cybernet/Cargo.toml
cyb/cyb/cyb-shell/Cargo.toml
cw-cyber/tests/litium-tests/Cargo.toml
cw-cyber/contracts/hub-networks/Cargo.toml
strata/genies/rs/Cargo.toml
strata/genies/wgsl/Cargo.toml
cw-cyber/contracts/litium-stake/Cargo.toml
cyb/cyb/cyb-portal/Cargo.toml
honeycrisp/unimem/experiments/iosurface_probe/Cargo.toml
honeycrisp/unimem/experiments/hyp_probe/Cargo.toml
honeycrisp/unimem/experiments/dext_contiguous_alloc/client/Cargo.toml
honeycrisp/unimem/experiments/dext_iosurface_pa/client/Cargo.toml

Neighbours