Cargo.toml 1.4 KB

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