Skip to content

Releases: fornwall/rust-script

0.24.0

05 Apr 21:17
292670e
Compare
Choose a tag to compare
  • #94: Fix Windows issue where binary was always rebuilt - thanks @epage!
  • #91 & #93: Minor dependency updates - thanks @tottoto!

0.23.0

25 Mar 22:09
9943585
Compare
Choose a tag to compare
  • Instead of using cargo run to run the generated package, build an executable with cargo build (if necessary), then execute the resulting binary directly. Brings two advantages:
    • After the first run where the binary is built, subsequent runs will be a lot faster as cargo is avoided (#39).
    • By not standing inside the current working directory when building, we avoid being affected by rust toolchain files (#31).
    • By avoiding cargo in subsequent runs, one can use a shebang such as #! /usr/bin/env -S rust-script -c to always get cargo output - but only after changing the file.
  • Rename --gen-pkg-only (which only generates a package from the script without building it) to -p/--package, and make it print the path to the generated package.
    • This allows flexibility and additional tools, such as cargo tree --manifest-path $(rust-script -p my-script.rs)/Cargo.toml (#60).
  • Change the short option for --cargo-output from -o to -c.
  • Rename -c/--toolchain-version to -t/--toolchain.
  • Update dependencies (most notably clap was updated from 3 to 4).
  • Drop support for templates: Usage seems low, and they complicate things. Reach out if you have a need for this.
  • As a result of the dependency updates, the MSRV (minimum supported rust version) was bumped to 1.64. Reach out if that is a problem!

v0.22.0

11 Dec 00:58
5bd0da7
Compare
Choose a tag to compare
  • Use rust 2021 edition by default (#59)

v0.21.0

24 Apr 22:17
08a39e6
Compare
Choose a tag to compare
  • Make file writes concurrent-execution friendly (#49).
  • Enable strip binary on release build (#48).
  • Updated dependencies.

v0.20.0

12 Feb 23:07
8b6f3d1
Compare
Choose a tag to compare
  • Surpress warnings when specifying --loop and --loop --count (#45)

v0.19.0

16 Dec 23:25
f3a7952
Compare
Choose a tag to compare
  • Fix compatibility with the latest clap 3 release candidate, fixing build issues (#42).
  • Remove the dep_extern argument (it was a leftover that did not do anything).

v0.18.0

09 Nov 22:44
44dfcdd
Compare
Choose a tag to compare
  • Do not steal flags such as --help from scripts (#40).
  • Allow main function with arguments, such as when using paw (#37).

v0.17.0

21 Aug 19:53
32ac67f
Compare
Choose a tag to compare
  • Update clap from v3.0.0-beta.2 to v3.0.0-beta.4 to fix build errors (#33).

v0.16.0

23 Jul 07:16
fce34fb
Compare
Choose a tag to compare
  • Stop exporting CARGO_TARGET_DIR to script process (#27).

v0.15.0

10 Jul 09:22
278d383
Compare
Choose a tag to compare
  • Support three slashes comments (///). See #25.