We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
features_check
std::compile_error!
1 parent 2e15e3d commit 25dc750Copy full SHA for 25dc750
src/features_check/error.rs
src/features_check/mod.rs
src/lib.rs
@@ -363,6 +363,9 @@
363
#![no_std]
364
#![cfg_attr(docsrs, feature(doc_cfg))]
365
366
+#[cfg(not(any(feature = "std", feature = "alloc")))]
367
+compile_error!("serde_json requires that either `std` (default) or `alloc` feature is enabled");
368
+
369
extern crate alloc;
370
371
#[cfg(feature = "std")]
@@ -409,8 +412,6 @@ pub mod ser;
409
412
mod ser;
410
413
pub mod value;
411
414
-mod features_check;
-
415
mod io;
416
417
mod iter;
0 commit comments