Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, pacman 安装 cargo-run-bin

查看 cargo-run-bin 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cargo-run-bin

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cargo-run-bin

Alpine Linux edge package indexes · cargo-run-bin · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#cargo-run-bin

nixpkgs package indexes · pkgs/by-name/ca/cargo-run-bin/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S cargo-run-bin

Arch Linux sync databases · cargo-run-bin · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Build, cache, and run binaries from Cargo.toml to avoid global installs

命令和别名

  • cargo-bin

历史

项目历史与用法

cargo-run-bin is a Cargo-oriented tool for building, caching, and running project-scoped CLI binaries declared in Cargo.toml instead of installing those tools globally.

项目历史

The GitHub repository was created in May 2021 and the first crates.io release followed later that month. The README positions the tool as similar to npm run and gomodrun, aimed at preventing team and CI tool-version drift.

采用历史

crates.io metadata lists it as a Cargo plugin and command-line utility. Batch package facts show packaging across Homebrew, Alpine, Nix, and Arch, and the README also documents distro-package installation paths.

使用方式

Users declare tools under [package.metadata.bin] or [workspace.metadata.bin] in Cargo.toml, then run cargo bin CRATE to install/cache and execute the requested binary. The README also documents cargo bin --install and cargo bin --sync-aliases for Cargo-extension aliases.

为什么软件包爱好者会关心

It gives Rust projects a lightweight, Cargo-native answer to pinned developer tooling: tool versions live with the project manifest, which makes onboarding and CI behavior less dependent on whatever happens to be globally installed.

时间线

  • 2021: Repository created and first crates.io release published.
  • 2024: v1.7.x releases documented on GitHub.
  • 2026: crates.io reported v1.7.5 as the latest release.

Related projects

  • README compares the workflow to npm run and gomodrun.
  • README says cargo-binstall can be used for prebuilt binary installs when available.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
Cargo.toml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cargo-bincli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.7.4
管理器更新时间2026-06-15
本地数据OK
上游当前
检测到的最新版本v1.7.4

https://github.com/dustinblackman/cargo-run-bin

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:cargo-run-bin
版本1.7.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cargo-run-bin
主页https://dustinblackman.com/posts/why-does-everyone-install-crates-globally/
仓库https://github.com/dustinblackman/cargo-run-bin
上游文档https://github.com/dustinblackman/cargo-run-bin#readme
许可证MIT
源码归档https://github.com/dustinblackman/cargo-run-bin/archive/refs/tags/v1.7.4.tar.gz
最后更新2026-06-15T10:20:11-04:00
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-run-bin
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

cargo-run-bin

nix profile install nixpkgs#cargo-run-bin
  • normalized package name match
  • 匹配方式:Cargo Run Bin
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-run-bin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

cargo-run-bin 1.7.2-r0

Build, cache, and run CLI tools scoped in Cargo.toml

https://github.com/dustinblackman/cargo-run-bin

sudo apk add cargo-run-bin
  • License: MIT
  • Architecture: x86_64
  • Source Package: cargo-run-bin
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cargo Run Bin
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-run-bin from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

cargo-run-bin-doc 1.7.2-r0

Build, cache, and run CLI tools scoped in Cargo.toml (documentation)

https://github.com/dustinblackman/cargo-run-bin

sudo apk add cargo-run-bin-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: cargo-run-bin
  • normalized package name match
  • 匹配方式:Cargo Run Bin
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-run-bin-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

cargo-run-bin 1.7.4-2

Build, cache, and run CLI tools scoped in Cargo.toml

https://github.com/dustinblackman/cargo-run-bin

sudo pacman -S cargo-run-bin
  • License: MIT
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Cargo Run Bin
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-run-bin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment