From 106624048c1093601352ef5547a807cb4ee6d7cb Mon Sep 17 00:00:00 2001 From: tmontaigu Date: Tue, 31 Jan 2023 17:37:50 +0100 Subject: [PATCH] refactor(all): only depend on bincode when needed --- tfhe/Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tfhe/Cargo.toml b/tfhe/Cargo.toml index 34f1a396f..17ba7f9d8 100644 --- a/tfhe/Cargo.toml +++ b/tfhe/Cargo.toml @@ -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"]