Debian Codegraph @

third_party/rust/subtle/CHANGELOG.md

raw
1 # Changelog
2
3 Entries are listed in reverse chronological order.
4
5 ## 2.5.0
6
7 * Add constant-timedness note to the documentation for `CtOption::unwrap_or_else`.
8 * Add `CtOption::expect`.
9 * Add `ConstantTimeEq::ct_ne` with default implementation.
10 * Add new `core_hint_black_box` feature from Diane Hosfelt and Amber
11 Sprenkels which utilises the original `black_box` functionality from
12 when subtle was first written, which has now found it's way into the
13 Rust standard library.
14 * Add new `const-generics` feature from @survived which adds support
15 for subtle traits for generic arrays `[T; N]`.
16 * Add new feature for supporting `core::cmp::Ordering` for types which
17 implement subtle traits, patch from @tarcieri.
18 * Update `rand` dependency to 0.8.
19
20 ## 2.4.1
21
22 * Fix a bug in how the README was included in the documentation builds
23 which caused nightly builds to break.
24
25 ## 2.4.0
26
27 * Add new `ConstantTimeGreater` and `ConstantTimeLess` traits, as well
28 as implementations for unsigned integers, by @isislovecruft.
29
30 ## 2.3.0
31
32 * Add `impl ConstantTimeEq for Choice` by @tarcieri.
33 * Add `impl From<CtOption<T>> for Option<T>` by @CPerezz. This is useful for
34 handling library code that produces `CtOption`s in contexts where timing
35 doesn't matter.
36 * Introduce an MSRV policy.
37
38 ## 2.2.3
39
40 * Remove the `nightly`-only asm-based `black_box` barrier in favor of the
41 volatile-based one, fixing compilation on current nightlies.
42
43 ## 2.2.2
44
45 * Update README.md to clarify that 2.2 and above do not require the `nightly`
46 feature.
47
48 ## 2.2.1
49
50 * Adds an `or_else` combinator for `CtOption`, by @ebfull.
51 * Optimized `black_box` for `nightly`, by @jethrogb.
52 * Optimized `black_box` for `stable`, by @dsprenkels.
53 * Fixed CI for `no_std`, by @dsprenkels.
54 * Fixed fuzz target compilation, by @3for.
55
56 ## 2.2.0
57
58 * Error during `cargo publish`, yanked.
59
60 ## 2.1.1
61
62 * Adds the "crypto" tag to crate metadata.
63 * New shorter, more efficient ct_eq() for integers, contributed by Thomas Pornin.
64
65 ## 2.1.0
66
67 * Adds a new `CtOption<T>` which acts as a constant-time `Option<T>`
68 (thanks to @ebfull for the implementation).
69 * `Choice` now itself implements `ConditionallySelectable`.
70
71 ## 2.0.0
72
73 * Stable version with traits reworked from 1.0.0 to interact better
74 with the orphan rules.