pkg.soopen package index

brew / rank 7666

Install rust-script with Homebrew, apk, MacPorts, Nix, pacman, winget

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

Additional install commands

macOS

Homebrewverified · 100%
brew install rust-script

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install rust-script

MacPorts ports tree · lang/rust-script/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add rust-script

Alpine Linux edge package indexes · rust-script · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#rust-script

nixpkgs package indexes · pkgs/by-name/ru/rust-script/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S rust-script

Arch Linux sync databases · rust-script · source: geo.mirror.pkgbuild.com

Windows

Windows Package Managerverified · 92%
winget install --id FredrikFornwall.Rust-Script -e

Windows Package Manager source index · FredrikFornwall.Rust-Script · source: cdn.winget.microsoft.com

overview

Package summary

Run Rust files and expressions as scripts without any setup or compilation step

Commands and aliases

  • rust-script

history

Project history and usage

rust-script runs Rust files or expressions without requiring users to manually create a Cargo project.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • Current official documentation: Requires Rust 1.74 or later and supports Cargo, Homebrew, and distribution-package installation.

Related projects

  • Cargo supplies compilation and dependency management for generated projects; conventional shell and Python scripts provide the ergonomic model against which the tool positions Rust scripting.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
rust-scriptcliglobal executable

freshness

Version and 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.

page generated2026-09-19
manager version0.36.0
manager updated2026-09-13
local dataok
upstreamcurrent
latest detected0.36.0

https://github.com/fornwall/rust-script

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:rust-script
Version0.36.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/rust-script
Homepagehttps://rust-script.org
Repositoryhttps://github.com/fornwall/rust-script
Upstream docshttps://rust-script.org
LicenseApache-2.0
Source archivehttps://github.com/fornwall/rust-script/archive/refs/tags/0.36.0.tar.gz
Last updated2026-09-13T07:37:37Z
Pulseupdated
Dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

rust-script

nix profile install nixpkgs#rust-script
  • normalized package name match
  • Matched by: Rust Script
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ru/rust-script/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

rust-script 0.36.0-r0

Run Rust files and expressions as scripts without any setup or compilation step

https://rust-script.org/

sudo apk add rust-script
  • License: Apache-2.0 OR MIT
  • Architecture: x86_64
  • Source Package: rust-script
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Rust Script
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: rust-script from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

rust-script 0.36.0-2

Run Rust files and expressions as scripts without any setup or compilation

https://rust-script.org

sudo pacman -S rust-script
  • License: MIT AND Apache-2.0
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Rust Script
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: rust-script from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

rust-script

sudo port install rust-script
  • normalized package name match
  • Matched by: Rust Script
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/rust-script/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
winget95%

FredrikFornwall.Rust-Script

winget install --id FredrikFornwall.Rust-Script -e
  • normalized package name match
  • Matched by: Rust Script
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: FredrikFornwall.Rust-Script from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation