Cargo Features
[dependencies]
pkarr = { version = "5.0.2", default-features = false, features = ["keys", "signed_packet", "dht", "relays", "lmdb-cache", "endpoints", "tls", "reqwest-resolve", "reqwest-builder", "full-client", "extra", "full"] }
- keys signed_packet?
-
Basic types
- signed_packet __client? = keys
-
Enables bytes, ntimestamp, self_cell, and simple-dns ^0.9.3
simple-dns:
feat: signed_packet dependencies
- dht full-client = __client
-
Clients
Enable the [Client] with [mainline] support.Enables mainline
- relays full-client = __client
-
Enables [Client] with Relays.
Enables futures-buffered, reqwest ^0.12, and url
- lmdb-cache extra? = __client
-
Extra Use LmdbCache implementation. Only available if the
clientmodule is enabled.Enables byteorder, heed ^0.21.0, and page_size
- endpoints extra? reqwest-resolve? tls? = __client
-
Enables endpoints spec.
Only available if the
clientmodule is enabled.Enables genawaiter
feat: endpoints dependencies
Affects
builder::DEFAULT_MAX_RECURSION_DEPTH,extra::endpoints… - tls extra? reqwest-builder? = endpoints
-
Enables tls spec.
Only available if the
clientmodule is enabled.Enables rustls and rustls-webpki ^0.102, pkcs8 of ed25519-dalek
Affects
extra::tls… - reqwest-resolve extra? reqwest-builder? = endpoints
-
Use reqwest::dns::Resolve trait implementation for [Client].
Only available if the
clientmodule is enabled.Enables reqwest ^0.12
Affects
extra::reqwest… - reqwest-builder extra? = reqwest-resolve, tls
-
Create a reqwest::ClientBuilder from [Client].
Only available if the
clientmodule is enabled. - full-client default full? = dht, relays
-
Combinations
Use all features - extra full? = endpoints, lmdb-cache, reqwest-builder, reqwest-resolve, tls
-
Extra features that might benefit most but not all developers building apps using Pkarr.
Only available if the
clientmodule is enabled. - full = extra, full-client
-
Use all features including the
full-clientandextrafeatures. - default = full-client
-
The
full-clientfeature is set by default wheneverpkarris added withoutsomewhere in the dependency tree.default-features = false - __client dht? endpoints? lmdb-cache? relays? = signed_packet
-
Enable client dependencies.
Does not enable anything on its own you need to enable either
dhtand/orrelaysto enable the [Client].Except in WASM where you have to enable
relays, whiledhtdoes not do anything.Enables sha1_smol, tokio, tracing, and wasm-bindgen-futures
sha1_smol:
feat: relay dependencies
and async-compat, dyn-clone, futures-lite, log, and lru
futures-lite:
feat: client dependencies
Affects
pkarr::DEFAULT_CACHE_SIZE…