Skip to content

Commit 1d77728

Browse files
joskekaimast
authored andcommitted
feature: workflow for cargo audit
1 parent 5f17e0d commit 1d77728

2 files changed

Lines changed: 18 additions & 38 deletions

File tree

.circleci/config.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ jobs:
400400
steps:
401401
- checkout
402402
- setup_environment:
403-
cache_key: v3.3.1-rust-1.83.0--cache
403+
cache_key: v3.3.1-rust-1.83.0-machete-cache
404404
- run:
405405
name: Check for unused dependencies
406406
no_output_timeout: 35m
@@ -410,6 +410,23 @@ jobs:
410410
- clear_environment:
411411
cache_key: v3.3.1-rust-1.83.0-machete-cache
412412

413+
check-cargo-audit:
414+
docker:
415+
- image: cimg/rust:1.83.0 # Attention - Change the MSRV in Cargo.toml and rust-toolchain as well
416+
resource_class: << pipeline.parameters.medium >>
417+
steps:
418+
- checkout
419+
- setup_environment:
420+
cache_key: v3.3.1-rust-1.83.0-cargo-audit-cache
421+
- run:
422+
name: Check for unused dependencies
423+
no_output_timeout: 35m
424+
command: |
425+
cargo install cargo-audit@0.7.0
426+
cargo audit -D warnings
427+
- clear_environment:
428+
cache_key: v3.3.1-rust-1.83.0-cargo-audit-cache
429+
413430
check-clippy:
414431
docker:
415432
- image: cimg/rust:1.83.0 # Attention - Change the MSRV in Cargo.toml and rust-toolchain as well

.integration/Cargo.toml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)