Series: The Rust Annals

Vol. I Issue 33 nlopes.dev

Announcing Rust 1.32.0

Stabilization of the dbg! macro and const fn endian conversion primitives significantly improves standard library utility and developer workflow.

Library stabilizations

We talked above about the dbg! macro, which is a big library addition. Beyond that, 19 functions were made const fns, and all integral numeric primitives now provide conversion functions to and from byte-arrays with specified endianness. These six functions are named to_<endian>_bytes and from_<endian>_bytes, where <endian> is one of:

  • ne - native endianness
  • le - little endian
  • be - big endian

See the detailed release notes for more details.

Cargo features

24 contributors to this release.

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