Registry / utility / run-script

run-script

JSON →
library0.11.2rscratesunverified

Run shell scripts and commands from Rust with support for stdin, stdout, and stderr.

# Cargo.toml [dependencies] run_script = "0.11.2"
INSTALL
IMPORT
SIG · RUN-SCRIPT
R
run-script
utilityrustv0.11.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ScriptOptions
use run_script::ScriptOptions;

Executes a shell script and captures output.

use run_script::ScriptOptions; let options = ScriptOptions::new(); let (exit_code, output, error) = run_script::run( r#" echo "Hello from shell" "#, &vec![], &options, ).unwrap(); println!("Output: {}", output);
Debug
Known issues
gotchaShell injection risk: passing user input directly into script strings can lead to command injection.
fix
Use `run_script::run` with arguments as a vector instead of concatenating strings.
affects: *
Upgrade
Version history
0.11.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
run-script — cargo add run-script · libregistry