Skip to content

Commit 25ba2ee

Browse files
jleibsclaude
andcommitted
Add cargo-deny plugin
cargo-deny audits Rust dependency trees for security advisories, license policy, duplicate versions, and untrusted sources. - Uses the static musl Linux build; macOS and Windows use the upstream release archives (Windows ships x86_64 only) - Verifies every download against its published .sha256 - Tags are bare semver, so no version-pattern is needed - The binary nests inside a versioned directory, reflected in exe-path Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T2Rwh4XwFE3cR9oHCc7T89
1 parent e7009e9 commit 25ba2ee

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

.prototools

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ actionlint = "1.7.12"
22
atlas = "1.2.3"
33
blender = "4.5.11"
44
buf = "1.71.0"
5+
cargo-deny = "0.19.9"
56
claude = "2.1.191"
67
cloud-provider-kind = "0.10.0"
78
cwic = "1.33.0"
@@ -28,6 +29,7 @@ actionlint = "file://./actionlint/plugin.toml"
2829
atlas = "file://./atlas/plugin.toml"
2930
blender = "file://./blender/plugin.toml"
3031
buf = "file://./buf/plugin.toml"
32+
cargo-deny = "file://./cargo-deny/plugin.toml"
3133
claude = "file://./claude/plugin.toml"
3234
cloud-provider-kind = "file://./cloud-provider-kind/plugin.toml"
3335
cwic = "file://./cwic/plugin.toml"

cargo-deny/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# cargo-deny plugin
2+
3+
[cargo-deny](https://github.com/EmbarkStudios/cargo-deny) plugin for [proto](https://github.com/moonrepo/proto).
4+
5+
## Installation
6+
7+
cargo-deny is not built into proto, so register this plugin, pin a version, then install:
8+
9+
```shell
10+
proto plugin add cargo-deny "https://raw.githubusercontent.com/Genesis-Embodied-AI/proto-plugins/main/cargo-deny/plugin.toml"
11+
proto pin cargo-deny latest --resolve
12+
proto install cargo-deny
13+
```

cargo-deny/plugin.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name = "cargo-deny"
2+
type = "cli"
3+
4+
[resolve]
5+
git-url = "https://github.com/EmbarkStudios/cargo-deny"
6+
7+
# Release tags are bare semver (e.g. 0.19.9), so no version-pattern is needed and
8+
# the download URL uses {version} directly. Each archive nests the binary inside
9+
# a versioned directory. Upstream ships only x86_64 for Windows.
10+
[platform.linux]
11+
download-file = "cargo-deny-{version}-{arch}-unknown-linux-musl.tar.gz"
12+
checksum-file = "cargo-deny-{version}-{arch}-unknown-linux-musl.tar.gz.sha256"
13+
exe-path = "cargo-deny-{version}-{arch}-unknown-linux-musl/cargo-deny"
14+
15+
[platform.macos]
16+
download-file = "cargo-deny-{version}-{arch}-apple-darwin.tar.gz"
17+
checksum-file = "cargo-deny-{version}-{arch}-apple-darwin.tar.gz.sha256"
18+
exe-path = "cargo-deny-{version}-{arch}-apple-darwin/cargo-deny"
19+
20+
[platform.windows]
21+
download-file = "cargo-deny-{version}-x86_64-pc-windows-msvc.tar.gz"
22+
checksum-file = "cargo-deny-{version}-x86_64-pc-windows-msvc.tar.gz.sha256"
23+
exe-path = "cargo-deny-{version}-x86_64-pc-windows-msvc/cargo-deny.exe"
24+
25+
[install]
26+
download-url = "https://github.com/EmbarkStudios/cargo-deny/releases/download/{version}/{download_file}"
27+
checksum-url = "https://github.com/EmbarkStudios/cargo-deny/releases/download/{version}/{checksum_file}"

0 commit comments

Comments
 (0)