I wanted to add a post-deploy step to my NixOS install that finds all my scriptr scripts and pre-compiles them, skipping the (potentially) long delay on first use.
However, I noticed there's no clear way to just build a scriptr script without also executing it.
It would be really practical to add a general flag for not executing the script, which can be combined with any other flag. This would make the -C/--clean-only flag superfluous, as --clean --no-run can be used instead. (Never mind, --clean-only also skips deps/build)
I realize I can probably mostly work around this by using cargo -Zscript build ... to warm the build cache and mostly remove the first run delay of scriptr, but a -n flag feels like a much cleaner option. Plus, it would properly cache the script, making even the first run blazing fast ⚡
I wanted to add a post-deploy step to my NixOS install that finds all my
scriptrscripts and pre-compiles them, skipping the (potentially) long delay on first use.However, I noticed there's no clear way to just build a scriptr script without also executing it.
It would be really practical to add a general flag for not executing the script, which can be combined with any other flag.
This would make the(Never mind,-C/--clean-onlyflag superfluous, as--clean --no-runcan be used instead.--clean-onlyalso skips deps/build)I realize I can probably mostly work around this by using
cargo -Zscript build ...to warm the build cache and mostly remove the first run delay ofscriptr, but a-nflag feels like a much cleaner option. Plus, it would properly cache the script, making even the first run blazing fast ⚡