pkg.soopen package index

brew / 排名 7666

使用 Homebrew, apk, MacPorts, Nix, pacman, winget 安装 rust-script

查看 rust-script 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install rust-script

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install rust-script

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add rust-script

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

Nix已验证 · 92%
nix profile install nixpkgs#rust-script

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

Arch Linux pacman已验证 · 92%
sudo pacman -S rust-script

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

Windows

Windows Package Manager已验证 · 92%
winget install --id FredrikFornwall.Rust-Script -e

Windows 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

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
rust-scriptcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本0.36.0
管理器更新时间2026-09-13
本地数据OK
上游当前
检测到的最新版本0.36.0

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

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

rust-script

nix profile install nixpkgs#rust-script
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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