Cargo.toml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. http = ["dep:cdk-http-client"]
  23. [dependencies]
  24. cdk-http-client = { workspace = true, optional = true }
  25. async-trait.workspace = true
  26. bitcoin.workspace = true
  27. cashu.workspace = true
  28. cbor-diag.workspace = true
  29. ciborium.workspace = true
  30. serde.workspace = true
  31. lightning-invoice.workspace = true
  32. lightning.workspace = true
  33. thiserror.workspace = true
  34. tracing.workspace = true
  35. cdk-prometheus = { workspace = true, optional = true}
  36. url.workspace = true
  37. uuid = { workspace = true, optional = true }
  38. utoipa = { workspace = true, optional = true }
  39. futures.workspace = true
  40. anyhow.workspace = true
  41. serde_json.workspace = true
  42. serde_with.workspace = true
  43. web-time.workspace = true
  44. parking_lot = "0.12.5"
  45. paste = "1.0.15"
  46. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  47. tokio = { version = "1", default-features = false, features = ["rt", "rt-multi-thread", "macros", "test-util", "sync"] }
  48. [target.'cfg(target_arch = "wasm32")'.dependencies]
  49. uuid = { workspace = true, features = ["js"], optional = true }
  50. getrandom = { version = "0.2", features = ["js"] }
  51. tokio.workspace = true
  52. wasm-bindgen = "0.2"
  53. wasm-bindgen-futures = "0.4"
  54. [dev-dependencies]
  55. rand.workspace = true
  56. bip39.workspace = true
  57. wasm-bindgen-test = "0.3"
  58. criterion.workspace = true
  59. [[bench]]
  60. name = "transaction_id_benchmark"
  61. harness = false
  62. [lints]
  63. workspace = true