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. license.workspace = true
  9. [features]
  10. default = ["mint", "wallet"]
  11. mint = ["cashu/mint"]
  12. blocking = ["once_cell"]
  13. wallet = ["cashu/wallet", "minreq", "once_cell"]
  14. # Fix: Should be minreq or gloo
  15. # [target.'cfg(not(target_arch = "wasm32"))'.features]
  16. # wallet = ["cashu/wallet", "minreq", "once_cell"]
  17. # [target.'cfg(target_arch = "wasm32")'.features]
  18. # wallet = ["cashu/wallet", "gloo", "once_cell"]
  19. [dependencies]
  20. cashu = { path = "../cashu" }
  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. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  28. tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
  29. minreq = { version = "2.7.0", optional = true, features = ["json-using-serde", "https"] }
  30. [target.'cfg(target_arch = "wasm32")'.dependencies]
  31. tokio = { workspace = true, features = ["rt", "macros", "sync"] }
  32. gloo = { version = "0.9.0", features = ["net"]}