File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ precisely, see the following table.
40
40
# 0.21.0-rc.1
41
41
42
42
- Restore the ability to decode into a slice of precisely the correct length with ` Engine.decode_slice_unchecked ` .
43
+ - Add ` Engine ` as a ` pub use ` in ` prelude ` .
43
44
44
45
# 0.21.0-beta.2
45
46
Original file line number Diff line number Diff line change 3
3
//! 1. Perhaps one of the preconfigured engines in [engine::general_purpose] will suit, e.g.
4
4
//! [engine::general_purpose::STANDARD_NO_PAD].
5
5
//! - These are re-exported in [prelude] with a `BASE64_` prefix for those who prefer to
6
- //! `use ... ::prelude::*` or equivalent, e.g. [prelude::BASE64_STANDARD_NO_PAD]
6
+ //! `use base64 ::prelude::*` or equivalent, e.g. [prelude::BASE64_STANDARD_NO_PAD]
7
7
//! 1. If not, choose which alphabet you want. Most usage will want [alphabet::STANDARD] or [alphabet::URL_SAFE].
8
8
//! 1. Choose which [Engine] implementation you want. For the moment there is only one: [engine::GeneralPurpose].
9
9
//! 1. Configure the engine appropriately using the engine's `Config` type.
Original file line number Diff line number Diff line change 6
6
//! # Examples
7
7
//!
8
8
//! ```
9
- //! use base64::{Engine as _, prelude:: BASE64_STANDARD_NO_PAD};
9
+ //! use base64::prelude:: {Engine as _, BASE64_STANDARD_NO_PAD};
10
10
//!
11
11
//! assert_eq!("c29tZSBieXRlcw", &BASE64_STANDARD_NO_PAD.encode(b"some bytes"));
12
12
//! ```
13
+
14
+ pub use crate :: engine:: Engine ;
15
+
13
16
pub use crate :: engine:: general_purpose:: STANDARD as BASE64_STANDARD ;
14
17
pub use crate :: engine:: general_purpose:: STANDARD_NO_PAD as BASE64_STANDARD_NO_PAD ;
15
18
pub use crate :: engine:: general_purpose:: URL_SAFE as BASE64_URL_SAFE ;
You can’t perform that action at this time.
0 commit comments