Skip to content

Commit c982811

Browse files
authoredMar 26, 2023
chore: Release 4.0.0-rc.2 (#522)
1 parent 99c0520 commit c982811

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed
 

‎CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ major series.
1010
#### Breaking changes
1111

1212
* Update the MSRV from 1.41 to 1.60
13+
* Provide SemVer policy
1314
* Make `digest` an optional feature
1415
* Make `rand_core` an optional feature
15-
* Add target u32/u64 backend overrides
16-
* Update backend selection to be more automatic
1716
* Remove `std` feature flag
1817
* Remove `nightly` feature flag
18+
* Automatic serial backend selection between `u32` and `u64` over the default `u32`
19+
* Backend selection is now via cfg(curve25519_dalek_backend) over additive features.
20+
* Provide override to select `u32` or `u64` backend via cfg(curve25519_dalek_bits)
1921
* Replace methods `Scalar::{zero, one}` with constants `Scalar::{ZERO, ONE}`
2022
* Deprecate `EdwardsPoint::hash_from_bytes` and rename it `EdwardsPoint::nonspec_map_to_curve`
2123
* Require including a new trait, `use curve25519_dalek::traits::BasepointTable`

‎Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "curve25519-dalek"
44
# - update CHANGELOG
55
# - update README if required by semver
66
# - if README was updated, also update module documentation in src/lib.rs
7-
version = "4.0.0-rc.1"
7+
version = "4.0.0-rc.2"
88
edition = "2021"
99
rust-version = "1.60.0"
1010
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>",
@@ -55,12 +55,12 @@ serde = { version = "1.0", default-features = false, optional = true, features =
5555
zeroize = { version = "1", default-features = false, optional = true }
5656

5757
[target.'cfg(curve25519_dalek_backend = "fiat")'.dependencies]
58-
fiat-crypto = "0.1.6"
58+
fiat-crypto = "0.1.19"
5959

6060
# The original packed_simd package was orphaned, see
6161
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
6262
[target.'cfg(curve25519_dalek_backend = "simd")'.dependencies]
63-
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"] }
63+
packed_simd = { version = "0.3.8", package = "packed_simd_2", features = ["into_bits"] }
6464

6565
[features]
6666
default = ["alloc", "precomputed-tables", "zeroize"]

‎README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ curve25519-dalek = "3"
4343
To use the latest prerelease (see changes [below](#breaking-changes-in-400)),
4444
use the following line in your project's `Cargo.toml`:
4545
```toml
46-
curve25519-dalek = "4.0.0-rc.1"
46+
curve25519-dalek = "4.0.0-rc.2"
4747
```
4848

4949
## Feature Flags
@@ -65,16 +65,15 @@ disable it when running `cargo`, add the `--no-default-features` CLI flag.
6565

6666
Breaking changes for each major version release can be found in
6767
[`CHANGELOG.md`](CHANGELOG.md), under the "Breaking changes" subheader. The
68-
latest breaking changes are below:
68+
latest breaking changes in high level are below:
6969

7070
### Breaking changes in 4.0.0
7171

7272
* Update the MSRV from 1.41 to 1.60
73-
* Update backend selection to be more automatic. See [backends](#backends)
74-
* Remove `std` feature flag
75-
* Remove `nightly` feature flag
76-
* Make `digest` an optional feature
77-
* Make `rand_core` an optional feature
73+
* Provide SemVer policy
74+
* Make `digest` and `rand_core` optional features
75+
* Remove `std` and `nightly` features
76+
* Replace backend selection - See [CHANGELOG.md](CHANGELOG.md) and [backends](#backends)
7877
* Replace methods `Scalar::{zero, one}` with constants `Scalar::{ZERO, ONE}`
7978
* `Scalar::from_canonical_bytes` now returns `CtOption`
8079
* `Scalar::is_canonical` now returns `Choice`
@@ -85,6 +84,10 @@ latest breaking changes are below:
8584

8685
This release also does a lot of dependency updates and relaxations to unblock upstream build issues.
8786

87+
### 4.0.0 - Open Breaking Changes
88+
89+
See tracking issue: [curve25519-dalek/issues/521](https://github.com/dalek-cryptography/curve25519-dalek/issues/521)
90+
8891
# Backends
8992

9093
Curve arithmetic is implemented and used by selecting one of the following backends:
@@ -273,9 +276,6 @@ that primitive.
273276

274277
Please see [CONTRIBUTING.md][contributing].
275278

276-
Patches and pull requests should be make against the `develop`
277-
branch, **not** `main`.
278-
279279
# About
280280

281281
**SPOILER ALERT:** *The Twelfth Doctor's first encounter with the Daleks is in

0 commit comments

Comments
 (0)