Cargo.toml 1.1 KB

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