Cargo.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. [package]
  2. name = "cdk"
  3. version = "0.5.0"
  4. edition = "2021"
  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 = "1.63.0" # MSRV
  10. license = "MIT"
  11. [features]
  12. default = ["mint", "wallet"]
  13. mint = ["dep:futures"]
  14. # We do not commit to a MSRV with swagger enabled
  15. swagger = ["mint", "dep:utoipa"]
  16. wallet = ["dep:reqwest"]
  17. bench = []
  18. http_subscription = []
  19. [dependencies]
  20. async-trait = "0.1"
  21. anyhow = { version = "1.0.43", features = ["backtrace"] }
  22. bitcoin = { version = "0.32.2", features = [
  23. "base64",
  24. "serde",
  25. "rand",
  26. "rand-std",
  27. ] }
  28. ciborium = { version = "0.2.2", default-features = false, features = ["std"] }
  29. cbor-diag = "0.1.12"
  30. lightning-invoice = { version = "0.32.0", features = ["serde", "std"] }
  31. once_cell = "1.19"
  32. regex = "1"
  33. reqwest = { version = "0.12", default-features = false, features = [
  34. "json",
  35. "rustls-tls",
  36. "rustls-tls-native-roots",
  37. "socks",
  38. ], optional = true }
  39. serde = { version = "1", default-features = false, features = ["derive"] }
  40. serde_json = "1"
  41. serde_with = "3"
  42. tracing = { version = "0.1", default-features = false, features = [
  43. "attributes",
  44. "log",
  45. ] }
  46. thiserror = "1"
  47. futures = { version = "0.3.28", default-features = false, optional = true, features = [
  48. "alloc",
  49. ] }
  50. url = "2.3"
  51. utoipa = { version = "4", optional = true }
  52. uuid = { version = "1", features = ["v4", "serde"] }
  53. # -Z minimal-versions
  54. sync_wrapper = "0.1.2"
  55. bech32 = "0.9.1"
  56. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  57. tokio = { version = "1.21", features = [
  58. "rt-multi-thread",
  59. "time",
  60. "macros",
  61. "sync",
  62. ] }
  63. getrandom = { version = "0.2" }
  64. tokio-tungstenite = { version = "0.19.0", features = [
  65. "rustls",
  66. "rustls-tls-native-roots",
  67. ] }
  68. [target.'cfg(target_arch = "wasm32")'.dependencies]
  69. tokio = { version = "1.21", features = ["rt", "macros", "sync", "time"] }
  70. getrandom = { version = "0.2", features = ["js"] }
  71. instant = { version = "0.1", features = ["wasm-bindgen", "inaccurate"] }
  72. [[example]]
  73. name = "mint-token"
  74. required-features = ["wallet"]
  75. [[example]]
  76. name = "p2pk"
  77. required-features = ["wallet"]
  78. [[example]]
  79. name = "wallet"
  80. required-features = ["wallet"]
  81. [[example]]
  82. name = "proof-selection"
  83. required-features = ["wallet"]
  84. [dev-dependencies]
  85. rand = "0.8.5"
  86. bip39 = "2.0"
  87. criterion = "0.5.1"
  88. [[bench]]
  89. name = "dhke_benchmarks"
  90. harness = false