Skip to content

Commit

Permalink
build: exclude generator from crago-deny scope
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Jan 30, 2024
1 parent 4204a38 commit 92ef7c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
11 changes: 6 additions & 5 deletions tools/cargo-deny/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 92ef7c7

Please sign in to comment.