NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #4091 most downloaded on crates.io
Helpers for interacting with crates.io
Latest stable
0.41.2
Last release 1 months ago
01 Oct 2026
Ships on a steady schedule
a new release about every 6 weeks
Rarely documented
notes for 5 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
68 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
The url crate is deprecated in favor of http://github.com/servo/rust-url, which can be installed with Cargo.
~1900 changes, numerous bugfixes
Highlights
std have been reviewed and updated for
consistency with the in-development Rust coding
guidelines. The standard library documentation tracks
stabilization progress.Language
Index and IndexMut
traits.if let construct takes a branch only if the let pattern
matches, currently behind the 'if_let' feature gate.[0..4]) has been introduced behind
the 'slicing_syntax' feature gate, and can be overloaded with
the Slice or SliceMut traits... instead of prefix (.e.g. [a, b, c..]), for
consistency with other uses of .. and to future-proof
potential additional uses of the syntax.0..3 to 0...4 to be consistent with the exclusive range
syntax for slicing.[a.., b, c]) has been put behind the 'advanced_slice_patterns' feature
gate and may be removed in the future.value.0 syntax, currently behind the tuple_indexing
feature gate.#[crate_id] attribute is no longer supported; versioning
is handled by the package manager.extern crate foo as bar
instead of extern crate bar = foo.use foo as bar instead
of use bar = foo.let and match bindings and argument names in macros are now
hygienic.move has been added as a keyword, for indicating closures
that capture by value.Share trait is now called Sync to free up the term
'shared' to refer to 'shared reference' (the default reference
type.Sized trait has been
introduced, which qualifying types implement by default, and
which type parameters expect by default. To specify that a type
parameter does not need to be sized, write <Sized? T>. Most
types are Sized, notable exceptions being unsized arrays
([T]) and trait types.!, as in || -> ! or proc() -> !.Gc<T> which was once
denoted by the @ sigil, has finally been removed. GC will be
revisited in the future.Libraries
std::time::Duration type has been added for use in I/O
methods that rely on timers, as well as in the 'time' crate's
Timespec arithmetic.collections::btree has been rewritten to have a more
idiomatic and efficient design.Tooling
--crate-name flag can specify the name of the crate
being compiled, like #[crate_name].-C metadata specifies additional metadata to hash into
symbol names, and -C extra-filename specifies additional
information to put into the output filename, for use by the
package manager for versioning.-C codegen-units flag.Misc
All breaking changes to the language or libraries now have their commit message annotated with [breaking-change] to allow for easy discovery of breaki…
~1700 changes, numerous bugfixes
Language
uint
instead of any integral type.b.<'a>|A, B|: 'b + K -> Tpriv keyword has been removed from the language.use foo, bar, baz; syntax has been removed from the language.int, and floating point
literals no longer default to f64. Literals must be suffixed with an
appropriate type if inference cannot determine the type of the
literal.Libraries
rev() on
their forward-iteration counterparts.--cfg ndebug is passed to the compiler.Tooling
[breaking-change] to allow for easy
discovery of breaking changes.mod foo;.pub use has been greatly improved.rustpkg has been deprecated and removed from the main repository. Its replacement, cargo, is under development.
~1500 changes, numerous bugfixes
Language
@-pointers have been removed from the language.~[T]) have been removed from the
language.~str) have been removed from the
language.@str has been removed from the language.@[T] has been removed from the language.@self has been removed from the language.@Trait has been removed from the language.~ allocations which contain @ boxes inside the type for
reference counting have been removed.macro_rules! macros as
well as syntax extensions such as format!.#[deriving] with raw pointerslog_syntax! are now behind feature gates.#[simd] attribute is now behind a feature gate.extern crate statements, and
unnecessary visibility (priv) is no longer allowed on use statements.do keyword has been removed, it is now a reserved keyword.extern mod is now extern crateFreeze trait has been removed.Share trait has been added for types that can be shared among
threads.{} now.static mut locations has been tweaked.* and . operators are now overloadable through the Deref and
DerefMut traits.~Trait and proc no longer have Send bounds by default._ type marker.Unsafe type was introduced for interior mutability. It is now
considered undefined to transmute from &T to &mut T without using the
Unsafe type.#[foo]; to #![foo].Pod was renamed to Copy.Libraries
libextra library has been removed. It has now been decomposed into
component libraries with smaller and more focused nuggets of
functionality. The full list of libraries can be found on the
documentation index page.std::condition has been removed. All I/O errors are now propagated
through the Result type. In order to assist with error handling, a
try! macro for unwrapping errors with an early return and a lint for
unused results has been added. See #12039 for more information.vec module has been renamed to slice.Vec<T>, has been added in preparation for DST.
This will become the only growable vector in the future.std::io now has more public re-exports. Types such as BufferedReader
are now found at std::io::BufferedReader instead of
std::io::buffered::BufferedReader.print and println are no longer in the prelude, the print! and
println! macros are intended to be used instead.Rc now has a Weak pointer for breaking cycles, and it no longer
attempts to statically prevent cycles.slice::last()) now return Option<T> instead of T + failing.fmt::Default has been renamed to fmt::Show, and it now has a new
deriving mode: #[deriving(Show)].ToStr is now implemented for all types implementing Show.&self instead of &Tinvert() method on iterators has been renamed to rev()std::num has seen a reduction in the genericity of its traits,
consolidating functionality into a few core traits.RUST_BACKTRACE is present.eof() has been removed from the Reader trait. Specific types may
still implement the function.assert_approx_eq! has been removede and E formatting specifiers for floats have been added to
print them in exponential notation.Times trait has been removedstd::kinds::marker nowhash has been rewritten, IterBytes has been removed, and
#[deriving(Hash)] is now possible.SharedChan has been removed, Sender is now cloneable.Chan and Port were renamed to Sender and Receiver.Chan::new is now channel().select! macro is now provided for selecting over Receivers.hashmap and trie have been moved to libcollectionsrun has been rolled into io::processassert_eq! now uses {} instead of {:?}rand has moved to librand.to_{lower,upper}case has been implemented for char.liblog.HashMap has been rewritten for higher performance and less
memory usage.libnative. If libgreen is desired,
it can be booted manually. The runtime guide has more information and
examples.libgreen has been optimized with stack caching
and various trimming of code.libgreen now have an unmapped guard page.extra::sync module has been updated to modern rust (and moved
to the sync library), tweaking and improving various interfaces while
dropping redundant functionality.Barrier type has been added to the sync library.base64 module has seen some improvement. It treats
newlines better, has non-string error values, and has seen general
cleanup.fourcc! macro was introducedhexfloat! macro was implemented for specifying floats via a
hexadecimal literal.Tooling
rustpkg has been deprecated and removed from the main repository. Its
replacement, cargo, is under development.--emit flag.--crate-type flag.-C flag.rustdoc improvements:
~1800 changes, numerous bugfixes
~1800 changes, numerous bugfixes
Language
float type has been removed. Use f32 or f64 instead.#[feature(foo)] attribute.#[feature(managed_boxes)]) in preparation for future removal. Use the
standard library's Gc or Rc types instead.@mut has been removed. Use std::cell::{Cell, RefCell} instead.continue instead of
loop.r"foo" syntax or with matched
hash delimiters, as in r###"foo"###.~fn is now written proc (args) -> retval { ... } and may only be
called once.&fn type is now written |args| -> ret to match the literal form.@fns have been removed.do only works with procs in order to make it obvious what the cost
of do is.#[link(...)] attribute has been replaced with
#[crate_id = "name#vers"].impls must be terminated with empty braces and may not be
terminated with a semicolon.self lifetime
no longer has any special meaning.fmt! string formatting macro has been removed.printf! and printfln! (old-style formatting) removed in favor of
print! and println!.mut works in patterns now, as in let (mut x, y) = (1, 2);.extern mod foo (name = "bar") syntax has been removed. Use
extern mod foo = "bar" instead.alignof, offsetof, sizeof.asm! macro is feature-gated (#[feature(asm)]).as.repr attribute can be used to override
the discriminant size, as in #[repr(int)] for integer-sized, and
#[repr(C)] to match C enums.0o7777.concat! syntax extension performs compile-time string concatenation.#[fixed_stack_segment] and #[rust_stack] attributes have been
removed as Rust no longer uses segmented stacks.#[feature(non_ascii_idents)])...,
not *; ignoring remaining fields of a struct is also done with ..,
not _; ignoring a slice of a vector is done with .., not .._.rustc supports the "win64" calling convention via extern "win64".rustc supports the "system" calling convention, which defaults to the
preferred convention for the target platform, "stdcall" on 32-bit Windows,
"C" elsewhere.type_overflow lint (default: warn) checks literals for overflow.unsafe_block lint (default: allow) checks for usage of unsafe.attribute_usage lint (default: warn) warns about unknown
attributes.unknown_features lint (default: warn) warns about unknown
feature gates.dead_code lint (default: warn) checks for dead code.#[link_args] is behind the link_args feature gate.#[link(name = "foo")]#[link(name = "foo", kind = "static")]).#[link(name = "foo", kind = "framework")]).#[thread_local] attribute creates thread-local (not task-local)
variables. Currently behind the thread_local feature gate.return keyword may be used in closures.Pod kind.cfg attribute can now be used on struct fields and enum variants.Libraries
option and result API's have been overhauled to make them
simpler, more consistent, and more composable.std::io module has been replaced with one that is
more comprehensive and that properly interfaces with the underlying
scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
implemented.io::util contains a number of useful implementations of
Reader and Writer, including NullReader, NullWriter,
ZeroReader, TeeReader.extra::rc moved into std.Gc type in the gc module will replace @ (it is currently
just a wrapper around it).Either type has been removed.fmt::Default can be implemented for any type to provide default
formatting to the format! macro, as in format!("{}", myfoo).rand API continues to be tweaked.rust_begin_unwind function, useful for inserting breakpoints
on failure in gdb, is now named rust_fail.each_key and each_value methods on HashMap have been
replaced by the keys and values iterators.sys module to the mem module.path module was written and API changed.str::from_utf8 has been changed to cast instead of allocate.starts_with and ends_with methods added to vectors via the
ImmutableEqVector trait, which is in the prelude.get_opt method, which returns None
if the index is out of bounds.Any type can be used for dynamic typing.~Any can be passed to the fail! macro and retrieved via
task::try._iter
suffix now.cell::Cell and cell::RefCell can be used to introduce mutability
roots (mutable fields, etc.). Use instead of e.g. @mut.util::ignore renamed to prelude::drop.sort and sort_by methods via the MutableVector
trait.vec::raw has seen a lot of cleanup and API changes.comm module has been rewritten to be much faster, have a
simpler, more consistent API, and to work for both native and green
threading.flatpipes module had bitrotted and was removed.c_vec has been modernized.sort module has been removed. Use the sort method on
mutable slices.Tooling
rust and rusti commands have been removed, due to lack of
maintenance.rustdoc was completely rewritten.rustdoc can test code examples in documentation.rustpkg can test packages with the argument, 'test'.rustpkg supports arbitrary dependencies, including C libraries.rustc's support for generating debug info is improved again.rustc has better error reporting for unbalanced delimiters.rustc's JIT support was removed due to bitrot.rustc adds a --dep-info flag for communicating dependencies to
build tools.One column per quarter.