Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Add cargo audit configuration (failing)
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Dec 11, 2023
1 parent b2279fd commit 6ad5296
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[advisories]
# advisory IDs to ignore e.g. ["RUSTSEC-2019-0001", ...]
ignore = []

# Output Configuration
[output]
deny = ["warnings"]
quiet = false

# Target Configuration
[target]
arch = "x86_64" # Ignore advisories for CPU architectures other than this one
os = "linux" # Ignore advisories for operating systems other than this one
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ rust-test: ## Run Rust tests
@echo "Running Rust tests..."
cargo test

.PHONY: rust-audit
rust-audit: ## check dependencies in Cargo.lock
@echo "███ Running Rust dependency checks..."
@cargo install cargo-audit
@cargo audit
@echo

# Explanation of the below shell command should it ever break.
# 1. Set the field separator to ": ##" and any make targets that might appear between : and ##
# 2. Use sed-like syntax to remove the make targets
Expand Down

0 comments on commit 6ad5296

Please sign in to comment.