The latest version of the programming language Rust is now available. Rust 1.54 introduces a few new stable features. One new update is that attributes can invoke function-like macros. An example use case of is including documentation from other files into comments. “For example, if your project’s README represents a good documentation comment, you can use include_str! to directly incorporate the contents,” the Rust team explained in a post . According to the team, there were previously some workarounds that would allow for this functionality, but this makes it more ergonomic. Another new addition is the move to stable for several intrinsics for the wasm32 platform. Unlike the x86 and x86_64 intrinsics that are already stabilized, these don’t have a safety requirement where they can only be called if the appropriate target feature is enabled. This is because WebAssembly validates code safely before it is executed so instructions are guaranteed to either be decoded correctly or no
This website is about programming knowledge. You can call this blog best programming master.