RUST 1.77.0 BRINGS SIMPLIFIED DEVELOPMENT

The Rust team has unveiled version 1.77.0 of the language, aimed at enhancing software development and interaction capabilities.

Users can now access the update through the Rustup tool. For existing users, upgrading to version 1.77.0 can be done with a simple command: $ rustup update stable. New users can install Rust via Rustup, available on the official website along with comprehensive release notes.

Version 1.77.0 brings a host of improvements, including:

  • Support for C-style string literals, which simplify code writing for interfacing with foreign languages that require null-terminated strings. The compiler now checks for null bytes within the string during compilation.
  • Recursion in Async FN functions is now possible, overcoming previous compiler limitations that restricted asynchronous functions from calling themselves. This enhancement allows for more flexible asynchronous code with the use of indirect calls.
  • Stabilization of the offset_of! macros for accessing structure field offsets, streamlining low-level data manipulation and minimizing the potential for introducing undefined behavior into the code.
  • Inclusion of “Strip = Debuginfo” as the default option in CARGO assembly profiles, eliminating debug information from the standard library and reducing the size of the final executable file.

Moreover, version 1.77.0 introduces newly stabilized APIs for working with arrays, network addresses, floating-point number rounding, and enhancements in section handling and data access.

/Reports, release notes, official announcements.