rust-script
« Back to VersTracker
Description:
Run Rust files and expressions as scripts without any setup or compilation step
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust scripting cli development automation
Install: brew install rust-script
About:
rust-script is a command-line tool that allows you to execute Rust code directly from the command line or from files without a Cargo project or explicit compilation step. It compiles and caches dependencies on the fly, providing the performance of Rust with the convenience of a scripting language. This makes it ideal for writing robust system scripts and automation tasks.
Key Features:
  • Runs Rust code directly from the command line or files
  • Automatic dependency management and compilation
  • Supports Cargo features like dependencies and crates
Use Cases:
  • Writing complex system administration scripts
  • Rapid prototyping of Rust algorithms
  • One-off data processing tasks
Alternatives:
  • cargo-script – rust-script is a modern, maintained alternative that supports newer Cargo features and dependency handling.
  • Python/Node.js – Offers stronger type safety and performance for computationally intensive tasks.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 11:26pm 0 VERSION_BUMP 5bd6b99a
Oct 26, 2024 10:26am 0 NEW b2379268