From 7889d965bdb7350a79de550213c594f4231ee30a Mon Sep 17 00:00:00 2001 From: Sosthene Date: Mon, 18 Aug 2025 17:11:47 +0200 Subject: [PATCH] Update Cargo file --- Cargo.toml | 9 ++++++--- src/lib.rs | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8964de8..d655e34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,8 +7,10 @@ edition = "2021" crate-type = ["cdylib", "rlib"] [features] -default = ["sp_client/blindbit-backend"] -wasm = ["dep:js-sys", "dep:serde-wasm-bindgen", "sp_client/wasm"] +default = [] +parallel = ["sp-client/parallel"] +blindbit-backend = ["backend-blindbit-native"] +wasm = ["dep:js-sys", "dep:serde-wasm-bindgen"] [dependencies] aes-gcm = "0.10.3" @@ -21,7 +23,8 @@ 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 = "4nk", default-features = false } +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 } tsify = { git = "https://github.com/Sosthene00/tsify", branch = "next" } wasm-bindgen = "0.2.91" diff --git a/src/lib.rs b/src/lib.rs index fa3bf2d..43b325f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,6 +18,9 @@ pub use js_sys; #[cfg(feature = "wasm")] pub use serde_wasm_bindgen; +#[cfg(feature = "blindbit-backend")] +pub use backend_blindbit_native; + pub mod crypto; pub mod device; pub mod error;