Cargo Features
[dependencies]
iroh-gossip = { version = "0.95.0", default-features = false, features = ["net", "rpc", "simulator", "metrics", "examples", "test-utils"] }
- default = metrics, net
-
These default features are set whenever
iroh-gossipis added withoutsomewhere in the dependency tree.default-features = false - net default examples?
-
Enables futures-concurrency, futures-lite, futures-util, iroh, irpc, tokio, and tokio-util
futures-lite:
net dependencies (optional)
Affects
iroh-gossip::net,iroh-gossip::api… - rpc
-
Enables quinn_endpoint_setup and rpc of irpc and iroh-quinn and tokio
iroh-quinn:
rpc dependencies (optional)
Affects
iroh-gossip::api… - simulator = test-utils
-
Enables clap, comfy-table, rayon, serde_json, toml, and tracing-subscriber
clap:
simulator dependencies (optional)
Required by the sim binary
- metrics default
-
Enables metrics of iroh-metrics
iroh-metrics:
Enables counters and other metrics being tracked. If disabled, all counters return 0. Macros like
inc!will do nothing. - examples = net
- test-utils simulator?
-
Enables humantime-serde and rand_chacha
rand_chacha:
test-utils dependencies (optional)