2022-09-05 02:19:28 +00:00
|
|
|
// 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.
|
|
|
|
//!
|
|
|
|
|
2022-09-13 19:08:34 +00:00
|
|
|
#![no_std]
|
2022-09-05 02:19:28 +00:00
|
|
|
// Experimental features we need.
|
2023-03-29 03:40:23 +00:00
|
|
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
2022-09-05 02:19:28 +00:00
|
|
|
// Coding conventions
|
2023-02-10 19:01:42 +00:00
|
|
|
#![warn(missing_docs)]
|
2022-09-05 02:19:28 +00:00
|
|
|
|
2022-09-13 19:08:34 +00:00
|
|
|
#[cfg(feature = "alloc")]
|
|
|
|
extern crate alloc;
|
|
|
|
|
|
|
|
#[cfg(feature = "std")]
|
|
|
|
extern crate std;
|
|
|
|
|
2022-09-05 02:19:28 +00:00
|
|
|
pub mod error;
|
2022-09-13 19:08:34 +00:00
|
|
|
pub mod hex;
|
2022-09-20 04:39:20 +00:00
|
|
|
pub mod macros;
|
2022-09-13 19:08:34 +00:00
|
|
|
|
|
|
|
/// Mainly reexports based on features.
|
|
|
|
pub(crate) mod prelude {
|
|
|
|
#[cfg(feature = "alloc")]
|
|
|
|
pub(crate) use alloc::string::String;
|
|
|
|
}
|