4 ms·
I use rust-script + run_cmd (for external commands). Rust-script recompiles the script when it has been changed, otherwise it just runs it.
by HKH2 2y ago
I use rust-script + run_cmd (for external commands). Rust-script recompiles the script when it has been changed, otherwise it just runs it.
- schneems 2y agoAwesome! I've seen several command runner variations but haven't looked too closely at them. How do you like `run_cmd`? I've got a crate for running commands that helps with the run ergonomics as well as error formatting but still allows for relatively-"ideomatic" rust usage. I would love to hear your feedback https://docs.rs/fun_run/latest/fun_run/ https://docs.rs/fun_run/latest/fun_run/
- HKH2 2y agorun_cmd uses macros so you can just type shell commands directly, but it does make empty strings disappear (""). I'd rather not split up arguments, but to each their own. Either way, it's great to do some shell things to speed up coding, and Rust things to speed up the program safely.