Radar · Rust · Archive · Week 4 · Jan 19 – 25, 2026
Rust 1.93.0 Release
Worth knowingtooling
- What changed
- The Rust team announced the 1.93.0 release.
- Production impact
- The source does not say.
- Try it
- Run
rustc --versionto confirm you are on 1.93.0. - Source
- blog.rust-lang.org/2026/01/22/Rust-1.93.0/
Understand it, then run it
Rust 1.93.0 adds a new way to write inline assembly. Before this release, if you wanted part of an asm! block to run only on a specific CPU feature, you had to duplicate the whole block and guard each copy with a cfg. Now you can put #[cfg(...)] on individual statements inside the block. This makes assembly code shorter and easier to read.
Run it now
// This program demonstrates the new ability to apply cfg attributes to individual
// statements inside an asm! block. The feature is available in Rust 1.93.0, but
// the current sandbox uses Rust 1.98.1 (edition 2024), so we import the asm
// macro explicitly. The program prints a message that shows whether the
// target supports the "sse2" feature; the asm block will only emit the
// second "nop" if that feature is enabled.
use std::arch::asm;
fn main() {
// Detect if the target CPU supports SSE2. This is a compile‑time
// configuration flag that the compiler sets automatically.
#[cfg(target_feature = "sse2")]
let sse2_supported = true;
#[cfg(not(target_feature = "sse2"))]
let sse2_supported = false;
// The asm! block contains two "nop" instructions. The second one is
// guarded by #[cfg(target_feature = "sse2")], so it will only be
// assembled when the target has SSE2 support. The first "nop" is
// unconditional.
unsafe {
asm!(
"nop", // always emitted
#[cfg(target_feature = "sse2")]
"nop", // emitted only if SSE2 is available
);
}
println!(
"SSE2 support detected at compile time: {}",
sse2_supported
);
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
SSE2 support detected at compile time: true
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed