123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- [package]
- name = "cdk"
- version.workspace = true
- edition.workspace = true
- authors = ["CDK Developers"]
- description = "Core Cashu Development Kit library implementing the Cashu protocol"
- homepage = "https://github.com/cashubtc/cdk"
- repository = "https://github.com/cashubtc/cdk.git"
- rust-version.workspace = true # MSRV
- license.workspace = true
- [features]
- default = ["mint", "wallet", "auth", "grpc"]
- wallet = ["dep:reqwest", "cdk-common/wallet"]
- mint = ["dep:futures", "dep:reqwest", "cdk-common/mint"]
- auth = ["dep:jsonwebtoken", "cdk-common/auth", "cdk-common/auth"]
- # We do not commit to a MSRV with swagger enabled
- swagger = ["mint", "dep:utoipa", "cdk-common/swagger"]
- bench = []
- grpc = ["cdk-signatory/grpc"]
- http_subscription = []
- [dependencies]
- cdk-signatory.workspace = true
- cdk-common.workspace = true
- cbor-diag.workspace = true
- async-trait.workspace = true
- anyhow.workspace = true
- bitcoin.workspace = true
- ciborium.workspace = true
- lightning-invoice.workspace = true
- regex.workspace = true
- reqwest = { workspace = true, optional = true }
- serde.workspace = true
- serde_json.workspace = true
- serde_with.workspace = true
- tracing.workspace = true
- thiserror.workspace = true
- futures = { workspace = true, optional = true, features = ["alloc"] }
- url.workspace = true
- utoipa = { workspace = true, optional = true }
- uuid.workspace = true
- jsonwebtoken = { workspace = true, optional = true }
- # -Z minimal-versions
- sync_wrapper = "0.1.2"
- bech32 = "0.9.1"
- [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
- tokio = { workspace = true, features = [
- "rt-multi-thread",
- "time",
- "macros",
- "sync",
- ] }
- getrandom = { version = "0.2" }
- tokio-tungstenite = { workspace = true, features = [
- "rustls",
- "rustls-tls-native-roots",
- "connect"
- ] }
- [target.'cfg(target_arch = "wasm32")'.dependencies]
- tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
- getrandom = { version = "0.2", features = ["js"] }
- [[example]]
- name = "mint-token"
- required-features = ["wallet"]
- [[example]]
- name = "melt-token"
- required-features = ["wallet"]
- [[example]]
- name = "p2pk"
- required-features = ["wallet"]
- [[example]]
- name = "wallet"
- required-features = ["wallet"]
- [[example]]
- name = "proof-selection"
- required-features = ["wallet"]
- [[example]]
- name = "auth_wallet"
- required-features = ["wallet", "auth"]
- [dev-dependencies]
- rand.workspace = true
- cdk-sqlite.workspace = true
- bip39.workspace = true
- tracing-subscriber.workspace = true
- criterion = "0.5.1"
- reqwest = { workspace = true }
- [[bench]]
- name = "dhke_benchmarks"
- harness = false
|