From 6c927e06199ce4ad17b0a6585c194bf3a7465c85 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Thu, 27 Jun 2024 11:19:51 +0200 Subject: [PATCH] chore(tfhe): bump version to 0.7.1 --- tfhe/Cargo.toml | 2 +- tfhe/docs/fundamentals/serialization.md | 2 +- tfhe/docs/getting_started/installation.md | 4 ++-- tfhe/docs/getting_started/quick_start.md | 2 +- tfhe/docs/guides/data_versioning.md | 2 +- tfhe/docs/guides/run_on_gpu.md | 4 ++-- tfhe/docs/references/core-crypto-api/tutorial.md | 8 ++++---- tfhe/docs/tutorials/ascii_fhe_string.md | 2 +- tfhe/docs/tutorials/parity_bit.md | 2 +- .../src/high_level_api/backward_compatibility/booleans.rs | 4 ++-- .../src/high_level_api/backward_compatibility/integers.rs | 8 ++++---- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/tfhe/Cargo.toml b/tfhe/Cargo.toml index 1f08c613ee..bf09fb0bdd 100644 --- a/tfhe/Cargo.toml +++ b/tfhe/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfhe" -version = "0.7.0" +version = "0.7.1" edition = "2021" readme = "../README.md" keywords = ["fully", "homomorphic", "encryption", "fhe", "cryptography"] diff --git a/tfhe/docs/fundamentals/serialization.md b/tfhe/docs/fundamentals/serialization.md index 68e847d513..70dfaef80a 100644 --- a/tfhe/docs/fundamentals/serialization.md +++ b/tfhe/docs/fundamentals/serialization.md @@ -15,7 +15,7 @@ Here is a full example: [dependencies] # ... -tfhe = { version = "0.7.0", features = ["integer","x86_64-unix"]} +tfhe = { version = "0.7.1", features = ["integer","x86_64-unix"]} bincode = "1.3.3" ``` diff --git a/tfhe/docs/getting_started/installation.md b/tfhe/docs/getting_started/installation.md index 2e3fd4be5a..9ea4288788 100644 --- a/tfhe/docs/getting_started/installation.md +++ b/tfhe/docs/getting_started/installation.md @@ -9,13 +9,13 @@ First, add **TFHE-rs** as a dependency in your `Cargo.toml`. **For `x86_64` machine running a Unix-like OS:** ```toml -tfhe = { version = "0.7.0", features = [ "boolean", "shortint", "integer", "x86_64-unix" ] } +tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "x86_64-unix" ] } ``` **For `ARM` machine running a Unix-like OS:** ```toml -tfhe = { version = "0.7.0", features = [ "boolean", "shortint", "integer", "aarch64-unix" ] } +tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "aarch64-unix" ] } ``` **For `x86_64` machines with the** [**`rdseed instruction`**](https://en.wikipedia.org/wiki/RDRAND) **running Windows:** diff --git a/tfhe/docs/getting_started/quick_start.md b/tfhe/docs/getting_started/quick_start.md index ad0185dd95..b1cb9c0ee6 100644 --- a/tfhe/docs/getting_started/quick_start.md +++ b/tfhe/docs/getting_started/quick_start.md @@ -47,7 +47,7 @@ fn main() { The default configuration for x86 Unix machines is as follows: ```toml -tfhe = { version = "0.7.0", features = ["integer", "x86_64-unix"]} +tfhe = { version = "0.7.1", features = ["integer", "x86_64-unix"]} ``` Refer to the [installation documentation](installation.md) for configuration options of different platforms.Learn more about homomorphic types features in the [configuration documentation.](../guides/rust\_configuration.md) diff --git a/tfhe/docs/guides/data_versioning.md b/tfhe/docs/guides/data_versioning.md index 23a1f3b857..67675dc5ae 100644 --- a/tfhe/docs/guides/data_versioning.md +++ b/tfhe/docs/guides/data_versioning.md @@ -16,7 +16,7 @@ You can load serialized data with the `unversionize` function, even in newer ver [dependencies] # ... -tfhe = { version = "0.7.0", features = ["integer","x86_64-unix"]} +tfhe = { version = "0.7.1", features = ["integer","x86_64-unix"]} tfhe-versionable = "0.1.0" bincode = "1.3.3" ``` diff --git a/tfhe/docs/guides/run_on_gpu.md b/tfhe/docs/guides/run_on_gpu.md index 644b470f22..96512ba08f 100644 --- a/tfhe/docs/guides/run_on_gpu.md +++ b/tfhe/docs/guides/run_on_gpu.md @@ -19,13 +19,13 @@ To use the **TFHE-rs** GPU backend in your project, add the following dependency If you are using an `x86` machine: ```toml -tfhe = { version = "0.7.0", features = [ "boolean", "shortint", "integer", "x86_64-unix", "gpu" ] } +tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "x86_64-unix", "gpu" ] } ``` If you are using an `ARM` machine: ```toml -tfhe = { version = "0.7.0", features = [ "boolean", "shortint", "integer", "aarch64-unix", "gpu" ] } +tfhe = { version = "0.7.1", features = [ "boolean", "shortint", "integer", "aarch64-unix", "gpu" ] } ``` {% hint style="success" %} diff --git a/tfhe/docs/references/core-crypto-api/tutorial.md b/tfhe/docs/references/core-crypto-api/tutorial.md index ca12863fcc..10b71c0900 100644 --- a/tfhe/docs/references/core-crypto-api/tutorial.md +++ b/tfhe/docs/references/core-crypto-api/tutorial.md @@ -9,7 +9,7 @@ Welcome to this tutorial about `TFHE-rs` `core_crypto` module. To use `TFHE-rs`, it first has to be added as a dependency in the `Cargo.toml`: ```toml -tfhe = { version = "0.7.0", features = [ "x86_64-unix" ] } +tfhe = { version = "0.7.1", features = [ "x86_64-unix" ] } ``` This enables the `x86_64-unix` feature to have efficient implementations of various algorithms for `x86_64` CPUs on a Unix-like system. The 'unix' suffix indicates that the `UnixSeeder`, which uses `/dev/random` to generate random numbers, is activated as a fallback if no hardware number generator is available (like `rdseed` on `x86_64` or if the [`Randomization Services`](https://developer.apple.com/documentation/security/1399291-secrandomcopybytes?language=objc) on Apple platforms are not available). To avoid having the `UnixSeeder` as a potential fallback or to run on non-Unix systems (e.g., Windows), the `x86_64` feature is sufficient. @@ -19,19 +19,19 @@ For Apple Silicon, the `aarch64-unix` or `aarch64` feature should be enabled. `a In short: For `x86_64`-based machines running Unix-like OSes: ```toml -tfhe = { version = "0.7.0", features = ["x86_64-unix"] } +tfhe = { version = "0.7.1", features = ["x86_64-unix"] } ``` For Apple Silicon or aarch64-based machines running Unix-like OSes: ```toml -tfhe = { version = "0.7.0", features = ["aarch64-unix"] } +tfhe = { version = "0.7.1", features = ["aarch64-unix"] } ``` For `x86_64`-based machines with the [`rdseed instruction`](https://en.wikipedia.org/wiki/RDRAND) running Windows: ```toml -tfhe = { version = "0.7.0", features = ["x86_64"] } +tfhe = { version = "0.7.1", features = ["x86_64"] } ``` ### Commented code to double a 2-bit message in a leveled fashion and using a PBS with the `core_crypto` module. diff --git a/tfhe/docs/tutorials/ascii_fhe_string.md b/tfhe/docs/tutorials/ascii_fhe_string.md index 0295d2a8b0..fef0f0482e 100644 --- a/tfhe/docs/tutorials/ascii_fhe_string.md +++ b/tfhe/docs/tutorials/ascii_fhe_string.md @@ -25,7 +25,7 @@ To use the `FheUint8` type, enable the `integer` feature: [dependencies] # Default configuration for x86 Unix machines: -tfhe = { version = "0.7.0", features = ["integer", "x86_64-unix"]} +tfhe = { version = "0.7.1", features = ["integer", "x86_64-unix"]} ``` Refer to the [installation guide](../getting\_started/installation.md) for other configurations. diff --git a/tfhe/docs/tutorials/parity_bit.md b/tfhe/docs/tutorials/parity_bit.md index 50b7107281..67f3d28fba 100644 --- a/tfhe/docs/tutorials/parity_bit.md +++ b/tfhe/docs/tutorials/parity_bit.md @@ -18,7 +18,7 @@ This function returns a Boolean (`true` or `false`) so that the total count of ` # Cargo.toml # Default configuration for x86 Unix machines: -tfhe = { version = "0.7.0", features = ["integer", "x86_64-unix"]} +tfhe = { version = "0.7.1", features = ["integer", "x86_64-unix"]} ``` Refer to the [installation](../getting\_started/installation.md) for other configurations. diff --git a/tfhe/src/high_level_api/backward_compatibility/booleans.rs b/tfhe/src/high_level_api/backward_compatibility/booleans.rs index e36e184cae..42b957e3f6 100644 --- a/tfhe/src/high_level_api/backward_compatibility/booleans.rs +++ b/tfhe/src/high_level_api/backward_compatibility/booleans.rs @@ -38,7 +38,7 @@ pub enum CompactFheBoolListVersions { #[derive(Versionize)] #[versionize(CompactFheBoolVersions)] -#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")] +#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")] pub struct CompactFheBool { pub(in crate::high_level_api) list: CompactCiphertextList, } @@ -70,7 +70,7 @@ impl CompactFheBool { #[derive(Versionize)] #[versionize(CompactFheBoolListVersions)] -#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")] +#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")] pub struct CompactFheBoolList { list: CompactCiphertextList, } diff --git a/tfhe/src/high_level_api/backward_compatibility/integers.rs b/tfhe/src/high_level_api/backward_compatibility/integers.rs index 812bfc763c..d23257475c 100644 --- a/tfhe/src/high_level_api/backward_compatibility/integers.rs +++ b/tfhe/src/high_level_api/backward_compatibility/integers.rs @@ -160,7 +160,7 @@ pub enum CompactFheUintListVersions { #[derive(Clone, Versionize)] #[versionize(CompactFheIntVersions)] -#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")] +#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")] pub struct CompactFheInt { list: CompactCiphertextList, id: Id, @@ -190,7 +190,7 @@ where #[derive(Clone, Versionize)] #[versionize(CompactFheIntListVersions)] -#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")] +#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")] pub struct CompactFheIntList { list: CompactCiphertextList, id: Id, @@ -227,7 +227,7 @@ where #[derive(Clone, Versionize)] #[versionize(CompactFheUintVersions)] -#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")] +#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")] pub struct CompactFheUint { list: CompactCiphertextList, id: Id, @@ -258,7 +258,7 @@ where #[derive(Clone, Versionize)] #[versionize(CompactFheUintListVersions)] -#[deprecated(since = "0.7.0", note = "Use CompactCiphertextList instead")] +#[deprecated(since = "0.7.1", note = "Use CompactCiphertextList instead")] pub struct CompactFheUintList { list: CompactCiphertextList, id: Id,