We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
no_std
1 parent fbc57a3 commit 8f853b0Copy full SHA for 8f853b0
1 file changed
src/lib.rs
@@ -212,6 +212,16 @@
212
//! # fn main() {}
213
//! ```
214
#![deny(clippy::unimplemented, clippy::unwrap_used, clippy::ok_expect)]
215
+#![cfg_attr(not(feature = "std"), no_std)]
216
+
217
+#[macro_use]
218
+extern crate alloc;
219
220
+#[cfg(all(not(feature = "std"), not(feature = "hashbrown")))]
221
+compile_error!("\"hashbrown\" feature should be enabled in \"no_std\" environment.");
222
223
+#[cfg(all(not(feature = "std"), feature = "visualizer"))]
224
+compile_error!("Cannot enable \"visualizer\" feature in \"no_std\" environment.");
225
226
mod result;
227
pub use result::*;
0 commit comments