Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ actionlint = "1.7.12"
atlas = "1.2.3"
blender = "4.5.11"
buf = "1.71.0"
cargo-deny = "0.19.9"
claude = "2.1.191"
cloud-provider-kind = "0.10.0"
cwic = "1.33.0"
Expand All @@ -28,6 +29,7 @@ actionlint = "file://./actionlint/plugin.toml"
atlas = "file://./atlas/plugin.toml"
blender = "file://./blender/plugin.toml"
buf = "file://./buf/plugin.toml"
cargo-deny = "file://./cargo-deny/plugin.toml"
claude = "file://./claude/plugin.toml"
cloud-provider-kind = "file://./cloud-provider-kind/plugin.toml"
cwic = "file://./cwic/plugin.toml"
Expand Down
13 changes: 13 additions & 0 deletions cargo-deny/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cargo-deny plugin

[cargo-deny](https://github.com/EmbarkStudios/cargo-deny) plugin for [proto](https://github.com/moonrepo/proto).

## Installation

cargo-deny is not built into proto, so register this plugin, pin a version, then install:

```shell
proto plugin add cargo-deny "https://raw.githubusercontent.com/Genesis-Embodied-AI/proto-plugins/main/cargo-deny/plugin.toml"
proto pin cargo-deny latest --resolve
proto install cargo-deny
```
34 changes: 34 additions & 0 deletions cargo-deny/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name = "cargo-deny"
type = "cli"

[resolve]
git-url = "https://github.com/EmbarkStudios/cargo-deny"

# Checksum verification is temporarily disabled — the checksum-file / checksum-url
# directives below are left in place but commented out. cargo-deny publishes its
# Windows .sha256 as an uppercase digest and proto compares checksums
# case-sensitively, so install fails on Windows. checksum-url is global to
# [install], so it's all platforms or none. Uncomment the four lines below once
# the proto fix ships: https://github.com/moonrepo/proto/pull/1041
#
# Release tags are bare semver (e.g. 0.19.9), so no version-pattern is needed and
# the download URL uses {version} directly. Each archive nests the binary inside
# a versioned directory. Upstream ships only x86_64 for Windows.
[platform.linux]
download-file = "cargo-deny-{version}-{arch}-unknown-linux-musl.tar.gz"
# checksum-file = "cargo-deny-{version}-{arch}-unknown-linux-musl.tar.gz.sha256"
exe-path = "cargo-deny-{version}-{arch}-unknown-linux-musl/cargo-deny"

[platform.macos]
download-file = "cargo-deny-{version}-{arch}-apple-darwin.tar.gz"
# checksum-file = "cargo-deny-{version}-{arch}-apple-darwin.tar.gz.sha256"
exe-path = "cargo-deny-{version}-{arch}-apple-darwin/cargo-deny"

[platform.windows]
download-file = "cargo-deny-{version}-x86_64-pc-windows-msvc.tar.gz"
# checksum-file = "cargo-deny-{version}-x86_64-pc-windows-msvc.tar.gz.sha256"
exe-path = "cargo-deny-{version}-x86_64-pc-windows-msvc/cargo-deny.exe"

[install]
download-url = "https://github.com/EmbarkStudios/cargo-deny/releases/download/{version}/{download_file}"
# checksum-url = "https://github.com/EmbarkStudios/cargo-deny/releases/download/{version}/{checksum_file}"