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