Cargo.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [package]
  2. name = "cashu"
  3. version = "0.4.1-ALPHA"
  4. edition = "2021"
  5. authors = ["thesimplekid"]
  6. readme = "README.md"
  7. homepage.workspace = true
  8. repository.workspace = true
  9. license.workspace = true
  10. rust-version.workspace = true # MSRV
  11. description = "Cashu rust wallet and mint library"
  12. [features]
  13. default = ["mint", "wallet", "all-nuts"]
  14. mint = []
  15. wallet = []
  16. all-nuts = ["nut07", "nut08", "nut09", "nut10", "nut11", "nut12", "nut13"]
  17. nut07 = []
  18. nut08 = []
  19. nut09 = []
  20. nut10 = []
  21. nut11 = ["nut10"]
  22. nut12 = []
  23. nut13 = ["dep:bip39", "nut09"]
  24. [dependencies]
  25. base64 = "0.21" # bitcoin uses v0.21 (optional dep)
  26. bip39 = { version = "2.0", optional = true }
  27. bitcoin = { version = "0.30", features = ["serde", "rand", "rand-std"] } # lightning-invoice uses v0.30
  28. lightning-invoice = { version = "0.29", features = ["serde"] }
  29. once_cell = "1.19"
  30. serde.workspace = true
  31. serde_json.workspace = true
  32. serde_with = "3.4"
  33. url.workspace = true
  34. thiserror.workspace = true
  35. tracing.workspace = true
  36. uuid = { version = "1.6", features = ["v4"] }
  37. [target.'cfg(target_arch = "wasm32")'.dependencies]
  38. getrandom.workspace = true
  39. instant = { version = "0.1", features = [ "wasm-bindgen", "inaccurate" ] }