Skip to content

Commit

Permalink
feat(workflow): Change clippy command to allow successful checks with…
Browse files Browse the repository at this point in the history
… new ascon and chacha features
  • Loading branch information
448-OG committed Dec 14, 2023
1 parent 3962fc5 commit 83b3e66
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Expand Up @@ -20,8 +20,10 @@ jobs:
run: cargo build
- name: Build with all features
run: cargo build --all-features
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run clippy for `chacha`
run: cargo clippy --all-targets --no-default-features --features full_with_chacha -- -D warnings
- name: Run clippy for `ascon`
run: cargo clippy --all-targets -- -D warnings
- name: Run build with `random` feature enabled
run: cargo build --no-default-features --features random --verbose
- name: Run build with `clonable_mem` feature enabled
Expand Down
8 changes: 7 additions & 1 deletion examples/simple.rs
Expand Up @@ -72,7 +72,13 @@ fn foo() {
}
}

#[cfg(not(all(feature = "encryption", feature = "ed25519", feature = "x25519")))]
#[cfg(not(all(
feature = "encryption",
feature = "ascon",
feature = "ed25519",
feature = "x25519",
feature = "uuid"
)))]
fn foo() {
panic!("RUN THIS EXAMPLE WITH `cargo run --example simple --features \"encryption ed25519 x25519\"`")
}

0 comments on commit 83b3e66

Please sign in to comment.