Cargo.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. [package]
  2. name = "cdk"
  3. version = "0.6.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. "zstd", "brotli", "gzip", "deflate"
  39. ], optional = true }
  40. serde = { version = "1", default-features = false, features = ["derive"] }
  41. serde_json = "1"
  42. serde_with = "3"
  43. tracing = { version = "0.1", default-features = false, features = [
  44. "attributes",
  45. "log",
  46. ] }
  47. thiserror = "1"
  48. futures = { version = "0.3.28", default-features = false, optional = true, features = [
  49. "alloc",
  50. ] }
  51. url = "2.3"
  52. utoipa = { version = "4", optional = true }
  53. uuid = { version = "1", features = ["v4", "serde"] }
  54. # -Z minimal-versions
  55. sync_wrapper = "0.1.2"
  56. bech32 = "0.9.1"
  57. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  58. tokio = { version = "1.21", features = [
  59. "rt-multi-thread",
  60. "time",
  61. "macros",
  62. "sync",
  63. ] }
  64. getrandom = { version = "0.2" }
  65. tokio-tungstenite = { version = "0.19.0", features = [
  66. "rustls",
  67. "rustls-tls-native-roots",
  68. ] }
  69. [target.'cfg(target_arch = "wasm32")'.dependencies]
  70. tokio = { version = "1.21", features = ["rt", "macros", "sync", "time"] }
  71. getrandom = { version = "0.2", features = ["js"] }
  72. instant = { version = "0.1", features = ["wasm-bindgen", "inaccurate"] }
  73. [[example]]
  74. name = "mint-token"
  75. required-features = ["wallet"]
  76. [[example]]
  77. name = "p2pk"
  78. required-features = ["wallet"]
  79. [[example]]
  80. name = "wallet"
  81. required-features = ["wallet"]
  82. [[example]]
  83. name = "proof-selection"
  84. required-features = ["wallet"]
  85. [dev-dependencies]
  86. rand = "0.8.5"
  87. bip39 = "2.0"
  88. criterion = "0.5.1"
  89. [[bench]]
  90. name = "dhke_benchmarks"
  91. harness = false