Radar · Rust · Archive · Week 45 · Nov 3 – 9, 2025
Rust 1.91.0 Release
Worth knowingtooling
- What changed
- The Rust team released version 1.91.0, adding new language features, compiler improvements, and standard‑library updates.
- Production impact
- The source does not say.
- Try it
- Run
rustc --versionto verify you are on 1.91.0. - Source
- blog.rust-lang.org/2025/10/30/Rust-1.91.0/
Understand it, then run it
Run it now
// This program demonstrates the newly stabilized `Path::file_prefix` API,
// which is available in Rust 1.91.0 and later. It prints the file prefix
// component of a path, if one exists.
use std::path::Path;
fn main() {
// A path that has a file prefix (e.g., "foo/bar.txt" has "foo" as the prefix).
let path = Path::new("foo/bar.txt");
// `file_prefix` returns an `Option<&Path>` containing the prefix.
match path.file_prefix() {
Some(prefix) => println!("File prefix: {}", prefix.display()),
None => println!("No file prefix found."),
}
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
File prefix: bar
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