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"]
  12. mint = ["cashu/mint"]
  13. wallet = ["cashu/wallet", "dep:minreq", "dep:once_cell"]
  14. all-nuts = ["nut07", "nut09"]
  15. nut07 = ["cashu/nut07"]
  16. # nut08 = ["cashu/nut08"]
  17. nut09 = ["cashu/nut09"]
  18. [dependencies]
  19. cashu = { path = "../cashu", features = ["nut08"] }
  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. [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
  29. tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
  30. minreq = { version = "2.7.0", optional = true, features = ["json-using-serde", "https"] }
  31. [target.'cfg(target_arch = "wasm32")'.dependencies]
  32. tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
  33. gloo = { version = "0.10.0", features = ["net"]}