Cargo Features

[dependencies]
cdk = { version = "0.14.3", default-features = false, features = ["wallet", "nostr", "mint", "auth", "bip353", "swagger", "http_subscription", "tor", "prometheus", "bench"] }
default = auth, bip353, mint, nostr, wallet

These default features are set whenever cdk is added without default-features = false somewhere in the dependency tree.

wallet default nostr tor?

Enables futures, reqwest ^0.12, and rustls, wallet of cdk-common

Affects cdk::wallet, oidc_client::GrantType, oidc_client::RefreshTokenRequest, oidc_client::TokenResponse, cdk::event

nostr default = wallet

Enables nostr-sdk ^0.43.0

Affects payment_request::NostrWaitInfo, streams::nostr

mint default swagger? = cdk-signatory

Enables futures and reqwest ^0.12, mint of cdk-common

Affects cdk::mint, test_helpers::mint, test_helpers::nut10, cdk::event

auth default

Enables jsonwebtoken ^9.2.0, auth of cdk-common

Affects http_client::AuthHttpClient, mint_connector::AuthHttpClient, mint_connector::MintConnector.get_auth_wallet, mint_connector::MintConnector.set_auth_wallet, multi_mint_wallet::WalletConfig.auth_connector

bip353 default

Enables hickory-resolver

Affects mint_connector::MintConnector.resolve_dns_txt, transport::Transport.resolve_dns_txt

swagger = mint

We do not commit to a MSRV with swagger enabled

Enables utoipa, swagger of cdk-common

http_subscription
tor = wallet

Enables arti-client ^0.19.0, arti-hyper, http ^0.2, hyper ^0.14, rustls, tls-api ^0.9, tls-api-native-tls ^0.9, and tor-rtcompat ^0.19.0

Affects mint_connector::TorHttpClient, transport::tor_transport

prometheus

Enables cdk-prometheus

bench

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.

cdk-signatory wasm32 not wasm32 mint