Cargo.toml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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", "dep:once_cell"]
  14. gloo = ["dep:gloo"]
  15. all-nuts = ["nut07", "nut08", "nut09", "nut10", "nut11", "nut13"]
  16. nut07 = ["cashu/nut07"]
  17. nut08 = ["cashu/nut08"]
  18. nut09 = ["cashu/nut07", "cashu/nut09"]
  19. nut10 = ["cashu/nut10"]
  20. nut11 = ["cashu/nut11"]
  21. nut13 = ["cashu/nut13"]
  22. redb = ["dep:redb"]
  23. [dependencies]
  24. bip39 = "2.0.0"
  25. cashu = { path = "../cashu" }
  26. serde = { workspace = true }
  27. serde_json = { workspace = true }
  28. url = { workspace = true }
  29. tracing = { workspace = true }
  30. futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
  31. once_cell = { version = "1.17", optional = true }
  32. thiserror = { workspace = true }
  33. async-trait = "0.1.74"
  34. gloo = { version = "0.10.0", optional = true, features = ["net"] }
  35. http = "1.0.0"
  36. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  37. tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
  38. minreq = { version = "2.7.0", optional = true, features = ["json-using-serde", "https"] }
  39. redb = { version = "1.4.0", optional = true }
  40. [target.'cfg(target_arch = "wasm32")'.dependencies]
  41. tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }