Cargo.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [package]
  2. name = "cdk-common"
  3. version.workspace = true
  4. authors = ["CDK Developers"]
  5. description = "CDK common types and traits"
  6. homepage = "https://github.com/cashubtc/cdk"
  7. repository = "https://github.com/cashubtc/cdk.git"
  8. edition.workspace = true
  9. rust-version.workspace = true # MSRV
  10. license.workspace = true
  11. readme = "README.md"
  12. [features]
  13. default = ["mint", "wallet"]
  14. swagger = ["dep:utoipa", "cashu/swagger"]
  15. test = []
  16. bench = []
  17. wallet = ["cashu/wallet"]
  18. mint = ["cashu/mint", "dep:uuid"]
  19. auth = ["cashu/auth"]
  20. nostr = ["wallet", "cashu/nostr"]
  21. prometheus = ["cdk-prometheus/default"]
  22. [dependencies]
  23. async-trait.workspace = true
  24. bitcoin.workspace = true
  25. cashu.workspace = true
  26. cbor-diag.workspace = true
  27. ciborium.workspace = true
  28. serde.workspace = true
  29. lightning-invoice.workspace = true
  30. lightning.workspace = true
  31. thiserror.workspace = true
  32. tracing.workspace = true
  33. cdk-prometheus = { workspace = true, optional = true}
  34. url.workspace = true
  35. uuid = { workspace = true, optional = true }
  36. utoipa = { workspace = true, optional = true }
  37. futures.workspace = true
  38. anyhow.workspace = true
  39. serde_json.workspace = true
  40. serde_with.workspace = true
  41. web-time.workspace = true
  42. parking_lot = "0.12.5"
  43. paste = "1.0.15"
  44. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  45. tokio = { version = "1", default-features = false, features = ["rt", "rt-multi-thread", "macros", "test-util", "sync"] }
  46. [target.'cfg(target_arch = "wasm32")'.dependencies]
  47. uuid = { workspace = true, features = ["js"], optional = true }
  48. getrandom = { version = "0.2", features = ["js"] }
  49. tokio.workspace = true
  50. wasm-bindgen = "0.2"
  51. wasm-bindgen-futures = "0.4"
  52. [dev-dependencies]
  53. rand.workspace = true
  54. bip39.workspace = true
  55. wasm-bindgen-test = "0.3"
  56. criterion.workspace = true
  57. [[bench]]
  58. name = "transaction_id_benchmark"
  59. harness = false
  60. [lints]
  61. workspace = true