[package] name = "moksha-core" version = "0.2.1" edition = "2021" repository = "https://github.com/ngutech21/moksha" license = "MIT" description = "A library for building cashu applications" [lib] name = "moksha_core" path = "src/lib.rs" [dependencies] anyhow = "1.0.79" url = "2.5.0" base64 = "0.21.7" bitcoin_hashes = "0.13.0" rand = "0.8.5" secp256k1 = { version = "0.28.1", features = ["rand", "serde"] } serde = { version = "1.0.196", features = ["derive"] } serde_json = "1.0.113" hex = "0.4.3" serde_with = "3.6.0" thiserror = "1.0.56" itertools = "0.12.1" uuid = { version = "1.7.0", features = ["serde", "v4"] } utoipa = { version = "4.2.0" } [target.'cfg(target_family = "wasm")'.dependencies] # getrandom is transitive dependency of rand # on wasm, we need to enable the js backend # see https://docs.rs/getrandom/latest/getrandom/#indirect-dependencies and https://docs.rs/getrandom/latest/getrandom/#webassembly-support getrandom = { version = "0.2.11", features = ["js"] } [dev-dependencies] anyhow = "1.0.79" pretty_assertions = "1.4.0"