# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.63.0" name = "cdk" version = "0.4.0" authors = ["CDK Developers"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Core Cashu Development Kit library implementing the Cashu protocol" homepage = "https://github.com/cashubtc/cdk" readme = "README.md" license = "MIT" repository = "https://github.com/cashubtc/cdk.git" [lib] name = "cdk" path = "src/lib.rs" [[example]] name = "mint-token" path = "examples/mint-token.rs" required-features = ["wallet"] [[example]] name = "p2pk" path = "examples/p2pk.rs" required-features = ["wallet"] [[example]] name = "proof-selection" path = "examples/proof-selection.rs" required-features = ["wallet"] [[example]] name = "wallet" path = "examples/wallet.rs" required-features = ["wallet"] [[bench]] name = "dhke_benchmarks" path = "benches/dhke_benchmarks.rs" harness = false [dependencies.anyhow] version = "1.0.43" features = ["backtrace"] [dependencies.async-trait] version = "0.1" [dependencies.base64] version = "0.22" [dependencies.bech32] version = "0.9.1" [dependencies.bitcoin] version = "0.30" features = [ "serde", "rand", "rand-std", ] [dependencies.cbor-diag] version = "0.1.12" [dependencies.ciborium] version = "0.2.2" features = ["std"] default-features = false [dependencies.futures] version = "0.3.28" optional = true default-features = false [dependencies.lightning-invoice] version = "0.31" features = ["serde"] [dependencies.once_cell] version = "1.19" [dependencies.regex] version = "1" [dependencies.reqwest] version = "0.12" features = [ "json", "rustls-tls", "rustls-tls-native-roots", "socks", ] optional = true default-features = false [dependencies.serde] version = "1" features = ["derive"] default-features = false [dependencies.serde_json] version = "1" [dependencies.serde_with] version = "3.1" [dependencies.sync_wrapper] version = "0.1.2" [dependencies.thiserror] version = "1" [dependencies.tracing] version = "0.1" features = [ "attributes", "log", ] default-features = false [dependencies.url] version = "2.3" [dependencies.uuid] version = "1" features = ["v4"] [dev-dependencies.bip39] version = "2.0" [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.rand] version = "0.8.5" [features] bench = [] default = [ "mint", "wallet", ] mint = ["dep:futures"] wallet = ["dep:reqwest"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio] version = "1" features = [ "rt-multi-thread", "time", "macros", "sync", ] [target.'cfg(target_arch = "wasm32")'.dependencies.getrandom] version = "0.2" features = ["js"] [target.'cfg(target_arch = "wasm32")'.dependencies.instant] version = "0.1" features = [ "wasm-bindgen", "inaccurate", ] [target.'cfg(target_arch = "wasm32")'.dependencies.tokio] version = "1" features = [ "rt", "macros", "sync", "time", ]