Skip to content

Commit 24cbf39

Browse files
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 663533e commit 24cbf39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
//!
5050
//! ## Rust Version
5151
//!
52-
//! This version of itertools requires Rust 1.63.0 or later.
52+
//! This version of itertools requires Rust
53+
#![doc = env!("CARGO_PKG_RUST_VERSION")]
54+
//! or later.
5355
5456
#[cfg(not(feature = "use_std"))]
5557
extern crate core as std;

0 commit comments

Comments
 (0)