Cargo.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [package]
  2. name = "cdk-common"
  3. version = "0.7.1"
  4. edition = "2021"
  5. authors = ["CDK Developers"]
  6. description = "CDK common types and traits"
  7. homepage = "https://github.com/cashubtc/cdk"
  8. repository = "https://github.com/cashubtc/cdk.git"
  9. rust-version = "1.63.0" # MSRV
  10. license = "MIT"
  11. [features]
  12. default = ["mint", "wallet"]
  13. swagger = ["dep:utoipa", "cashu/swagger"]
  14. bench = []
  15. wallet = ["cashu/wallet"]
  16. mint = ["cashu/mint", "dep:uuid"]
  17. [dependencies]
  18. async-trait = "0.1"
  19. bitcoin = { version = "0.32.2", features = [
  20. "base64",
  21. "serde",
  22. "rand",
  23. "rand-std",
  24. ] }
  25. cashu = { path = "../cashu", default-features = false, version = "0.7.1" }
  26. cbor-diag = "0.1.12"
  27. ciborium = { version = "0.2.2", default-features = false, features = ["std"] }
  28. serde = { version = "1", features = ["derive"] }
  29. lightning-invoice = { version = "0.32.0", features = ["serde", "std"] }
  30. thiserror = "2"
  31. tracing = "0.1"
  32. url = "2.3"
  33. uuid = { version = "=1.12.1", features = ["v4", "serde"], optional = true }
  34. utoipa = { version = "4", optional = true }
  35. futures = "0.3.31"
  36. anyhow = "1.0"
  37. serde_json = "1"
  38. serde_with = "3"
  39. [target.'cfg(target_arch = "wasm32")'.dependencies]
  40. instant = { version = "0.1", features = ["wasm-bindgen", "inaccurate"] }
  41. [dev-dependencies]
  42. rand = "0.8.5"
  43. bip39 = "2.0"