From 6ad5296e2c97485095010e0363898e5f691a8c2a Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Mon, 11 Dec 2023 15:04:27 -0500 Subject: [PATCH] Add cargo audit configuration (failing) --- .cargo/audit.toml | 13 +++++++++++++ Makefile | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 .cargo/audit.toml diff --git a/.cargo/audit.toml b/.cargo/audit.toml new file mode 100644 index 0000000..8d3a93f --- /dev/null +++ b/.cargo/audit.toml @@ -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 diff --git a/Makefile b/Makefile index 011d8ef..899d125 100644 --- a/Makefile +++ b/Makefile @@ -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