Sha256: fae836e211dc2ae053a8dc54f57f98786db272e06f42733bfde6de8c87969ca2

Contents?: true

Size: 973 Bytes

Versions: 8

Compression:

Stored size: 973 Bytes

Contents

//! 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/

#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs)]
// 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)]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]

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;
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/serde_spanned-0.6.8/src/lib.rs
wasmtime-28.0.0 ./ext/cargo-vendor/serde_spanned-0.6.8/src/lib.rs
wasmtime-27.0.0 ./ext/cargo-vendor/serde_spanned-0.6.8/src/lib.rs
wasmtime-26.0.0 ./ext/cargo-vendor/serde_spanned-0.6.8/src/lib.rs
wasmtime-25.0.2 ./ext/cargo-vendor/serde_spanned-0.6.7/src/lib.rs
wasmtime-25.0.1 ./ext/cargo-vendor/serde_spanned-0.6.7/src/lib.rs
wasmtime-25.0.0 ./ext/cargo-vendor/serde_spanned-0.6.7/src/lib.rs
wasmtime-24.0.0 ./ext/cargo-vendor/serde_spanned-0.6.7/src/lib.rs