Cargo Features

Payjoin has no features set by default.

[dependencies]
payjoin = { version = "0.15.0", features = ["send", "receive", "base64", "v2"] }
send

Affects payjoin::send, v2::encrypt_message_a, v2::decrypt_message_b

receive = rand

Affects payjoin::receive, v2::decrypt_message_a, v2::encrypt_message_b

base64

Enables bitcoin ^0.30.0

v2 = bhttp, chacha20poly1305, ohttp, serde

Enables rand-std and serde of bitcoin ^0.30.0

Affects receive::v2, send::ContextV2

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.

chacha20poly1305 v2?
ohttp v2?
bhttp v2?
rand receive?
serde v2?