Require either std or no_std to be specified
This commit is contained in:
parent
14d0ceb81b
commit
c4d107563a
2 changed files with 6 additions and 4 deletions
|
|
@ -91,9 +91,11 @@
|
|||
// Ensure numbers are readable
|
||||
#![warn(clippy::unreadable_literal)]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(not(any(feature = "std", feature = "no_std")))]
|
||||
compile_error!("Either the `std` or `no_std` feature must be enabled");
|
||||
|
||||
pub use self::attrs::*;
|
||||
mod attrs;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue