Cargo.toml 1.5 KB

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