Cargo.toml 2.0 KB

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