Skip to content

Commit

Permalink
Replace features_check mod with a call to std::compile_error!. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mleonhard committed Apr 15, 2024
1 parent 2e15e3d commit 25dc750
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/features_check/error.rs

This file was deleted.

13 changes: 0 additions & 13 deletions src/features_check/mod.rs

This file was deleted.

5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(not(any(feature = "std", feature = "alloc")))]
compile_error!("serde_json requires that either `std` (default) or `alloc` feature is enabled");

extern crate alloc;

#[cfg(feature = "std")]
Expand Down Expand Up @@ -409,8 +412,6 @@ pub mod ser;
mod ser;
pub mod value;

mod features_check;

mod io;
#[cfg(feature = "std")]
mod iter;
Expand Down

0 comments on commit 25dc750

Please sign in to comment.