Compare commits

..

No commits in common. "a4c2fd209016f46dfb94c513c5db2c18d27b1f8a" and "e2369eaf6f67986debb0b0284b3023fabd2a2b1b" have entirely different histories.

2 changed files with 8 additions and 25 deletions

View File

@ -6,30 +6,19 @@ edition = "2021"
[lib] [lib]
crate-type = ["cdylib", "rlib"] 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] [dependencies]
aes-gcm = "0.10.3" aes-gcm = "0.10.3"
anyhow = "1.0" anyhow = "1.0"
js-sys = "0.3.69"
env_logger = "0.9" env_logger = "0.9"
log = "0.4.6" log = "0.4.6"
rand = "0.8.5" rand = "0.8.5"
serde = { version = "1.0.193", features = ["derive"] } serde = { version = "1.0.193", features = ["derive"] }
serde_json = { version = "1.0.108" } serde_json = { version = "1.0.108" }
rs_merkle = "1.4.2" serde-wasm-bindgen = "0.6.5"
zstd = "0.13.3" # sp_client = { path = "../sp-client", features = ["blindbit-backend"] }
getrandom = { version = "0.2", features = ["js"] } sp_client = { git = "https://github.com/cygnet3/sp-client.git", branch = "wasm_compatibility" ,features = ["blindbit-backend"]}
sp-client = { git = "https://github.com/Sosthene00/sp-client.git", branch = "dev", default-features = false }
backend-blindbit-native = { git = "https://github.com/Sosthene00/sp-client.git", branch = "dev", optional = true }
backend-blindbit-wasm = { git = "https://github.com/Sosthene00/sp-client.git", branch = "dev", optional = true }
tsify = { git = "https://github.com/Sosthene00/tsify", branch = "next" } tsify = { git = "https://github.com/Sosthene00/tsify", branch = "next" }
wasm-bindgen = "0.2.91" wasm-bindgen = "0.2.91"
rs_merkle = "1.4.2"
# WASM-specific dependencies (optional) zstd = "0.13.3"
js-sys = { version = "0.3.69", optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }

View File

@ -4,23 +4,17 @@ use std::sync::{Mutex, MutexGuard};
pub use aes_gcm; pub use aes_gcm;
pub use env_logger; pub use env_logger;
pub use js_sys;
pub use log; pub use log;
pub use rand; pub use rand;
pub use serde; pub use serde;
pub use serde_json; pub use serde_json;
pub use serde_wasm_bindgen;
pub use sp_client; pub use sp_client;
pub use tsify; pub use tsify;
pub use wasm_bindgen; pub use wasm_bindgen;
pub use zstd; pub use zstd;
#[cfg(feature = "blindbit-wasm")]
pub use js_sys;
#[cfg(feature = "blindbit-wasm")]
pub use serde_wasm_bindgen;
#[cfg(feature = "blindbit-backend")]
pub use backend_blindbit_native;
pub mod crypto; pub mod crypto;
pub mod device; pub mod device;
pub mod error; pub mod error;