rust-bitcoin-unsafe-fast/internals/src/lib.rs

38 lines
1018 B
Rust

// SPDX-License-Identifier: CC0-1.0
//! # Rust Bitcoin Internal
//!
//! This crate is only meant to be used internally by crates in the
//! [rust-bitcoin](https://github.com/rust-bitcoin) ecosystem.
#![no_std]
// Experimental features we need.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Coding conventions.
#![warn(missing_docs)]
// 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.
#![allow(clippy::needless_borrows_for_generic_args)] // https://github.com/rust-lang/rust-clippy/issues/12454
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
#[cfg(feature = "test-serde")]
pub extern crate serde_json;
#[cfg(feature = "test-serde")]
pub extern crate bincode;
pub mod array_vec;
pub mod const_tools;
pub mod error;
pub mod macros;
mod parse;
#[cfg(feature = "serde")]
#[macro_use]
pub mod serde;