Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
Rust 100%
README.md
script-rs #
The utility to run rust files as a script! Currently only works on Linux and maybe MacOS.
Installation #
You can simply install this tool with this command!
cargo install --git https://tangled.sh/@restedwicked.xyz/script-rs
Usage #
Initialization #
You can create a template file by running
script-rs init <FILE>
The script-rs template file is setup to remove the annoying edition warning, and so you can run the file standalone if you make it an executable.
Running #
You can run a script with
script-rs run <FILE>
Dependencies #
You can manage dependencies with the following commands.
script-rs add <FILE> [CARGO_ARGS]
script-rs remove <FILE> [CARGO_ARGS]
You can simply use the same arguments you would use in a normal crate.
Examples #
# Adding clap
script-rs add clap.rs clap --features derive
# removing clap
script-rs remove clap.rs clap