What's new with Rust? - OnMSFT.com

2022-05-29 11:35:22 By : Ms. Annie Jiang

The Rust Team just released version 1.59.0 and it comes packed with some very useful and interesting goodies. For those that don't know, Rust is a lightning-fast and memory-efficient programming language that can power performance-critical services, run on embedded devices, and seamlessly interface with other languages. If you want to learn more about Rust and how it compares to classic languages like C++, check out this article from yours truly. Now let's talk about what's new!

Programming languages and frameworks move forward at a relentless pace, sometimes you will find yourself in situations where a specific implementation used by your project will not longer be allowed or work. Unfortunately sometimes you happen to find out very late in the game when your project simply stops building. Version 1.59.0 brings a great feature that now shows warnings when a dependency will stop working in subsequent releases.

This allows you to be prepared and avoid headaches down the line. Now instead of scrambling to find an alternative, you can plan your migration ahead of time and avoid all of the stress that come with last minute changes.

In Rust, the standard libraries typically ship debug info and symbols which makes them larger than they need to be. Using the new "strip" option allows you to remove all of this extra baggage and generate much smaller binaries for distribution.

Saved the best for last! This release now supports inline assembly. Many applications that require very low-level control over their execution or access to specific machine instructions can benefit from this. Check out this example below from the Rust release announcement.

When compiling for x86-64 targets, for instance you can write:

As of now support there is support for the following architectures:

As you can see Rust is moving along nicely, the language is very robust and should not be overlooked when looking to build high performant portable applications with the ability to run pretty much anywhere. To read about all of the updates head over to the  Rust, Cargo, and Clippy GitHub repositories.

What are your thoughts on Rust? Have you used it? Are you excited about these new features in version 1.59.0? Sound off in the comments below!

Peter: I think it'll be 2027 before we see this, which will put it in the territory of TES VI

Commented on: Witcher 4's research phase has just concluded, suggesting development phase is only just beginning

Preston Lathrop: Not much for me here either, @disqus_NXHXECKU5T:disqus , but I am not sure whether you and I know what everyone else wants and needs either. What MS seems to want and perhaps feels it needs is *platform dominance." Teams as the dominant front end to…

Commented on: Recapping Microsoft Build 2022: Best Sessions to Catch Up On

Marcus14142135: I thought my 'puter was infected...

Commented on: This Windows 10 Search Bar Feature Freaked People Out

yw71: No need to hire. They are perfect in any way.

Commented on: Microsoft Slowing Down Hiring Across Windows, Teams, Office

Peter: Is the new plane the SR-72, as it looks like it from the concept images?

Commented on: Top Gun Expansion Now Available in Microsoft Flight Simulator