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 scalar;
29pub use scalar::*;
30
31mod spanned;
32#[cfg(feature = "miette")]
33pub use miette::SourceSpan;
34pub use spanned::{
35 Span, Spanned, find_span_metadata_field, get_spanned_inner_shape, is_spanned_shape,
36};
37
38#[cfg(feature = "log")]
39#[allow(unused_imports)]
40pub(crate) use log::{debug, trace};
41
42#[cfg(not(feature = "log"))]
43#[macro_export]
44macro_rules! trace {
46 ($($tt:tt)*) => {};
47}
48#[cfg(not(feature = "log"))]
49#[macro_export]
50macro_rules! debug {
52 ($($tt:tt)*) => {};
53}