Releases: fornwall/rust-script
Releases · fornwall/rust-script
v0.14.0
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
- Fix wrong executable path when the script name matches the name of a dependency (#8).
- Note that
rust-script --clear-cache
needs to be called once after upgrading to clean out incorrectly cached paths.
- Note that
- Allow
?
to be used in script file withoutfn main()
.- This is done by letting the return type of the generated
main()
function beResult<(), Box<dyn std::error::Error+Sync+Send>>
.
- This is done by letting the return type of the generated
v0.8.0
- Bug fixes in argument handling.
- Do not require
fn main()
in script files - surround the script file withfn main() { .. }
if no line starts withfn main()
. - Add
-o
/--cargo-output
option to see output from Cargo also in successful builds. - Define the
RUST_SCRIPT_*
environment variables also at compilation time - not only at runtime as before.- This enables using
include!
,include_str!
and similar from scripts - see #6.
- This enables using