bitcoin_crypto/lib.rs
1// SPDX-License-Identifier: CC0-1.0
2
3//! Cryptography support for the rust-bitcoin ecosystem.
4
5// NB: This crate is empty if `alloc` is not enabled.
6#![cfg(feature = "alloc")]
7#![no_std]
8// Experimental features we need.
9#![doc(test(attr(warn(unused))))]
10// Coding conventions.
11#![warn(deprecated_in_future)]
12#![warn(missing_docs)]
13// Exclude lints we don't think are valuable.
14#![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
15#![allow(clippy::manual_range_contains)] // More readable than clippy's format.
16#![allow(clippy::uninlined_format_args)] // Allow `format!("{}", x)` instead of enforcing `format!("{x}")`
17
18extern crate alloc;
19
20#[cfg(feature = "std")]
21extern crate std;