Skip to content

Commit 971ec97

Browse files
Philippe-Choletphimuemue
authored andcommitted
Automate MSRV change in the crate doc
I noted some months ago that the environment variable CARGO_PKG_RUST_VERSION was publicized in 1.63.0 and that if we do not go back before 1.63 then we can automate the MSRV there. Remain "ci.yml" but I don't see a way to automate it, even with `cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version'`.
1 parent 05f0db3 commit 971ec97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
//!
5151
//! ## Rust Version
5252
//!
53-
//! This version of itertools requires Rust 1.63.0 or later.
53+
//! This version of itertools requires Rust
54+
#![doc = env!("CARGO_PKG_RUST_VERSION")]
55+
//! or later.
5456
5557
#[cfg(not(feature = "use_std"))]
5658
extern crate core as std;

0 commit comments

Comments
 (0)