NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #108 most downloaded on crates.io
Conditional compilation according to rustc compiler version
Latest stable
1.0.23
Last release 4 months ago
07 Jul 2026
Release timing varies
gaps range from 2 weeks to 11 months
Most releases are documented
notes for 22 of 26 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
26 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Set RUSTVERSION=1 during rustc --version command
Turn off clippy incompatible_msrv in rustversion-conditional code
Support -Zfmt-debug=none
-Zfmt-debug=none (#61)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Documentation improvements
Documentation improvements
Support MIRAI
Support Windows builds that have OUT_DIR prefixed with \\?\
\\?\ (#51)Resolve unexpected_cfgs warning
Recognize $RUSTC_WRAPPER environment variable
Documentation improvements
Add no-alloc category to crates.io metadata
no-alloc category to crates.io metadataNothing published for this version
Fix bug in build.rs causing build-script reruns (#37, thanks @monax3)
Nothing published for this version
Add categories to crates.io metadata
Support situations in which RUSTC is set to clippy-driver by reinvoking with --rustc flag
clippy-driver by reinvoking with --rustc flag (#13)Adjust build script to avoid misusing .rs file extension in $OUT_DIR
Add rustversion::cfg! macro which evaluates to true or false as an expression
Add rustversion::cfg! macro which evaluates to true or false as an expression (#30)
if rustversion::cfg!(nightly) {
...
} else {
...
}
Fix parsing nightly build versions that have a parenthesized component without a date inside, such as "rustc 1.52.1-nightly (gentoo)"
Implement parsing using no dependencies
Nothing published for this version
Move rustc --version invocation from macro expansion time to rustversion's build time so it happens just once
rustc --version invocation from macro expansion time to rustversion's build time so it happens just onceTreat nightly builds without a hash/date (rustc 1.42.0-nightly) the same as dev builds
rustc 1.42.0-nightly) the same as dev buildsIdentical to 0.1.4, but I consider this crate to be stable. :)
#[stable]. It is
no longer possible to use unstable features with a stable build of
the compiler.0b1234 is
now lexed as 0b1234 instead of two tokens, 0b1 and 234.PhantomFn and MarkerTrait lang items, which have been
removed.extern crate "foo" as bar syntax has been replaced with extern crate foo as bar, and Cargo now automatically translates "-" in package names
to underscore for the crate name.Send no longer implies 'static.MyType::default().SliceExt.Self: Sized in their where clause are considered
object-safe, allowing many extension traits like
IteratorExt to be merged into the traits they extended.where clause.Send and Sync are now library-defined.Any trait is effectively limited to concrete
types. This helps retain the potentially-important "parametricity"
property: generic code cannot behave differently for different type
arguments except in minor ways.unsafe_destructor feature is now deprecated in favor of the
new dropck. This change is a major reduction in unsafe
code.thread_local module has been renamed to std::thread.IteratorExt have been moved to the Iterator
trait itself.AsMut, AsRef, From, and Into have been
centralized in the std::convert module.FromError trait was removed in favor of From.std::thread::sleep_ms.splitn function now takes an n parameter that represents the
number of items yielded by the returned iterator instead of the
number of 'splits'.CLOEXEC by default.PartialOrd now order enums according
to their explicitly-assigned discriminants.Patterns,
implemented presently by &char, &str, FnMut(char) -> bool and
some others.String::from_str has been deprecated in favor of the From impl,
String::from.io::Error implements Sync.words method on &str has been replaced with
split_whitespace, to avoid answering the tricky question, 'what is
a word?'#[stable]. This
was the major library focus for this cycle..,
adjusting the tradeoffs in favor of the most common usage.std were also stabilized
during this cycle; about 75% of the non-deprecated API surface
is now stable.Fn traits are now related via inheritance
and provide ergonomic blanket implementations.Index and IndexMut traits were changed to
take the index by value, enabling code like
hash_map["string"] to work.Copy now inherits from Clone, meaning that all
Copy data is known to be Clone as well.--explain flag to rustc.Nothing published for this version
Rename project from select-rustc to rustversion to accommodate https://github.com/rust-lang/rust/pull/62133
select-rustc to rustversion to accommodate https://github.com/rust-lang/rust/pull/62133One column per quarter.