Cargo.toml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [package]
  2. name = "cdk"
  3. version = "0.1.0"
  4. edition = "2021"
  5. authors = ["CDK Developers"]
  6. homepage.workspace = true
  7. repository.workspace = true
  8. rust-version.workspace = true # MSRV
  9. license.workspace = true
  10. [features]
  11. default = ["mint", "wallet"]
  12. mint = []
  13. wallet = ["dep:reqwest"]
  14. nostr = ["dep:nostr-sdk"]
  15. [dependencies]
  16. async-trait = "0.1"
  17. base64 = "0.22" # bitcoin uses v0.13 (optional dep)
  18. bip39 = "2.0"
  19. bitcoin = { version = "0.30", features = [
  20. "serde",
  21. "rand",
  22. "rand-std",
  23. ] } # lightning-invoice uses v0.30
  24. http = "1.0"
  25. lightning-invoice = { version = "0.31", features = ["serde"] }
  26. once_cell = "1.19"
  27. reqwest = { version = "0.12", default-features = false, features = [
  28. "json",
  29. "rustls-tls",
  30. "socks",
  31. ], optional = true }
  32. serde = { version = "1.0", default-features = false, features = ["derive"] }
  33. serde_json = "1"
  34. serde_with = "3.4"
  35. tracing = { version = "0.1", default-features = false, features = [
  36. "attributes",
  37. "log",
  38. ] }
  39. thiserror = "1"
  40. url = "2.3"
  41. uuid = { version = "1", features = ["v4"] }
  42. nostr-sdk = { version = "0.31.0", default-features = false, features = [
  43. "nip04",
  44. "nip44"
  45. ], optional = true }
  46. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  47. tokio = { workspace = true, features = [
  48. "rt-multi-thread",
  49. "time",
  50. "macros",
  51. "sync",
  52. ] }
  53. [target.'cfg(target_arch = "wasm32")'.dependencies]
  54. tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
  55. getrandom = { version = "0.2", features = ["js"] }
  56. instant = { version = "0.1", features = ["wasm-bindgen", "inaccurate"] }