fix: CI failures — update deny.toml for cargo-deny v2, fix clippy derivable_impls

- deny.toml: remove deprecated fields (vulnerability, notice, unlicensed, copyleft)
  that were removed in cargo-deny v2. Add CDLA-Permissive-2.0 for webpki-roots.
- security/policy.rs: replace manual Default impl for AutonomyLevel with
  #[derive(Default)] + #[default] attribute (clippy::derivable_impls on Rust 1.93)

657 tests passing, 0 clippy warnings (Rust 1.93.1), cargo-deny clean
This commit is contained in:
argenis de la rosa 2026-02-13 17:09:22 -05:00
parent ad39c52965
commit 4fceba0740
2 changed files with 7 additions and 13 deletions

View file

@ -1,14 +1,12 @@
# cargo-deny configuration
# cargo-deny configuration — v2 schema
# https://embarkstudios.github.io/cargo-deny/
[advisories]
vulnerability = "deny"
unmaintained = "warn"
unmaintained = "workspace"
yanked = "warn"
notice = "warn"
[licenses]
unlicensed = "deny"
# All licenses are denied unless explicitly allowed
allow = [
"MIT",
"Apache-2.0",
@ -20,8 +18,9 @@ allow = [
"OpenSSL",
"Zlib",
"MPL-2.0",
"CDLA-Permissive-2.0",
]
copyleft = "deny"
unused-allowed-license = "allow"
[bans]
multiple-versions = "warn"