All Versions
14
Latest Version
Avg Release Cycle
84 days
Latest Release
-

Changelog History
Page 2

  • v0.1.4

    December 11, 2015

    ๐Ÿ†• New:

    • โž• Added --features option. This allows you to specify the features that should be enabled.

    ๐Ÿ›  Fixed:

    • ๐Ÿ— cargo-script should now build with Rust 1.4 stable or higher. Rust 1.3 is incompatible due to the breaking change to the behaviour of str::lines.
  • v0.1.3

    October 21, 2015

    ๐Ÿ†• New:

    • run-cargo-script trampoline program for use with hashbangs.

    ๐Ÿ”„ Changed:

    • ๐Ÿ On UNIX, cargo-script will now try to place its cache in $CARGO_HOME, falling back to $HOME. Behaviour on Windows is unchanged.

    • โšก๏ธ Various internal fixes and updates.

  • v0.1.2

    August 20, 2015

    v0.1.2

    ๐Ÿ†• New:

    • โž• Added -e and -l as shorthands for --expr and --loop.
    • โž• Added --dep-extern/-D. This introduces a dependency and causes an appropriate #[macro_use] extern crate $name; item to be added. This only applies to expression and loop scripts.
    • โž• Added --extern/-x. This adds a explicit #[macro_use] extern crate $name item. This only applies to expression and loop scripts.
  • v0.1.1

    ๐Ÿ†• New:

    • ๐Ÿ Not-Windows support, contributed by @Ryman.

    • โž• Added support for two new embedded manifest formats: short comment manifests and code block manifests. Compared to prefix manifests, these have the advantage of allowing scripts to be valid Rust code, as well as having a measure of self-documentation.

    • You can now pass arguments to scripts. If you want to pass switches, you'll need to add -- after the script name so cargo script knows to stop looking for switches.

    • โž• Added the --clear-cache flag. This deletes all cached scripts. It can be provided by itself or as part of a regular invocation.

    • โž• Added the --pkg-path PATH flag. This lets you specify where to create the Cargo package.

    • โž• Added the --gen-pkg-only flag. This causes cargo script to output a Cargo package, but not attempt to build or run it.

    ๐Ÿ”„ Changed:

    • Expressions and loop closures are now wrapped in blocks, rather than an expression. This means you can have multiple statements, link to crates, use things, etc. without having to define a block yourself.

    • Expressions now have their output displayed using the {:?} format specifier. This allows more types to work without extra effort, but does make strings a bit ugly.

    • ๐Ÿ”„ Changed to a not-as-slow argument parser.

    โœ‚ Removed:

    • โœ‚ Removed content hashing for scripts. No longer will even minor changes cause Cargo to go back and re-fetch and re-compile all dependencies! Scripts are cached based on a hash of their absolute path, instead. Expressions and loop closures are still cached based on a content hash.