Update Cargo file
This commit is contained in:
parent
35cf0285fa
commit
362d2d6328
10
Cargo.toml
10
Cargo.toml
@ -7,8 +7,10 @@ edition = "2021"
|
|||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["sp_client/blindbit-backend"]
|
default = []
|
||||||
wasm = ["dep:js-sys", "dep:serde-wasm-bindgen", "sp_client/wasm"]
|
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"
|
||||||
@ -21,7 +23,9 @@ serde_json = { version = "1.0.108" }
|
|||||||
rs_merkle = "1.4.2"
|
rs_merkle = "1.4.2"
|
||||||
zstd = "0.13.3"
|
zstd = "0.13.3"
|
||||||
getrandom = { version = "0.2", features = ["js"] }
|
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 }
|
||||||
|
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" }
|
tsify = { git = "https://github.com/Sosthene00/tsify", branch = "next" }
|
||||||
wasm-bindgen = "0.2.91"
|
wasm-bindgen = "0.2.91"
|
||||||
|
|
||||||
|
@ -13,11 +13,14 @@ pub use tsify;
|
|||||||
pub use wasm_bindgen;
|
pub use wasm_bindgen;
|
||||||
pub use zstd;
|
pub use zstd;
|
||||||
|
|
||||||
#[cfg(feature = "wasm")]
|
#[cfg(feature = "blindbit-wasm")]
|
||||||
pub use js_sys;
|
pub use js_sys;
|
||||||
#[cfg(feature = "wasm")]
|
#[cfg(feature = "blindbit-wasm")]
|
||||||
pub use serde_wasm_bindgen;
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user