Cargo.toml 1.7 KB

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