Sha256: c1587138e5301ac797c5c362cb3638649b33f79c20c16db6f38ad44330540752

Contents?: true

Size: 844 Bytes

Versions: 23

Compression:

Stored size: 844 Bytes

Contents

//! Preconfigured engines for common use cases.
//!
//! These are re-exports of `const` engines in [crate::engine::general_purpose], renamed with a `BASE64_`
//! prefix for those who prefer to `use` the entire path to a name.
//!
//! # Examples
//!
#![cfg_attr(feature = "alloc", doc = "```")]
#![cfg_attr(not(feature = "alloc"), doc = "```ignore")]
//! use base64::prelude::{Engine as _, BASE64_STANDARD_NO_PAD};
//!
//! assert_eq!("c29tZSBieXRlcw", &BASE64_STANDARD_NO_PAD.encode(b"some bytes"));
//! ```

pub use crate::engine::Engine;

pub use crate::engine::general_purpose::STANDARD as BASE64_STANDARD;
pub use crate::engine::general_purpose::STANDARD_NO_PAD as BASE64_STANDARD_NO_PAD;
pub use crate::engine::general_purpose::URL_SAFE as BASE64_URL_SAFE;
pub use crate::engine::general_purpose::URL_SAFE_NO_PAD as BASE64_URL_SAFE_NO_PAD;

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-28.0.0 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-27.0.0 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-26.0.0 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-25.0.2 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-25.0.1 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-25.0.0 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-24.0.0 ./ext/cargo-vendor/base64-0.21.7/src/prelude.rs
wasmtime-23.0.2 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-22.0.0 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-21.0.1 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-20.0.2 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-20.0.0 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-18.0.3 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-17.0.1 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-17.0.0 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-16.0.0 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-15.0.1 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-15.0.0 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs
wasmtime-14.0.4 ./ext/cargo-vendor/base64-0.21.5/src/prelude.rs