From 6cec222d2a44b4b7395e93e78dc042bbef4c7afa Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Mon, 6 May 2024 15:35:31 -0700 Subject: [PATCH] ditch the build.rs --- build.rs | 4 ---- src/lib.rs | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 build.rs diff --git a/build.rs b/build.rs deleted file mode 100644 index 5f0a36d..0000000 --- a/build.rs +++ /dev/null @@ -1,4 +0,0 @@ -// I hate that this is needed... -fn main() { - println!("cargo::rustc-check-cfg=cfg(loom, msrv)"); -} diff --git a/src/lib.rs b/src/lib.rs index 4f0cae3..0bbd28e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,6 +64,8 @@ #![cfg_attr(not(feature = "std"), no_std)] #![deny(missing_docs)] #![allow(unknown_lints)] +// for `cfg(loom)` and such -- I don't want to add a build.rs for this. +#![allow(unexpected_cfgs)] #[doc(hidden)] pub extern crate alloc;