Cargo.toml 1.2 KB

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