From f3649cdcb34a7ec020565770632ede74e454bf0e Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 7 Jan 2025 01:31:13 +0900 Subject: [PATCH] Update changelog and comments --- CHANGELOG.md | 6 ++++++ build.rs | 2 +- src/lib.rs | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 304b68c..e922d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,18 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org). +Releases may yanked if there is a security bug, a soundness bug, or a regression. + ## [Unreleased] +- Improve Windows host support by workaround [rustc bug fixed in Rust 1.84](https://github.com/rust-lang/rust/pull/125205). + +- Respect [`RUSTC_BOOTSTRAP=-1` recently added in nightly](https://github.com/rust-lang/rust/pull/132993) in rustc version detection. + ## [0.4.10] - 2024-04-21 - Respect `RUSTC_WRAPPER` in rustc version detection. diff --git a/build.rs b/build.rs index 9d3dd3e..719f1fb 100644 --- a/build.rs +++ b/build.rs @@ -108,7 +108,7 @@ impl Version { // https://github.com/taiki-e/const_fn/issues/27 // https://github.com/rust-lang/rust/pull/81468 fn assume_incomplete_release() -> bool { - // Recognized formats: -Z( )?assume-incomplete-release + // Recognized formats: -Z *assume-incomplete-release // https://github.com/rust-lang/cargo/issues/10111 if let Some(rustflags) = env::var_os("CARGO_ENCODED_RUSTFLAGS") { diff --git a/src/lib.rs b/src/lib.rs index 9520b51..6aef84e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -252,6 +252,7 @@ struct Version { } // Use \ on Windows host to work around https://github.com/rust-lang/rust/issues/75075 / https://github.com/rust-lang/cargo/issues/13919. +// (Fixed in Rust 1.84: https://github.com/rust-lang/rust/pull/125205) #[cfg(const_fn_has_build_script)] #[cfg(not(host_os = "windows"))] const VERSION: Version = include!(concat!(env!("OUT_DIR"), "/version"));