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
9#[cfg(doc)]
10pub mod deferred_materialization;
11
12mod error;
13pub use error::*;
14
15#[cfg(feature = "alloc")]
16mod partial;
17#[cfg(feature = "alloc")]
18pub use partial::*;
19
20#[cfg(feature = "alloc")]
21mod resolution;
22#[cfg(feature = "alloc")]
23pub use resolution::*;
24
25mod peek;
26pub use peek::*;
27
28mod poke;
29pub use poke::*;
30
31mod scalar;
32pub use scalar::*;
33
34mod spanned;
35#[cfg(feature = "miette")]
36pub use miette::SourceSpan;
37pub use spanned::{
38    Span, Spanned, find_span_metadata_field, get_spanned_inner_shape, is_spanned_shape,
39};
40
41#[cfg(feature = "log")]
42#[allow(unused_imports)]
43pub(crate) use log::{debug, trace};
44
45#[cfg(not(feature = "log"))]
46#[macro_export]
47/// Forwards to log::trace when the log feature is enabled
48macro_rules! trace {
49    ($($tt:tt)*) => {};
50}
51#[cfg(not(feature = "log"))]
52#[macro_export]
53/// Forwards to log::debug when the log feature is enabled
54macro_rules! debug {
55    ($($tt:tt)*) => {};
56}