From 69a62b0217e237ffcd461192e4d128bd10f4d45c Mon Sep 17 00:00:00 2001 From: Nikolay Govorov Date: Fri, 24 Jul 2026 00:27:38 +0100 Subject: Check cargo dependencies licenses for rust repos --- README.md | 2 +- tasks/licenses | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8c8706a..6e464e1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ repository cannot grant itself an exemption. ## Licensing policy `tasks/licenses` runs a pinned REUSE version and verifies the repository's -licensing metadata. +licensing metadata. In Rust projects it also runs a pinned `cargo deny check`. ## License diff --git a/tasks/licenses b/tasks/licenses index 17d7176..538826f 100755 --- a/tasks/licenses +++ b/tasks/licenses @@ -2,8 +2,12 @@ # SPDX-FileCopyrightText: 2026 Nikolay Govorov # SPDX-License-Identifier: 0BSD #MISE description="Verify repository licensing metadata" -#MISE tools={"pipx:reuse"="6.2.0"} +#MISE tools={"pipx:reuse"="6.2.0","aqua:EmbarkStudios/cargo-deny"="0.19.0"} set -eu reuse lint + +if [ -f Cargo.toml ]; then + cargo-deny check +fi -- Gilti