Add support for LazyLock

This commit is contained in:
2025-01-17 22:31:40 +01:00
parent 40f835afd2
commit 25ae542ade
6 changed files with 152 additions and 13 deletions

10
build.rs Normal file
View File

@@ -0,0 +1,10 @@
use autocfg::AutoCfg;
fn main() {
// To avoid bumping MSRV unnecessarily, we can sniff certain features. Reevaluate this on major
// releases.
let ac = AutoCfg::new().unwrap();
ac.emit_has_path("std::sync::LazyLock");
autocfg::rerun_path("build.rs");
}