diff --git a/chacha20_poly1305/src/lib.rs b/chacha20_poly1305/src/lib.rs index 30e98836f..04d7f3771 100644 --- a/chacha20_poly1305/src/lib.rs +++ b/chacha20_poly1305/src/lib.rs @@ -4,6 +4,16 @@ //! to form an authenticated encryption with additional data (AEAD) algorithm. #![no_std] +// Experimental features we need. +#![cfg_attr(docsrs, feature(doc_auto_cfg))] +// Coding conventions. +#![warn(missing_docs)] +#![warn(deprecated_in_future)] +#![doc(test(attr(warn(unused))))] +// Exclude lints we don't think are valuable. +#![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134 +#![allow(clippy::manual_range_contains)] // More readable than clippy's format. + #[cfg(feature = "alloc")] extern crate alloc; #[cfg(feature = "std")]