Copy crate level attributes to chacha20_poly1305

No obvious reason not to; copy the crate level attributes that we have
in all our other crates.
This commit is contained in:
Tobin C. Harding 2024-10-31 15:38:01 +11:00
parent 1a74581616
commit 9f60e1ae26
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,16 @@
//! to form an authenticated encryption with additional data (AEAD) algorithm. //! to form an authenticated encryption with additional data (AEAD) algorithm.
#![no_std] #![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")] #[cfg(feature = "alloc")]
extern crate alloc; extern crate alloc;
#[cfg(feature = "std")] #[cfg(feature = "std")]