Skip to content

Commit

Permalink
Use workspace dependencies et versions + Release 0.1.0-beta4 (#149)
Browse files Browse the repository at this point in the history
* Use workspace dependencies

* Update README

* Add changelog
  • Loading branch information
tlepoint authored Oct 13, 2022
1 parent 992e8f7 commit a0287ba
Show file tree
Hide file tree
Showing 12 changed files with 118 additions and 69 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Recommended method in https://matklad.github.io/2021/08/22/large-rust-workspaces.html
[workspace]
members = ["crates/*"]

[workspace.package]
authors = ["Tancrède Lepoint"]
documentation = "https://fhe.rs"
edition = "2021"
repository = "https://github.com/tlepoint/fhe.rs"
version = "0.1.0-beta.4"
license-file = "LICENSE"

[workspace.dependencies]
console = "0.15.2"
criterion = "0.4.0"
crypto-bigint = "0.4.9"
indicatif = "0.17.1"
itertools = "0.10.5"
ndarray = "0.15.6"
num-bigint = "0.4.3"
num-bigint-dig = "0.8.1"
num-traits = "0.2.15"
proptest = "1.0.0"
protobuf = "3.2.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
sha2 = "0.10.6"
thiserror = "1.0.37"
zeroize = "1.5.7"
zeroize_derive = "1.3.2"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ To install, add the following to your project's `Cargo.toml` file:

```toml
[dependencies]
fhe = "0.1.0-beta.3"
fhe-traits = "0.1.0-beta.3"
fhe = "0.1.0-beta.4"
fhe-traits = "0.1.0-beta.4"
```

## Minimum supported version / toolchain

Rust **1.62** or newer.
Rust **1.64** or newer.

## ⚠️ Security / Stability

Expand Down
4 changes: 4 additions & 0 deletions crates/fhe-math/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.0-beta.4 (2023-10-13)

Bump dependencies versions and use workspace dependencies introduced in Rust 1.64.

## 0.1.0-beta.3 (2022-09-11)

Fix a few bugs, remove the need of using nightly, and make some backward-incompatible changes by modifying the API to take as input the random number generator.
Expand Down
44 changes: 23 additions & 21 deletions crates/fhe-math/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
[package]
name = "fhe-math"
description = "Mathematical utilities for the fhe.rs library"
version = "0.1.0-beta.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/tlepoint/fhe.rs"
authors.workspace = true
documentation.workspace = true
edition.workspace = true
license-file.workspace = true
repository.workspace = true
version.workspace = true

[lib]
bench = false # Disable default bench (we use criterion)

[dependencies]
fhe-traits = { version = "^0.1.0-beta.3", path = "../fhe-traits" }
fhe-util = { version = "^0.1.0-beta.3", path = "../fhe-util" }

crypto-bigint = "0.4.9"
itertools = "0.10.5"
ndarray = "0.15.6"
num-bigint = "0.4.3"
num-bigint-dig = "0.8.1"
num-traits = "0.2.15"
protobuf = "3.2.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
thiserror = "1.0.37"
zeroize = "1.5.7"
sha2 = "0.10.6"
fhe-traits = { version = "^0.1.0-beta.4", path = "../fhe-traits" }
fhe-util = { version = "^0.1.0-beta.4", path = "../fhe-util" }

crypto-bigint.workspace = true
itertools.workspace = true
ndarray.workspace = true
num-bigint.workspace = true
num-bigint-dig.workspace = true
num-traits.workspace = true
protobuf.workspace = true
rand.workspace = true
rand_chacha.workspace = true
thiserror.workspace = true
zeroize.workspace = true
sha2.workspace = true

[dev-dependencies]
criterion = "0.4.0"
proptest = "1.0.0"
criterion.workspace = true
proptest.workspace = true

[[bench]]
name = "zq"
Expand Down
4 changes: 4 additions & 0 deletions crates/fhe-traits/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.0-beta.4 (2023-10-13)

Bump dependencies versions and use workspace dependencies introduced in Rust 1.64.

## 0.1.0-beta.3 (2022-09-11)

Fix a few bugs, remove the need of using nightly, and make some backward-incompatible changes by modifying the API to take as input the random number generator.
Expand Down
13 changes: 7 additions & 6 deletions crates/fhe-traits/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "fhe-traits"
description = "Traits for the fhe.rs library"
version = "0.1.0-beta.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/tlepoint/fhe.rs"
homepage = "https://fhe.rs/"
authors.workspace = true
documentation.workspace = true
edition.workspace = true
license-file.workspace = true
repository.workspace = true
version.workspace = true

[lib]
bench = false # Disable default bench (we use criterion)

[dependencies]
rand = "0.8.5"
rand.workspace = true
4 changes: 4 additions & 0 deletions crates/fhe-util/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.0-beta.4 (2023-10-13)

Bump dependencies versions and use workspace dependencies introduced in Rust 1.64.

## 0.1.0-beta.3 (2022-09-11)

Fix a few bugs, remove the need of using nightly, and make some backward-incompatible changes by modifying the API to take as input the random number generator.
Expand Down
20 changes: 11 additions & 9 deletions crates/fhe-util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
[package]
name = "fhe-util"
description = "Utilities for the fhe.rs library"
version = "0.1.0-beta.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/tlepoint/fhe.rs"
authors.workspace = true
documentation.workspace = true
edition.workspace = true
license-file.workspace = true
repository.workspace = true
version.workspace = true

[dependencies]
itertools = "0.10.5"
num-bigint = {version = "0.8.1", package = "num-bigint-dig", features = ["prime"]}
num-traits = "0.2.15"
rand = "0.8.5"
itertools.workspace = true
num-bigint-dig = { workspace = true, features = ["prime"] }
num-traits.workspace = true
rand.workspace = true

[dev-dependencies]
proptest = "1.0.0"
proptest.workspace = true
2 changes: 1 addition & 1 deletion crates/fhe-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod u256;
use rand::{CryptoRng, RngCore};
pub use u256::U256;

use num_bigint::{prime::probably_prime, BigUint, ModInverse};
use num_bigint_dig::{prime::probably_prime, BigUint, ModInverse};
use num_traits::{cast::ToPrimitive, PrimInt};
use std::{mem::size_of, panic::UnwindSafe};

Expand Down
4 changes: 4 additions & 0 deletions crates/fhe/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.0-beta.4 (2023-10-13)

Bump dependencies versions and use workspace dependencies introduced in Rust 1.64.

## 0.1.0-beta.3 (2022-09-11)

Fix a few bugs, remove the need of using nightly, and make some backward-incompatible changes:
Expand Down
51 changes: 26 additions & 25 deletions crates/fhe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
[package]
name = "fhe"
description = "Fully Homomorphic Encryption in Rust"
version = "0.1.0-beta.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/tlepoint/fhe.rs"
homepage = "https://fhe.rs/"
authors.workspace = true
documentation.workspace = true
edition.workspace = true
license-file.workspace = true
repository.workspace = true
version.workspace = true

[lib]
bench = false # Disable default bench (we use criterion)

[dependencies]
fhe-math = { version = "^0.1.0-beta.3", path = "../fhe-math" }
fhe-traits = { version = "^0.1.0-beta.3", path = "../fhe-traits" }
fhe-util = { version = "^0.1.0-beta.3", path = "../fhe-util" }

itertools = "0.10.5"
num-bigint = "0.4.3"
num-traits = "0.2.15"
rand = "0.8.5"
rand_chacha = "0.3.1"
zeroize = "1.5.7"
zeroize_derive = "1.3.2"
ndarray = "0.15.6"
protobuf = "3.2.0"
thiserror = "1.0.37"
fhe-math = { version = "^0.1.0-beta.4", path = "../fhe-math" }
fhe-traits = { version = "^0.1.0-beta.4", path = "../fhe-traits" }
fhe-util = { version = "^0.1.0-beta.4", path = "../fhe-util" }

itertools.workspace = true
num-bigint.workspace = true
num-traits.workspace = true
rand.workspace = true
rand_chacha.workspace = true
zeroize.workspace = true
zeroize_derive.workspace = true
ndarray.workspace = true
protobuf.workspace = true
thiserror.workspace = true

[dev-dependencies]
criterion = "0.4.0"
indicatif = "0.17.1"
itertools = "0.10.5"
ndarray = "0.15.6"
rand = "0.8.5"
console = "0.15.2"
criterion.workspace = true
indicatif.workspace = true
itertools.workspace = true
ndarray.workspace = true
rand.workspace = true
console.workspace = true

[[bench]]
name = "bfv"
Expand Down

0 comments on commit a0287ba

Please sign in to comment.