Cargo Features

[dependencies]
cdk-common = { version = "0.15.2-rc.0", default-features = false, features = ["swagger", "wallet", "mint", "nostr", "prometheus", "http", "grpc", "bench", "test"] }
default = mint, wallet

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

swagger

Enables utoipa, swagger of cashu

wallet default nostr?

Enables uuid, wallet of cashu

Affects database::wallet, cdk-common::wallet

mint default

Enables uuid, mint of cashu

Affects database::mint, cdk-common::melt, cdk-common::mint, cdk-common::payment, cdk-common::state, ws::notification_uuid_to_notification_string, ws::notification_to_ws_message

nostr = wallet

Enables nostr of cashu

prometheus

Enables cdk-prometheus

Affects payment::MetricsMintPayment

http

Enables cdk-http-client

grpc

Enables tonic

Affects cdk-common::grpc

bench
test

Affects mint::test, wallet::test

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-prometheus prometheus?