CI is now two workflows: verify.yml (pull requests + non-main pushes) runs the clippy gate, build, unit tests, microbenchmarks, the headless self-test, and a best-effort dependency audit; release.yml (main) repeats the clippy gate + audit before its existing build/test/selftest/package/release, then refreshes the committed README badges and pushes any change back (best-effort, and a badges- only push does not bump the version, so it does not loop). Security: cargo audit found a build-time-only advisory (h2 0.3 in the wx-rs build script's reqwest 0.11 subtree, never linked into the runtime binary and never executed on Linux). The vendored/offline tree can't upgrade it without re-vendoring, so it is documented and accepted in .cargo/audit.toml (mirrored in deny.toml with the project's permissive-license policy). Badges: ci/gen-badges.py emits self-contained shields-style SVGs into badges/ (tests, coverage 36%, bench, LOC 12.5k, clippy clean, dependencies, license) -- committed and referenced by relative path so a self-hosted Gitea renders them with no external service. README rewritten around what the toolkit actually does today (discover / monitor / operate / install), with build, CLI, dev, and architecture sections and the dual-license note. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Djv3oncM4LxTS5tb61Ako6
44 lines
1.3 KiB
TOML
44 lines
1.3 KiB
TOML
# cargo-deny configuration (https://embarkstudios.github.io/cargo-deny/).
|
|
#
|
|
# Run locally with `cargo deny check`. CI's security gate is cargo-audit (lighter,
|
|
# already wired); this file documents the dependency policy and lets anyone run a
|
|
# fuller license/advisory/source check. The whole dependency set is vendored under
|
|
# ./vendor and resolved offline (see .cargo/config.toml).
|
|
|
|
[advisories]
|
|
version = 2
|
|
# Accepted, documented advisories (build-time-only reqwest 0.11 subtree of the
|
|
# wx-rs build script -- never linked into the runtime binary). Mirrors
|
|
# .cargo/audit.toml; re-review when the vendored dependency set is refreshed.
|
|
ignore = [
|
|
"RUSTSEC-2026-0258", # h2 0.3 DATA-frame DoS (build-time HTTP client only)
|
|
"RUSTSEC-2025-0134", # rustls-pemfile 1.0.4 unmaintained (same subtree)
|
|
]
|
|
|
|
[licenses]
|
|
version = 2
|
|
# The project is MIT OR Apache-2.0; only permissive licenses are allowed in the
|
|
# dependency tree.
|
|
allow = [
|
|
"MIT",
|
|
"Apache-2.0",
|
|
"Apache-2.0 WITH LLVM-exception",
|
|
"BSD-2-Clause",
|
|
"BSD-3-Clause",
|
|
"ISC",
|
|
"Zlib",
|
|
"Unicode-3.0",
|
|
"Unicode-DFS-2016",
|
|
"MPL-2.0",
|
|
"CC0-1.0",
|
|
]
|
|
confidence-threshold = 0.9
|
|
|
|
[bans]
|
|
multiple-versions = "warn"
|
|
wildcards = "allow"
|
|
|
|
[sources]
|
|
unknown-registry = "warn"
|
|
unknown-git = "warn"
|