Skip to main content

bitcoin_key_expression/
lib.rs

1// SPDX-License-Identifier: CC0-1.0
2
3//! Bitcoin key expression and deterministic derivation
4//!
5//! This library provides types and functionality for key expressions and deterministic key
6//! derivation.
7
8#![no_std]
9// Experimental features we need.
10#![doc(test(attr(warn(unused))))]
11// Coding conventions.
12#![warn(deprecated_in_future)]
13#![warn(missing_docs)]
14
15#[cfg(feature = "alloc")]
16extern crate alloc;
17
18#[cfg(feature = "std")]
19extern crate std;
20
21extern crate hashes;
22
23extern crate hex;
24
25#[cfg(feature = "serde")]
26extern crate serde;
27
28// Pull in shared impl_array_newtype_stringify macro from include
29// The impl_array_newtype_stringify requires crate::serde, $crate::hex and
30// crate::hashes to exist.
31#[cfg(feature = "alloc")]
32include!("../include/array_newtype.rs");
33
34#[cfg(feature = "alloc")]
35include!("../include/newtype.rs");
36
37#[cfg(feature = "alloc")]
38pub mod bip32;