Skip to content

Commit

Permalink
Automate MSRV change in the crate doc
Browse files Browse the repository at this point in the history
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'`.
  • Loading branch information
Philippe-Cholet committed Jul 4, 2024
1 parent 663533e commit 24cbf39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
//!
//! ## Rust Version
//!
//! This version of itertools requires Rust 1.63.0 or later.
//! This version of itertools requires Rust
#![doc = env!("CARGO_PKG_RUST_VERSION")]
//! or later.

#[cfg(not(feature = "use_std"))]
extern crate core as std;
Expand Down

0 comments on commit 24cbf39

Please sign in to comment.