Cargo Features

[dependencies]
bip324 = { version = "0.7.0", default-features = false, features = ["futures", "tokio", "std", "alloc"] }
default = std

The std feature is set by default whenever bip324 is added without default-features = false somewhere in the dependency tree.

futures = std

High-level wrappers using futures traits.

Enables futures

Affects bip324::AsyncProtocol, bip324::AsyncProtocolReader, bip324::AsyncProtocolWriter

tokio = std

High-level wrappers using tokio traits - may affect MSRV requirements.

Enables tokio

The tokio feature may increase the MSRV beyond 1.63.0
depending on which version of tokio is selected by the caller.

Affects bip324::AsyncProtocol, bip324::AsyncProtocolReader, bip324::AsyncProtocolWriter

std default futures? tokio? = alloc

Enables std and std_rng of rand ^0.8.0 and std of bitcoin, bitcoin_hashes ^0.15.0, 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