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