[package] name = "moksha-wallet" version = "0.2.1" edition = "2021" resolver = "2" repository = "https://github.com/ngutech21/moksha" license = "MIT" description = "cashu-wallet library" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] name = "moksha_wallet" path = "src/lib.rs" [dependencies] anyhow = { version = "1.0.79", features = ["backtrace"] } secp256k1 = { version = "0.28.1", default-features = false, features = ["serde"] } moksha-core = { version = "0.2.1", path = "../moksha-core" } serde_json = "1.0.113" serde = "1.0.196" thiserror = "1.0.56" async-trait = "0.1.77" lightning-invoice = "0.29.0" url = "2.5.0" dirs = "5.0.1" [target.'cfg(target_family = "wasm")'.dependencies] gloo-net = { version = "0.5.0" } serde-wasm-bindgen = "0.6.3" wasm-bindgen = "0.2.90" rexie = "0.5.0" tokio = { version = "1.35.1", features = ["rt", "sync"] } [target.'cfg(not(target_family="wasm"))'.dependencies] reqwest = { version = "0.11.23", features = ["serde_json", "json", "rustls-tls"], default-features = false } tokio = { version = "1.35.1", features = ["rt", "rt-multi-thread", "macros"] } sqlx = { version = "0.7.3", default-features = false, features = ["sqlite", "runtime-tokio", "tls-native-tls", "migrate", "macros"] } [dev-dependencies] tempfile = "3.9.0" mockall = "0.12.1"