From 83b82091bd38daff039750b0e88283ef414253f9 Mon Sep 17 00:00:00 2001 From: Nicolas Sarlin Date: Thu, 30 Oct 2025 10:35:47 +0100 Subject: [PATCH] chore: use common msrv for the workspace Since cargo commands create a lock using the smallest msrv in the workspace, it can prevent getting up-to-date dependencies --- Cargo.toml | 4 ++++ Makefile | 2 +- tfhe-benchmark/Cargo.toml | 2 +- tfhe-csprng/Cargo.toml | 4 ++-- tfhe-ntt/Cargo.toml | 4 ++-- tfhe-ntt/src/roots.rs | 2 +- tfhe-zk-pok/Cargo.toml | 2 +- tfhe/Cargo.toml | 2 +- utils/tfhe-versionable/Cargo.toml | 2 +- 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 89edafe04..b686ce395 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,10 @@ exclude = [ "utils/tfhe-lints", "apps/trivium", ] + +[workspace.package] +rust-version = "1.85" + [workspace.dependencies] aligned-vec = { version = "0.6", default-features = false } bytemuck = "<1.24" diff --git a/Makefile b/Makefile index ca39d6cb5..269d7ca74 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ CPU_COUNT=$(shell ./scripts/cpu_count.sh) RS_BUILD_TOOLCHAIN:=stable CARGO_RS_BUILD_TOOLCHAIN:=+$(RS_BUILD_TOOLCHAIN) CARGO_PROFILE?=release -MIN_RUST_VERSION:=$(shell grep '^rust-version[[:space:]]*=' tfhe/Cargo.toml | cut -d '=' -f 2 | xargs) +MIN_RUST_VERSION:=$(shell grep '^rust-version[[:space:]]*=' Cargo.toml | cut -d '=' -f 2 | xargs) AVX512_SUPPORT?=OFF WASM_RUSTFLAGS:= BIG_TESTS_INSTANCE?=FALSE diff --git a/tfhe-benchmark/Cargo.toml b/tfhe-benchmark/Cargo.toml index 1d1e30dac..d5dced3b7 100644 --- a/tfhe-benchmark/Cargo.toml +++ b/tfhe-benchmark/Cargo.toml @@ -7,7 +7,7 @@ documentation = "https://docs.zama.ai/tfhe-rs" repository = "https://github.com/zama-ai/tfhe-rs" license = "BSD-3-Clause-Clear" description = "tfhe-benchmark: Performances measurements facility for tfhe-rs." -rust-version = "1.84" +rust-version.workspace = true publish = false [lib] diff --git a/tfhe-csprng/Cargo.toml b/tfhe-csprng/Cargo.toml index 9555a08fc..51c21499c 100644 --- a/tfhe-csprng/Cargo.toml +++ b/tfhe-csprng/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfhe-csprng" -version = "0.7.0" +version = "0.7.1" edition = "2021" license = "BSD-3-Clause-Clear" description = "Cryptographically Secure PRNG used in the TFHE-rs library." @@ -9,7 +9,7 @@ documentation = "https://docs.zama.ai/tfhe-rs" repository = "https://github.com/zama-ai/tfhe-rs" readme = "README.md" keywords = ["fully", "homomorphic", "encryption", "fhe", "cryptography"] -rust-version = "1.72" +rust-version.workspace = true [dependencies] aes = "0.8.2" diff --git a/tfhe-ntt/Cargo.toml b/tfhe-ntt/Cargo.toml index b45cf0bfb..8d1cd6827 100644 --- a/tfhe-ntt/Cargo.toml +++ b/tfhe-ntt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfhe-ntt" -version = "0.6.1" +version = "0.6.2" edition = "2021" description = "tfhe-ntt is a pure Rust high performance number theoretic transform library." readme = "README.md" @@ -8,7 +8,7 @@ repository = "https://github.com/zama-ai/tfhe-rs" license = "BSD-3-Clause-Clear" homepage = "https://zama.ai/" keywords = ["ntt"] -rust-version = "1.67" +rust-version.workspace = true [dependencies] diff --git a/tfhe-ntt/src/roots.rs b/tfhe-ntt/src/roots.rs index 8d69dfb73..e9cf58641 100644 --- a/tfhe-ntt/src/roots.rs +++ b/tfhe-ntt/src/roots.rs @@ -32,7 +32,7 @@ pub const fn sqrt_mod_ex64(p: Div64, q: u64, s: u64, z: u64, n: u64) -> Option