Cargo Features
[dependencies]
pkarr = { version = "2.2.1-alpha.2", default-features = false, features = ["dht", "rand", "async", "relay", "serde", "full"] }
- dht default full?
-
Use [PkarrClient]
Enables dyn-clone and mainline ^2.0.1
- rand default full?
-
Use [Keypair::random]
Enables rand, rand_core of ed25519-dalek
- async full?
-
Use async versions of [PkarrClient] and/or [PkarrRelayClient]
- relay full?
-
Use [PkarrRelayClient]
Enables ureq
- serde full?
-
Derive serde Serialize/Deserialize for PublicKey
Enables serde
- full = async, dht, rand, relay, serde
-
Use all features
- default = dht, rand
-
These default features are set whenever
pkarr
is added without
somewhere in the dependency tree.default-features = false