rust-script

Write and execute standalone Rust scripts with inline Cargo manifests.

1|Updated Nov 25, 2025
One-click install
npx skills add https://github.com/89jobrien/dotfiles --skill rust-script-89jobrien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-script
Source: https://github.com/89jobrien/dotfiles/tree/main/dot-claude/skills/rust-script
Command: npx skills add https://github.com/89jobrien/dotfiles --skill rust-script-89jobrien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing quick Rust utilities often requires boilerplate and setup; rust-script enables self-contained scripts with a minimal entry, enabling rapid experimentation and automation.

Core Features & Use Cases

  • Shebang-enabled Rust scripts for quick, executable utilities without a full Cargo project.
  • Inline Cargo manifests to declare dependencies directly in the script.
  • Fast compilation with caching and an approachable development workflow for small tasks.
  • Use cases include one-off data processing, simple CLIs, or automation tasks in scripts.

Quick Start

Install rust-script and run rust-script script.rs to execute a ready-to-run Rust script.

Frequently Asked Questions about rust-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write standalone Rust scripts without setting up a full Cargo project?

You can use rust-script to write standalone Rust scripts by utilizing shebang support and inline Cargo manifests to declare dependencies directly, avoiding full project boilerplate.

Can I declare dependencies inline in a Rust CLI automation script?

Yes, inline Cargo manifests allow you to declare dependencies directly within your Rust script, enabling rapid development of self-contained CLI automation tasks.

What is the best way to run quick data-processing utilities in a CI workflow?

Running quick data-processing utilities in CI workflows is best handled by rust-script, which executes self-contained Rust scripts with fast compilation caching and minimal setup.

Does rust-script support shebang lines for executable Rust scripts?

Yes, rust-script supports shebang lines, enabling you to create quick, executable Rust utilities that run directly without needing a traditional Cargo project structure.

How do I execute a Rust file with an inline manifest locally?

You can execute a Rust file with an inline manifest by running the rust-script command followed by your script filename, leveraging fast compilation caching for the task.

What are the limitations of using rust-script for local automation tasks?

rust-script is designed for small data-processing scripts and simple CLIs; it may not suit large-scale software engineering tasks requiring a full Cargo project structure.