Cargo Features

Payjoin has no features set by default.

[dependencies]
payjoin = { version = "0.20.0", features = ["send", "receive", "base64", "v2", "io", "danger-local-https"] }
send

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

receive

Enables rand of bitcoin

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

base64

Enables bitcoin

v2 = bhttp, chacha20poly1305, ohttp, serde

Enables http, rand and serde of bitcoin, serde of url

Affects io::fetch_ohttp_keys, receive::v2, request::V2_REQ_CONTENT_TYPE, send::ContextV2

io danger-local-https?

Enables rustls-tls of reqwest

Affects payjoin::io

danger-local-https = io, rustls

Enables rustls-tls of reqwest

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?
bhttp v2?

Enables bhttp =0.5.1

ohttp v2?
serde v2?
reqwest danger-local-https? io?
rustls danger-local-https?

Enables rustls ^0.22.2