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:
parent
1a74581616
commit
9f60e1ae26
|
@ -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")]
|
||||||
|
|
Loading…
Reference in New Issue