Cargo.toml 1.2 KB

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