macOS
brew install rust-scriptlocal Homebrew formula metadata
sudo port install rust-scriptMacPorts ports tree · lang/rust-script/Portfile · source: api.github.com
brew / rank 7666
Run Rust files and expressions as scripts without any setup or compilation step. Version 0.36.0 via Homebrew; verified 2026-09-13. Also installable with nix: nix profile install nixpkgs#rust-script.
install
brew install rust-scriptlocal Homebrew formula metadata
sudo port install rust-scriptMacPorts ports tree · lang/rust-script/Portfile · source: api.github.com
sudo apk add rust-scriptAlpine Linux edge package indexes · rust-script · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#rust-scriptnixpkgs package indexes · pkgs/by-name/ru/rust-script/package.nix · source: api.github.com
sudo pacman -S rust-scriptArch Linux sync databases · rust-script · source: geo.mirror.pkgbuild.com
winget install --id FredrikFornwall.Rust-Script -eWindows Package Manager source index · FredrikFornwall.Rust-Script · source: cdn.winget.microsoft.com
overview
Run Rust files and expressions as scripts without any setup or compilation step
history
rust-script runs Rust files or expressions without requiring users to manually create a Cargo project.
Fredrik Fornwall created rust-script to let Rust source files and expressions run with script-like ergonomics, including embedded Cargo manifests, Unix shebangs, and Windows file associations.
The official site documents Cargo and Homebrew installation and an Arch Linux package. source_facts.package-manager additionally records packages for Alpine, MacPorts, Nix, Windows Package Manager, and other ecosystems.
A user can invoke `rust-script` on a source file, use it in a Unix shebang, evaluate expressions in pipelines, or run tests and benchmarks. Embedded Cargo manifests declare dependencies, and generated build artifacts are cached for faster subsequent runs.
rust-script narrows the ergonomic gap between compiled Rust and scripting languages while retaining Cargo dependency resolution. It is notable to package users because installation is simple but execution creates and caches generated Cargo projects behind the scenes.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
rust-script | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/fornwall/rust-script
install metadata
| Package key | brew:rust-script |
|---|---|
| Version | 0.36.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/rust-script |
| Homepage | https://rust-script.org |
| Repository | https://github.com/fornwall/rust-script |
| Upstream docs | https://rust-script.org |
| License | Apache-2.0 |
| Source archive | https://github.com/fornwall/rust-script/archive/refs/tags/0.36.0.tar.gz |
| Last updated | 2026-09-13T07:37:37Z |
| Pulse | updated |
| Dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | rust-script |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
rust-script
nix profile install nixpkgs#rust-scriptrust-script 0.36.0-r0
Run Rust files and expressions as scripts without any setup or compilation step
sudo apk add rust-scriptrust-script 0.36.0-2
Run Rust files and expressions as scripts without any setup or compilation
sudo pacman -S rust-scriptrust-script
sudo port install rust-scriptFredrikFornwall.Rust-Script
winget install --id FredrikFornwall.Rust-Script -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.