Cargo.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. [package]
  2. name = "cdk"
  3. version.workspace = true
  4. edition.workspace = true
  5. authors = ["CDK Developers"]
  6. description = "Core Cashu Development Kit library implementing the Cashu protocol"
  7. homepage = "https://github.com/cashubtc/cdk"
  8. repository = "https://github.com/cashubtc/cdk.git"
  9. rust-version.workspace = true # MSRV
  10. license.workspace = true
  11. [features]
  12. default = ["mint", "wallet", "auth"]
  13. wallet = ["dep:reqwest", "cdk-common/wallet"]
  14. mint = ["dep:futures", "dep:reqwest", "cdk-common/mint"]
  15. auth = ["dep:jsonwebtoken", "cdk-common/auth", "cdk-common/auth"]
  16. # We do not commit to a MSRV with swagger enabled
  17. swagger = ["mint", "dep:utoipa", "cdk-common/swagger"]
  18. bench = []
  19. http_subscription = []
  20. [dependencies]
  21. cdk-common.workspace = true
  22. cbor-diag.workspace = true
  23. async-trait.workspace = true
  24. anyhow.workspace = true
  25. bitcoin.workspace = true
  26. ciborium.workspace = true
  27. lightning-invoice.workspace = true
  28. regex.workspace = true
  29. reqwest = { workspace = true, optional = true }
  30. serde.workspace = true
  31. serde_json.workspace = true
  32. serde_with.workspace = true
  33. tracing.workspace = true
  34. thiserror.workspace = true
  35. futures = { workspace = true, optional = true, features = ["alloc"] }
  36. url.workspace = true
  37. utoipa = { workspace = true, optional = true }
  38. uuid.workspace = true
  39. jsonwebtoken = { workspace = true, optional = true }
  40. # -Z minimal-versions
  41. sync_wrapper = "0.1.2"
  42. bech32 = "0.9.1"
  43. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  44. tokio = { workspace = true, features = [
  45. "rt-multi-thread",
  46. "time",
  47. "macros",
  48. "sync",
  49. ] }
  50. getrandom = { version = "0.2" }
  51. tokio-tungstenite = { workspace = true, features = [
  52. "rustls",
  53. "rustls-tls-native-roots",
  54. "connect"
  55. ] }
  56. [target.'cfg(target_arch = "wasm32")'.dependencies]
  57. tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
  58. getrandom = { version = "0.2", features = ["js"] }
  59. [[example]]
  60. name = "mint-token"
  61. required-features = ["wallet"]
  62. [[example]]
  63. name = "melt-token"
  64. required-features = ["wallet"]
  65. [[example]]
  66. name = "p2pk"
  67. required-features = ["wallet"]
  68. [[example]]
  69. name = "wallet"
  70. required-features = ["wallet"]
  71. [[example]]
  72. name = "proof-selection"
  73. required-features = ["wallet"]
  74. [[example]]
  75. name = "auth_wallet"
  76. required-features = ["wallet", "auth"]
  77. [dev-dependencies]
  78. rand.workspace = true
  79. cdk-sqlite.workspace = true
  80. bip39.workspace = true
  81. tracing-subscriber.workspace = true
  82. criterion = "0.5.1"
  83. reqwest = { workspace = true }
  84. [[bench]]
  85. name = "dhke_benchmarks"
  86. harness = false