macOS
brew install rust-scriptlocal Homebrew formula metadata
sudo port install rust-scriptMacPorts ports tree · lang/rust-script/Portfile · 来源: api.github.com
安装
brew install rust-scriptlocal Homebrew formula metadata
sudo port install rust-scriptMacPorts ports tree · lang/rust-script/Portfile · 来源: api.github.com
sudo apk add rust-scriptAlpine Linux edge package indexes · rust-script · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#rust-scriptnixpkgs package indexes · pkgs/by-name/ru/rust-script/package.nix · 来源: api.github.com
sudo pacman -S rust-scriptArch Linux sync databases · rust-script · 来源: geo.mirror.pkgbuild.com
winget install --id FredrikFornwall.Rust-Script -eWindows Package Manager source index · FredrikFornwall.Rust-Script · 来源: cdn.winget.microsoft.com
概览
Run Rust files and expressions as scripts without any setup or compilation step
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
rust-script | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/fornwall/rust-script
安装元数据
| 软件包键 | brew:rust-script |
|---|---|
| 版本 | 0.36.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/rust-script |
| 主页 | https://rust-script.org |
| 仓库 | https://github.com/fornwall/rust-script |
| 上游文档 | https://rust-script.org |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/fornwall/rust-script/archive/refs/tags/0.36.0.tar.gz |
| 最后更新 | 2026-09-13T07:37:37Z |
| Pulse | updated |
| 依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.