Re-export bitcoin_hashes and secp256k1 dependency
This commit is contained in:
parent
48f4c1989f
commit
c01172780b
|
@ -44,11 +44,13 @@
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
|
|
||||||
|
// Re-exported dependencies.
|
||||||
|
pub extern crate bitcoin_hashes as hashes;
|
||||||
|
pub extern crate secp256k1;
|
||||||
|
|
||||||
extern crate bech32;
|
extern crate bech32;
|
||||||
extern crate bitcoin_hashes as hashes;
|
|
||||||
extern crate byteorder;
|
extern crate byteorder;
|
||||||
extern crate hex;
|
extern crate hex;
|
||||||
extern crate secp256k1;
|
|
||||||
#[cfg(feature = "serde")] extern crate serde;
|
#[cfg(feature = "serde")] extern crate serde;
|
||||||
#[cfg(all(test, feature = "serde"))] #[macro_use] extern crate serde_derive; // for 1.22.0 compat
|
#[cfg(all(test, feature = "serde"))] #[macro_use] extern crate serde_derive; // for 1.22.0 compat
|
||||||
#[cfg(all(test, feature = "serde"))] extern crate serde_json;
|
#[cfg(all(test, feature = "serde"))] extern crate serde_json;
|
||||||
|
|
|
@ -25,10 +25,9 @@
|
||||||
//! # Examples
|
//! # Examples
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! extern crate bitcoin_hashes;
|
|
||||||
//! extern crate bitcoin;
|
//! extern crate bitcoin;
|
||||||
//! use bitcoin_hashes::sha256d;
|
//! use bitcoin::hashes::sha256d;
|
||||||
//! use bitcoin_hashes::hex::FromHex;
|
//! use bitcoin::hashes::hex::FromHex;
|
||||||
//! use bitcoin::{Block, MerkleBlock};
|
//! use bitcoin::{Block, MerkleBlock};
|
||||||
//!
|
//!
|
||||||
//! # fn main() {
|
//! # fn main() {
|
||||||
|
@ -133,10 +132,9 @@ impl PartialMerkleTree {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate bitcoin_hashes;
|
|
||||||
/// extern crate bitcoin;
|
/// extern crate bitcoin;
|
||||||
/// use bitcoin_hashes::sha256d;
|
/// use bitcoin::hashes::sha256d;
|
||||||
/// use bitcoin_hashes::hex::FromHex;
|
/// use bitcoin::hashes::hex::FromHex;
|
||||||
/// use bitcoin::util::merkleblock::PartialMerkleTree;
|
/// use bitcoin::util::merkleblock::PartialMerkleTree;
|
||||||
///
|
///
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
|
@ -408,10 +406,9 @@ impl MerkleBlock {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern crate bitcoin_hashes;
|
|
||||||
/// extern crate bitcoin;
|
/// extern crate bitcoin;
|
||||||
/// use bitcoin_hashes::sha256d;
|
/// use bitcoin::hashes::sha256d;
|
||||||
/// use bitcoin_hashes::hex::FromHex;
|
/// use bitcoin::hashes::hex::FromHex;
|
||||||
/// use bitcoin::{Block, MerkleBlock};
|
/// use bitcoin::{Block, MerkleBlock};
|
||||||
///
|
///
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
|
|
Loading…
Reference in New Issue