1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//! A [serde]-compatible spanned Value
//!
//! This allows capturing the location, in bytes, for a value in the original parsed document for
//! compatible deserializers.
//!
//! [serde]: https://serde.rs/
#![deny(missing_docs)]
#![warn(rust_2018_idioms)]
// Makes rustc abort compilation if there are any unsafe blocks in the crate.
// Presence of this annotation is picked up by tools such as cargo-geiger
// and lets them ensure that there is indeed no unsafe code as opposed to
// something they couldn't detect (e.g. unsafe added via macro expansion, etc).
#![forbid(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
mod spanned;
pub use crate::spanned::Spanned;
#[doc(hidden)]
#[cfg(feature = "serde")]
pub mod __unstable {
pub use crate::spanned::is_spanned;
pub use crate::spanned::END_FIELD;
pub use crate::spanned::NAME;
pub use crate::spanned::START_FIELD;
pub use crate::spanned::VALUE_FIELD;
}