facet_json/lib.rs
1#![cfg_attr(not(feature = "std"), no_std)]
2#![warn(missing_docs)]
3#![warn(clippy::std_instead_of_core)]
4#![warn(clippy::std_instead_of_alloc)]
5#![deny(unsafe_code)]
6#![doc = include_str!("../README.md")]
7
8#[cfg(feature = "alloc")]
9extern crate alloc;
10
11#[cfg(not(feature = "alloc"))]
12compile_error!("feature `alloc` is required");
13
14mod deserialize;
15pub use deserialize::*;
16
17#[cfg(feature = "std")]
18mod serialize;
19#[cfg(feature = "std")]
20pub use serialize::*;