facet_reflect/
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#![doc = include_str!("../README.md")]
6
7extern crate alloc;
8
9mod error;
10pub use error::*;
11
12#[cfg(feature = "alloc")]
13mod partial;
14#[cfg(feature = "alloc")]
15pub use partial::*;
16
17mod peek;
18pub use peek::*;
19
20mod scalar;
21pub use scalar::*;
22
23#[cfg(feature = "log")]
24#[allow(unused_imports)]
25pub(crate) use log::{debug, trace};
26
27#[cfg(not(feature = "log"))]
28#[macro_export]
29/// Forwards to log::trace when the log feature is enabled
30macro_rules! trace {
31    ($($tt:tt)*) => {};
32}
33#[cfg(not(feature = "log"))]
34#[macro_export]
35/// Forwards to log::debug when the log feature is enabled
36macro_rules! debug {
37    ($($tt:tt)*) => {};
38}