# Install rust-script with Cargo

Command-line tool to run Rust "scripts" which can make use of crates. Version 0.36.0 via Cargo; verified 2025-08-16. Also installable with nix: nix profile install nixpkgs#rust-script.

## Install

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

Additional install commands:

### Portable and language managers

- Cargo (100%):

```sh
cargo install rust-script
```

  Evidence: local crates.io package metadata

## Package facts

- **Package key:** cargo:rust-script
- **Package manager:** Cargo
- **Package manager page:** <https://crates.io/crates/rust-script>
- **Version:** 0.36.0
- **Source summary:** Command-line tool to run Rust "scripts" which can make use of crates.
- **Homepage:** <https://rust-script.org>
- **Repository:** <https://github.com/fornwall/rust-script>
- **Upstream docs:** <https://rust-script.org>
- **License:** MIT/Apache-2.0
- **Source archive:** <https://static.crates.io/crates/rust-script/rust-script-0.36.0.crate>
- **Published:** 2025-08-16 09:37:28.037127+00
- **Last updated:** 2025-08-16 09:37:28.037127+00
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- rust-script (binary): Declared by crates.io version metadata.

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.36.0

## Security Notes

No matching local secret-handling manifest was found for rust-script. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** crates.io database dump
- **Crate ID:** 304,629
- **Crate Size:** 53,678
- **Edition:** 2021
- **Executable Intent:** Intent: public_cli, Signals: crate has no library target
- **Has Lib:** no
- **Num Versions:** 36
- **Recent Download Window Days:** 90
- **Rust Version:** 1.74
- **Version ID:** 1,688,153

## 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://www.automicvault.com/pkg/brew/rust-script/) - Same normalized package name exists in another local package ecosystem.

## Sources

- crates.io package index
- external package-manager database matches
- cross-ecosystem install command graph
