Debian Codegraph @

debian/missing-sources/serde_spanned/src/lib.rs

raw symbols SCIP
1 //! A [serde]-compatible spanned Value
2 //!
3 //! This allows capturing the location, in bytes, for a value in the original parsed document for
4 //! compatible deserializers.
5 //!
6 //! [serde]: https://serde.rs/
7
8 #![cfg_attr(docsrs, feature(doc_cfg))]
9 #![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
10 #![warn(missing_docs)]
11 #![warn(clippy::std_instead_of_core)]
12 #![warn(clippy::std_instead_of_alloc)]
13 // Makes rustc abort compilation if there are any unsafe blocks in the crate.
14 // Presence of this annotation is picked up by tools such as cargo-geiger
15 // and lets them ensure that there is indeed no unsafe code as opposed to
16 // something they couldn't detect (e.g. unsafe added via macro expansion, etc).
17 #![forbid(unsafe_code)]
18 #![warn(clippy::print_stderr)]
19 #![warn(clippy::print_stdout)]
20
21 #[cfg(feature = "alloc")]
22 #[allow(unused_extern_crates)]
23 extern crate allocrust-analyzer cargo serde_spanned 1.0.4 alloc/;
24
25 mod spannedrust-analyzer cargo serde_spanned 1.0.4 spanned/;
26 pub use craterust-analyzer cargo serde_spanned 1.0.4 crate/::spannedrust-analyzer cargo serde_spanned 1.0.4 spanned/::Spannedrust-analyzer cargo serde_spanned 1.0.4 spanned/Spanned#;
27 #[cfg(feature = "serde")]
28 pub mod de;
29
30 #[doc = include_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include_str!!("../README.md")]
31 #[cfg(doctest)]
32 pub struct ReadmeDoctests;