////////////////////////////////////////////////////////////////////////////////
// Serde types in rustdoc of other crates get linked to here.
-#![doc(html_root_url = "https://docs.rs/serde/1.0.27")]
+#![doc(html_root_url = "https://docs.rs/serde/1.0.35")]
// Support using Serde without the standard library!
#![cfg_attr(not(feature = "std"), no_std)]
// Unstable functionality only if the user asks for it. For tracking and
// Whitelisted clippy lints
#![cfg_attr(feature = "cargo-clippy",
allow(cast_lossless, const_static_lifetime, doc_markdown, linkedlist,
- needless_pass_by_value, type_complexity, unreadable_literal,
- zero_prefixed_literal))]
+ needless_pass_by_value, redundant_field_names, type_complexity,
+ unreadable_literal, zero_prefixed_literal))]
// Whitelisted clippy_pedantic lints
#![cfg_attr(feature = "cargo-clippy", allow(
// integer and float ser/de requires these sorts of casts
// simplifies some macros
invalid_upcast_comparisons,
// things are often more readable this way
+ decimal_literal_representation,
option_unwrap_used,
result_unwrap_used,
shadow_reuse,
stutter,
use_self,
// not practical
+ many_single_char_names,
missing_docs_in_private_items,
+ similar_names,
// alternative is not stable
empty_enum,
use_debug,
pub use std::sync::{Mutex, RwLock};
#[cfg(feature = "unstable")]
+ #[allow(deprecated)]
pub use core::nonzero::{NonZero, Zeroable};
+
+ #[cfg(feature = "unstable")]
+ pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroUsize};
}
////////////////////////////////////////////////////////////////////////////////