# 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 from local package data. Also installable with nix: nix profile install nixpkgs#rust-script.

## Install

```sh
sudo av install brew:rust-script
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install rust-script
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install rust-script
```

  Evidence: MacPorts ports tree: lang/rust-script/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add rust-script
```

  Evidence: Alpine Linux edge package indexes: rust-script from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#rust-script
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ru/rust-script/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S rust-script
```

  Evidence: Arch Linux sync databases: rust-script from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- winget (92%):

```sh
winget install --id FredrikFornwall.Rust-Script -e
```

  Evidence: Windows Package Manager source index: FredrikFornwall.Rust-Script from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:rust-script
- **Package manager:** Homebrew
- **Version:** 0.36.0
- **Source summary:** Run Rust files and expressions as scripts without any setup or compilation step
- **Homepage:** <https://rust-script.org>
- **Repository:** <https://github.com/fornwall/rust-script>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- rust-script (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.36.0

## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Nix - rust-script: normalized package name match | nixpkgs package indexes: pkgs/by-name/ru/rust-script/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - rust-script - 0.36.0-r0: normalized package name match | Alpine Linux edge package indexes: rust-script from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Run Rust files and expressions as scripts without any setup or compilation step | https://rust-script.org/
- pacman - rust-script - 0.36.0-2: normalized package name match | Arch Linux sync databases: rust-script from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Run Rust files and expressions as scripts without any setup or compilation | https://rust-script.org
- MacPorts - rust-script: normalized package name match | MacPorts ports tree: lang/rust-script/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - FredrikFornwall.Rust-Script: normalized package name match | Windows Package Manager source index: FredrikFornwall.Rust-Script from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [rust-script](https://pkg.so/pkg/cargo/rust-script/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
