From 7512b0796b494dbafab7655c0cbbe98717d9f37e Mon Sep 17 00:00:00 2001 From: RunDevelopment Date: Mon, 9 Dec 2024 00:16:44 +0100 Subject: [PATCH] Document `msrv` feature --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index aa0920e9477..64900e9cf5d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,16 @@ //! This feature currently enables the `std` feature, meaning that it is not //! compatible with `no_std` environments. //! +//! ### `msrv` (default) +//! +//! Enables Rust language features that requires a higher MSRV. Enabling this +//! feature on older compilers will NOT result in a compilation error, the newer +//! language features will simply not be used. +//! +//! Right now, this feature only enables the use of +//! `diagnostic::on_unimplemented` (Rust 1.78 or later) to provide better error +//! messages. +//! //! ### `std` (default) //! //! Enabling this feature will make the crate depend on the Rust standard library.