You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Re-exports of preconfigured engines in `engine` are removed in favor of `base64::prelude::...` that are better suited to those who wish to `use` the entire path to a name.
46
+
47
+
# 0.21.0-beta.1
48
+
49
+
## Breaking changes
50
+
51
+
-`FastPortable` was only meant to be an interim name, and shouldn't have shipped in 0.20. It is now `GeneralPurpose` to
52
+
make its intended usage more clear.
53
+
-`GeneralPurpose` and its config are now `pub use`'d in the `engine` module for convenience.
54
+
- Change a few `from()` functions to be `new()`. `from()` causes confusing compiler errors because of confusion
55
+
with `From::from`, and is a little misleading because some of those invocations are not very cheap as one would
56
+
usually expect from a `from` call.
57
+
-`encode*` and `decode*` top level functions are now methods on `Engine`.
58
+
-`DEFAULT_ENGINE` was replaced by `engine::general_purpose::STANDARD`
/// An `Engine` provides low-level encoding and decoding operations that all other higher-level parts of the API use. Users of the library will generally not need to implement this.
27
25
///
28
26
/// Different implementations offer different characteristics. The library currently ships with
29
27
/// [GeneralPurpose] that offers good speed and works on any CPU, with more choices
30
28
/// coming later, like a constant-time one when side channel resistance is called for, and vendor-specific vectorized ones for more speed.
31
29
///
32
-
/// See [STANDARD] if you just want standard base64. Otherwise, when possible, it's
30
+
/// See [general_purpose::STANDARD_NO_PAD] if you just want standard base64. Otherwise, when possible, it's
33
31
/// recommended to store the engine in a `const` so that references to it won't pose any lifetime
34
32
/// issues, and to avoid repeating the cost of engine setup.
0 commit comments