Series: The Rust Annals

Vol. I Issue 25 nlopes.dev

Announcing Rust 1.24

Stabilizing const evaluation for core memory/atomic types and defaulting incremental compilation in Cargo significantly lowered the barrier to entry and improved core systems programming workflows.

Library stabilizations

If you’re a fan of str::find, which is used to find a given char inside of a &str, you’ll be happy to see this pull request: it’s now 10x faster! This is thanks to memchr. [u8]::contains uses it too, though it doesn’t get such an extreme speedup.

Additionally, a few new APIs were stabilized this release:

Finally, these functions may now be used inside a constant expression, for example, to initialize a static:

  • Cell, RefCell, and UnsafeCell’s new functions
  • The new functions of the various Atomic integer types
  • {integer}::min_value and max_value
  • mem’s size_of and align_of
  • ptr::null and null_mut

See the detailed release notes for more.

Cargo features

The big feature of this release was turning on incremental compilation by default, as mentioned above.

See the detailed release notes for more.

2016 contributors to this release.

Reproduced from the Rust blog under its publication licence. Typeset in Literata.