Skip to content

Commit 25dc750

Browse files
committed
Replace features_check mod with a call to std::compile_error!. Fixes #1123 .
1 parent 2e15e3d commit 25dc750

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

src/features_check/error.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/features_check/mod.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@
363363
#![no_std]
364364
#![cfg_attr(docsrs, feature(doc_cfg))]
365365

366+
#[cfg(not(any(feature = "std", feature = "alloc")))]
367+
compile_error!("serde_json requires that either `std` (default) or `alloc` feature is enabled");
368+
366369
extern crate alloc;
367370

368371
#[cfg(feature = "std")]
@@ -409,8 +412,6 @@ pub mod ser;
409412
mod ser;
410413
pub mod value;
411414

412-
mod features_check;
413-
414415
mod io;
415416
#[cfg(feature = "std")]
416417
mod iter;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy