refactor(all): only depend on bincode when needed

This commit is contained in:
tmontaigu
2023-01-31 17:37:50 +01:00
committed by Arthur Meyre
parent 5849cc9e7d
commit 106624048c

View File

@@ -37,7 +37,7 @@ concrete-csprng = { version = "0.2.1", features = [
lazy_static = { version = "1.4.0", optional = true }
serde = { version = "1.0", features = ["derive"] }
rayon = { version = "1.5.0" }
bincode = { version = "1.3.3" }
bincode = { version = "1.3.3", optional = true }
concrete-fft = { version = "0.1", features = ["serde"] }
aligned-vec = { version = "0.5", features = ["serde"] }
dyn-stack = { version = "0.8" }
@@ -59,9 +59,9 @@ getrandom = { version = "0.2.8", optional = true }
[features]
boolean = []
shortint = []
internal-keycache = ["lazy_static", "fs2"]
internal-keycache = ["lazy_static", "fs2", "bincode"]
__c_api = ["cbindgen"]
__c_api = ["cbindgen", "bincode"]
boolean-c-api = ["boolean", "__c_api"]
shortint-c-api = ["shortint", "__c_api"]
@@ -72,6 +72,7 @@ __wasm_api = [
"serde-wasm-bindgen",
"getrandom",
"getrandom/js",
"bincode",
]
boolean-client-js-wasm-api = ["boolean", "__wasm_api"]
shortint-client-js-wasm-api = ["shortint", "__wasm_api"]