From 92ef7c7bc23a2aa4636f7547cca7e01e9520e223 Mon Sep 17 00:00:00 2001 From: David Bernard Date: Tue, 30 Jan 2024 21:28:51 +0100 Subject: [PATCH] build: exclude generator from crago-deny scope Signed-off-by: David Bernard --- Makefile | 4 +++- generator/Cargo.toml | 2 +- tools/cargo-deny/deny.toml | 11 ++++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b0ef6b1..94213e1 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ lint_cargo_fmt_check: cargo fmt --all -- --check lint_cargo_deny: - cargo deny --all-features \ + cargo deny --workspace --all-features \ + --exclude-dev \ + --exclude generator \ check licenses advisories \ --config=tools/cargo-deny/deny.toml diff --git a/generator/Cargo.toml b/generator/Cargo.toml index fdddb63..c66eb9d 100644 --- a/generator/Cargo.toml +++ b/generator/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true edition.workspace = true license.workspace = true -publish.workspace = true +publish = false repository.workspace = true description = "generate cdevents type from json schema on cdevents-spec" diff --git a/tools/cargo-deny/deny.toml b/tools/cargo-deny/deny.toml index b6ceb5b..94f7eec 100644 --- a/tools/cargo-deny/deny.toml +++ b/tools/cargo-deny/deny.toml @@ -9,13 +9,14 @@ wildcards = "deny" unlicensed = "deny" copyleft = "deny" confidence-threshold = 0.95 -allow = [ - "Apache-2.0", - "MIT", - "BSD-2-Clause", -] +allow = ["Apache-2.0", "MIT", "BSD-2-Clause", "Unicode-DFS-2016"] exceptions = [] +# The unpublished packages (generator) would be ignored now +# FIXME the generator is excluded explicitly (see Makefile), I don't know why this is not working +[licenses.private] +ignore = true + [advisories] unmaintained = "deny" vulnerability = "deny"