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;
35pub use spanned::{
36 Span, Spanned, find_span_metadata_field, get_spanned_inner_shape, is_spanned_shape,
37};
38
39#[cfg(feature = "tracing")]
40#[allow(unused_imports)]
41pub(crate) use tracing::{debug, trace};
42
43#[cfg(not(feature = "tracing"))]
44#[macro_export]
45macro_rules! trace {
47 ($($tt:tt)*) => {};
48}
49#[cfg(not(feature = "tracing"))]
50#[macro_export]
51macro_rules! debug {
53 ($($tt:tt)*) => {};
54}