[package] name = "sdk_common" version = "0.1.0" edition = "2021" [lib] crate-type = ["cdylib", "rlib"] [features] default = [] parallel = ["sp-client/parallel"] blindbit-backend = ["backend-blindbit-native"] blindbit-wasm = ["backend-blindbit-wasm", "dep:js-sys", "dep:serde-wasm-bindgen"] [dependencies] aes-gcm = "0.10.3" anyhow = "1.0" env_logger = "0.9" log = "0.4.6" rand = "0.8.5" serde = { version = "1.0.193", features = ["derive"] } serde_json = { version = "1.0.108" } rs_merkle = "1.4.2" zstd = "0.13.3" getrandom = { version = "0.2", features = ["js"] } sp-client = { git = "https://github.com/Sosthene00/sp-client.git", branch = "wasm_sync", default-features = false } backend-blindbit-native = { git = "https://github.com/Sosthene00/sp-client.git", branch = "wasm_sync", optional = true } backend-blindbit-wasm = { git = "https://github.com/Sosthene00/sp-client.git", branch = "wasm_sync", optional = true } tsify = { git = "https://github.com/Sosthene00/tsify", branch = "next" } wasm-bindgen = "0.2.91" # WASM-specific dependencies (optional) js-sys = { version = "0.3.69", optional = true } serde-wasm-bindgen = { version = "0.6.5", optional = true }