Cargo.toml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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", "all-nuts"]
  12. mint = ["dep:bip39"]
  13. wallet = ["nut13", "dep:bip39", "dep:reqwest"]
  14. all-nuts = ["nut13"]
  15. nut13 = ["dep:bip39"]
  16. [dependencies]
  17. async-trait = "0.1"
  18. base64 = "0.22" # bitcoin uses v0.13 (optional dep)
  19. bip39 = { version = "2.0", optional = true }
  20. bitcoin = { version = "0.30", features = [
  21. "serde",
  22. "rand",
  23. "rand-std",
  24. ] } # lightning-invoice uses v0.30
  25. http = "1.0"
  26. lightning-invoice = { version = "0.30", features = ["serde"] }
  27. once_cell = "1.19"
  28. reqwest = { version = "0.12", default-features = false, features = [
  29. "json",
  30. "rustls-tls",
  31. "socks",
  32. ], optional = true }
  33. serde = { version = "1.0", default-features = false, features = ["derive"] }
  34. serde_json = "1.0"
  35. serde_with = "3.4"
  36. tracing = { version = "0.1", default-features = false, features = [
  37. "attributes",
  38. "log",
  39. ] }
  40. thiserror = "1.0"
  41. url = "2.3"
  42. uuid = { version = "1.6", features = ["v4"] }
  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. [target.'cfg(target_arch = "wasm32")'.dependencies]
  51. tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
  52. getrandom = { version = "0.2", features = ["js"] }
  53. instant = { version = "0.1", features = ["wasm-bindgen", "inaccurate"] }