Cargo.toml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [package]
  2. name = "cashu-sdk"
  3. version = "0.1.0"
  4. edition = "2021"
  5. authors = ["thesimplekid"]
  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 = ["cashu/mint"]
  13. wallet = ["cashu/wallet", "dep:minreq"]
  14. gloo = ["dep:gloo"]
  15. all-nuts = ["nut07", "nut08", "nut09", "nut10", "nut11", "nut12", "nut13"]
  16. nut07 = ["cashu/nut07"]
  17. nut08 = ["cashu/nut08"]
  18. nut09 = ["cashu/nut07", "cashu/nut09"]
  19. nut10 = ["cashu/nut10"]
  20. nut11 = ["cashu/nut11"]
  21. nut12 = ["cashu/nut12"]
  22. nut13 = ["cashu/nut13"]
  23. redb = ["dep:redb"]
  24. [dependencies]
  25. bip39 = "2.0.0"
  26. cashu = { path = "../cashu" }
  27. serde = { workspace = true }
  28. serde_json = { workspace = true }
  29. url = { workspace = true }
  30. tracing = { workspace = true }
  31. thiserror = { workspace = true }
  32. async-trait = "0.1.74"
  33. gloo = { version = "0.11.0", optional = true, features = ["net"] }
  34. http = "1.0.0"
  35. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  36. tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
  37. minreq = { version = "2.7.0", optional = true, features = ["json-using-serde", "https"] }
  38. redb = { version = "2.0.0", optional = true }
  39. [target.'cfg(target_arch = "wasm32")'.dependencies]
  40. tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
  41. getrandom = { version = "0.2", features = ["js"] }