BSD Ports

devel/rust-script 0.36.0_8 DragonFly

Run Rust files and expressions as scripts without setup or compilation

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20, MIT
Categories
devel
Package size
972.3 KiB, 3487.9 KiB installed

Description

Run Rust script files without any setup or explicit compilation step, with seamless use of crates specified as dependencies inside the scripts.

With rust-script Rust files and expressions can be executed just like a shell or Python script. Features include:

  • Caching compiled artifacts for speed.
  • Reading Cargo manifests embedded in Rust scripts.
  • Supporting executable Rust scripts via Unix shebangs and Windows file associations.
  • Using expressions as stream filters (i.e. for use in command pipelines).
  • Running unit tests and benchmarks from scripts.

You can get an overview of the available options using the --help flag.

In the other systems

The newest version among them is 0.36.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/rust-script0.36.0_8 newestnone known-[email protected]-
FreeBSDdevel/rust-script0.36.0_10 newestnone known-[email protected]2026-10-14
HardenedBSDdevel/rust-script0.36.0_10 newestno data-[email protected]-
GhostBSDdevel/rust-script0.36.0_10 newestno data-[email protected]-

Version history 1

  1. 0.36.0

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install rust-script

From DPorts:

cd /usr/dports/devel/rust-script && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Required by 1