Skip to content

Releases: fornwall/rust-script

v0.15.0

10 Jul 09:22
278d383

Choose a tag to compare

  • Support three slashes comments (///). See #25.

v0.14.0

26 Apr 10:25
0c7544a

Choose a tag to compare

  • Convert uppercase characters to lowercase in crate name to avoid warning (#20).
  • Add --toolchain-version argument (#21).

v0.13.0

26 Mar 21:10
88c57c3

Choose a tag to compare

  • Allow indentation before fn main() (#18).

v0.12.0

24 Jan 21:20
1dc66fb

Choose a tag to compare

  • Support pub fn main() (#14).

v0.11.0

26 Dec 09:10
1688085

Choose a tag to compare

  • Add support for async fn main (#13).

v0.10.0

16 Dec 04:31
225560c

Choose a tag to compare

  • Use a shared cargo target directory.
    • This will improve speed and reduce disk consumption dramatically when rerunning scripts after editing them, as built dependencies are now cached instead of downloaded and built again.

v0.9.0

04 Nov 12:01

Choose a tag to compare

  • 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.
  • Allow ? to be used in script file without fn main().
    • This is done by letting the return type of the generated main() function be Result<(), Box<dyn std::error::Error+Sync+Send>>.

v0.8.0

04 Nov 00:13

Choose a tag to compare

  • Bug fixes in argument handling.
  • Do not require fn main() in script files - surround the script file with fn main() { .. } if no line starts with fn 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.

v0.7.0

28 Oct 13:50
da1b807

Choose a tag to compare

  • Change from .crs to .ers file extension.

v0.6.0

28 Oct 00:55

Choose a tag to compare

  • Minor fixes and updates.