# cargo-run-bin を Homebrew, apk, Nix, pacman でインストール

cargo-run-bin のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:cargo-run-bin
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cargo-run-bin
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-run-bin
```

  証拠: Alpine Linux edge package indexes: cargo-run-bin from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-run-bin
```

  証拠: 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

- pacman (92%):

```sh
sudo pacman -S cargo-run-bin
```

  証拠: Arch Linux sync databases: cargo-run-bin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:cargo-run-bin
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.7.4
- **ソース概要:** Build, cache, and run binaries from Cargo.toml to avoid global installs
- **ホームページ:** <https://dustinblackman.com/posts/why-does-everyone-install-crates-globally/>
- **リポジトリ:** <https://github.com/dustinblackman/cargo-run-bin>
- **最終更新:** 2026-06-15T10:20:11-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cargo-bin (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.7.4
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://api.github.com/repos/dustinblackman/cargo-run-bin>
- <https://github.com/dustinblackman/cargo-run-bin>
- <https://github.com/dustinblackman/cargo-run-bin#readme>
- <https://crates.io/api/v1/crates/cargo-run-bin>
- <https://formulae.brew.sh/api/formula/cargo-run-bin.json>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- Unix: Cargo.toml
## 他のパッケージマネージャ記録

- Nix - cargo-run-bin: normalized package name match | 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
- apk - cargo-run-bin - 1.7.2-r0: normalized package name match | Alpine Linux edge package indexes: cargo-run-bin from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Build, cache, and run CLI tools scoped in Cargo.toml | https://github.com/dustinblackman/cargo-run-bin
- apk - cargo-run-bin-doc - 1.7.2-r0: normalized package name match | Alpine Linux edge package indexes: cargo-run-bin-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Build, cache, and run CLI tools scoped in Cargo.toml (documentation) | https://github.com/dustinblackman/cargo-run-bin
- pacman - cargo-run-bin - 1.7.4-2: normalized package name match | Arch Linux sync databases: cargo-run-bin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Build, cache, and run CLI tools scoped in Cargo.toml | https://github.com/dustinblackman/cargo-run-bin


## Combined YAML source

View the package source record on GitHub. [combined/cargo-run-bin.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-run-bin.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
