Skip to content

Commit

Permalink
Merge pull request #259 from marshallpierce/serprex-master
Browse files Browse the repository at this point in the history
Fixes for #258
  • Loading branch information
marshallpierce authored Nov 11, 2023
2 parents 7f81baf + 2f5d65b commit baffe6c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
- run:
name: Log rustc version
command: rustc --version
- run:
name: Build main target
# update first to select dependencies appropriate for this toolchain
command: |
cargo update
cargo build
- run:
name: Check formatting
command: |
Expand All @@ -64,9 +70,6 @@ jobs:
rustup component add clippy
cargo clippy --all-targets
fi
- run:
name: Build main target
command: cargo build
- run:
name: Build all targets
command: |
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ criterion = "0.4.0"
rand = { version = "0.8.5", features = ["small_rng"] }
structopt = "0.3.26"
# test fixtures for engine tests
rstest = "0.12.0"
rstest_reuse = "0.3.0"
lazy_static = "1.4.0"
rstest = "0.13.0"
rstest_reuse = "0.6.0"
once_cell = "1"

[features]
default = ["std"]
Expand Down
9 changes: 5 additions & 4 deletions src/alphabet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ const ALPHABET_SIZE: usize = 64;
/// };
/// ```
///
/// Building a lazy_static:
/// Building lazily:
///
/// ```
/// use base64::{
/// alphabet::Alphabet,
/// engine::{general_purpose::GeneralPurpose, GeneralPurposeConfig},
/// };
/// use once_cell::sync::Lazy;
///
/// lazy_static::lazy_static! {
/// static ref CUSTOM: Alphabet = Alphabet::new("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").unwrap();
/// }
/// static CUSTOM: Lazy<Alphabet> = Lazy::new(||
/// Alphabet::new("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").unwrap()
/// );
/// ```
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Alphabet {
Expand Down

0 comments on commit baffe6c

Please sign in to comment.