diff --git a/src/lib.rs b/src/lib.rs index fe1dc40..dbaadb1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,8 @@ //! lithium = "1" //! ``` //! +//! If you break either of these two requirements, cargo will scream at you. +//! //! //! # Platform support //! @@ -161,6 +163,9 @@ reason = "XXX: remove when strict provenance is stabilized" )] +#[cfg(panic = "abort")] +compile_error!("Using Lithium with panic = \"abort\" is unsupported"); + extern crate alloc; mod api;