Skip to content

Commit 83b8209

Browse files
committed
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
1 parent b8fd0e4 commit 83b8209

File tree

9 files changed

+14
-10
lines changed

9 files changed

+14
-10
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ exclude = [
2222
"utils/tfhe-lints",
2323
"apps/trivium",
2424
]
25+
26+
[workspace.package]
27+
rust-version = "1.85"
28+
2529
[workspace.dependencies]
2630
aligned-vec = { version = "0.6", default-features = false }
2731
bytemuck = "<1.24"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CPU_COUNT=$(shell ./scripts/cpu_count.sh)
77
RS_BUILD_TOOLCHAIN:=stable
88
CARGO_RS_BUILD_TOOLCHAIN:=+$(RS_BUILD_TOOLCHAIN)
99
CARGO_PROFILE?=release
10-
MIN_RUST_VERSION:=$(shell grep '^rust-version[[:space:]]*=' tfhe/Cargo.toml | cut -d '=' -f 2 | xargs)
10+
MIN_RUST_VERSION:=$(shell grep '^rust-version[[:space:]]*=' Cargo.toml | cut -d '=' -f 2 | xargs)
1111
AVX512_SUPPORT?=OFF
1212
WASM_RUSTFLAGS:=
1313
BIG_TESTS_INSTANCE?=FALSE

tfhe-benchmark/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ documentation = "https://docs.zama.ai/tfhe-rs"
77
repository = "https://github.com/zama-ai/tfhe-rs"
88
license = "BSD-3-Clause-Clear"
99
description = "tfhe-benchmark: Performances measurements facility for tfhe-rs."
10-
rust-version = "1.84"
10+
rust-version.workspace = true
1111
publish = false
1212

1313
[lib]

tfhe-csprng/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tfhe-csprng"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
edition = "2021"
55
license = "BSD-3-Clause-Clear"
66
description = "Cryptographically Secure PRNG used in the TFHE-rs library."
@@ -9,7 +9,7 @@ documentation = "https://docs.zama.ai/tfhe-rs"
99
repository = "https://github.com/zama-ai/tfhe-rs"
1010
readme = "README.md"
1111
keywords = ["fully", "homomorphic", "encryption", "fhe", "cryptography"]
12-
rust-version = "1.72"
12+
rust-version.workspace = true
1313

1414
[dependencies]
1515
aes = "0.8.2"

tfhe-ntt/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "tfhe-ntt"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
edition = "2021"
55
description = "tfhe-ntt is a pure Rust high performance number theoretic transform library."
66
readme = "README.md"
77
repository = "https://github.com/zama-ai/tfhe-rs"
88
license = "BSD-3-Clause-Clear"
99
homepage = "https://zama.ai/"
1010
keywords = ["ntt"]
11-
rust-version = "1.67"
11+
rust-version.workspace = true
1212

1313

1414
[dependencies]

tfhe-ntt/src/roots.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub const fn sqrt_mod_ex64(p: Div64, q: u64, s: u64, z: u64, n: u64) -> Option<u
3232
let mut m = s;
3333
let mut c = exp_mod64(p, z, q);
3434
let mut t = exp_mod64(p, n, q);
35-
let mut r = exp_mod64(p, n, (q + 1) / 2);
35+
let mut r = exp_mod64(p, n, q.div_ceil(2));
3636

3737
loop {
3838
if t == 0 {

tfhe-zk-pok/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation = "https://docs.zama.ai/tfhe-rs"
88
repository = "https://github.com/zama-ai/tfhe-rs"
99
license = "BSD-3-Clause-Clear"
1010
description = "tfhe-zk-pok: An implementation of zero-knowledge proofs of encryption for TFHE."
11-
rust-version = "1.84"
11+
rust-version.workspace = true
1212

1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

tfhe/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exclude = [
1717
"/js_on_wasm_tests/",
1818
"/web_wasm_parallel_tests/",
1919
]
20-
rust-version = "1.85"
20+
rust-version.workspace = true
2121

2222
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2323

utils/tfhe-versionable/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation = "https://docs.rs/tfhe_versionable"
88
repository = "https://github.com/zama-ai/tfhe-rs"
99
license = "BSD-3-Clause-Clear"
1010
description = "tfhe-versionable: Add versioning informations/backward compatibility on rust types used for serialization"
11-
rust-version = "1.81"
11+
rust-version.workspace = true
1212

1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

0 commit comments

Comments
 (0)