feat: raise compiler error if musl is used (#8450)

This commit is contained in:
Giona Imperatori 2025-05-19 13:10:34 +02:00 committed by GitHub
parent cfde6f5c78
commit 14483a6e32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,6 +201,9 @@ each instance will have their own instance of associated globals singletons.
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::needless_doctest_main)] // We document how to write a main function
#[cfg(target_env = "musl")]
compile_error!("Compiling with MUSL is not supported by this crate.");
extern crate alloc;
#[cfg(not(feature = "compat-1-2"))]