Cargo Features
[dependencies]
iroh = { version = "0.30.0", default-features = false, features = ["metrics", "discovery-local-network", "discovery-pkarr-dht", "examples", "test-utils", "regex"] }
- default = discovery-pkarr-dht, metrics
-
These default features are set whenever
iroh
is added without
somewhere in the dependency tree.default-features = false - metrics default
-
Enables metrics of iroh-metrics, iroh-relay, iroh-net-report, and portmapper
- discovery-local-network
-
Enables swarm-discovery
local-swarm-discovery
Affects
discovery::local_swarm_discovery
… - discovery-pkarr-dht default
-
pkarr:
Use [PkarrClient]
Affects
pkarr::dht
… - examples
-
Enables ticket of iroh-base and clap and indicatif
clap:
Examples
and parse-size =1.0.0 and tracing-subscriber
parse-size:
pinned version to avoid bumping msrv to 1.81
- test-utils
-
Enables axum, server and test-utils of iroh-relay
Features from optional dependencies
- regex implicit feature