Cargo Features
[dependencies]
bip324 = { version = "0.6.0", default-features = false, features = ["std", "alloc", "async", "tokio"] }
- default = std
-
The
std
feature is set by default wheneverbip324
is added without
somewhere in the dependency tree.default-features = false - std default async? tokio? = alloc
-
Enables std and std_rng of rand and std of bitcoin, bitcoin_hashes, and chacha20-poly1305
bitcoin_hashes:
Depending on hashes directly for HKDF, can drop this and use the re-exported version in bitcoin > 0.32.*.
Affects
bip324::serde
,bip324::ProtocolError
,bip324::ProtocolFailureSuggestion
… - alloc std
-
Enables alloc of chacha20-poly1305
Affects
bip324::Payload
… - async = std
-
Affects
bip324::AsyncProtocol
,bip324::AsyncProtocolReader
,bip324::AsyncProtocolWriter
… - tokio = std
-
Enables io-util of tokio >=1.37.0, <1.39.0
Must be under 1.39.0 due to MSRV 1.63.0 requirement.
Affects
bip324::AsyncProtocol
,bip324::AsyncProtocolReader
,bip324::AsyncProtocolWriter
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.