bitcoin_internals/lib.rs
1// SPDX-License-Identifier: CC0-1.0
2
3//! # Rust Bitcoin Internal
4//!
5//! This crate is only meant to be used internally by crates in the
6//! [rust-bitcoin](https://github.com/rust-bitcoin) ecosystem.
7//!
8
9#![no_std]
10// Experimental features we need.
11#![cfg_attr(docsrs, feature(doc_auto_cfg))]
12// Coding conventions
13#![warn(missing_docs)]
14
15#[cfg(feature = "alloc")]
16extern crate alloc;
17
18#[cfg(feature = "std")]
19extern crate std;
20
21pub mod error;
22pub mod hex;
23pub mod macros;
24mod parse;
25pub mod serde;
26
27/// Mainly reexports based on features.
28pub(crate) mod prelude {
29 #[cfg(feature = "alloc")]
30 pub(crate) use alloc::string::String;
31}