2 unstable releases

0.2.3 Nov 26, 2023
0.1.0 Jul 20, 2021

#2580 in Command line utilities

23 downloads per month

MIT/Apache

19KB
269 lines

runrs

Run rust script

Install:

cargo install --git https://git.hatter.ink/hatter/runrs runrs

Environment variables

Env Key Env Value
HOME User home, default by OS system
LOGGER Logger, * for verbose
RUNRS_SKIP_CACHE Skip compiled cached file, bool , turn on true, yes, on or 1
RUNRS_REBUILD Force rebuild, bool
RUNRS_SILENT_BUILD Build new binary in silent mode, bool
RUNRS_RUST_SCRIPT rust_script command line bin file
RUNRS_MAX_SCRIPT_LEN Max script length, default 1MB

Runnable binaries:

  • ~/.cargo/bin/runrs
  • ~/.cargo/bin/rust-script

Simply call rust-script (https://github.com/fornwall/rust-script).

Dependencies

~4–16MB
~226K SLoC