4ae3e68a16f10bb5d7a5237fd7ca29152fe55f04
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).
Run *.rs from URL:
runrs 'https://script.hatter.ink/@1/hello_world.rs'
Run *.ts from URL:
runts 'https://script.hatter.ink/@0/cal-bun.ts'
runts 'https://script.hatter.ink/@1/cal.ts'
Description
Languages
Rust
93.6%
Just
3.6%
Go
2.4%
Dart
0.2%
TypeScript
0.2%