Re-export bitcoin_hashes and secp256k1 dependency

This commit is contained in:
Steven Roose 2019-07-06 14:43:12 +01:00
parent 48f4c1989f
commit c01172780b
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
2 changed files with 10 additions and 11 deletions

View File

@ -44,11 +44,13 @@
#![forbid(unsafe_code)]
// Re-exported dependencies.
pub extern crate bitcoin_hashes as hashes;
pub extern crate secp256k1;
extern crate bech32;
extern crate bitcoin_hashes as hashes;
extern crate byteorder;
extern crate hex;
extern crate secp256k1;
#[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"))] extern crate serde_json;

View File

@ -25,10 +25,9 @@
//! # Examples
//!
//! ```rust
//! extern crate bitcoin_hashes;
//! extern crate bitcoin;
//! use bitcoin_hashes::sha256d;
//! use bitcoin_hashes::hex::FromHex;
//! use bitcoin::hashes::sha256d;
//! use bitcoin::hashes::hex::FromHex;
//! use bitcoin::{Block, MerkleBlock};
//!
//! # fn main() {
@ -133,10 +132,9 @@ impl PartialMerkleTree {
/// # Examples
///
/// ```rust
/// extern crate bitcoin_hashes;
/// extern crate bitcoin;
/// use bitcoin_hashes::sha256d;
/// use bitcoin_hashes::hex::FromHex;
/// use bitcoin::hashes::sha256d;
/// use bitcoin::hashes::hex::FromHex;
/// use bitcoin::util::merkleblock::PartialMerkleTree;
///
/// # fn main() {
@ -408,10 +406,9 @@ impl MerkleBlock {
/// # Examples
///
/// ```rust
/// extern crate bitcoin_hashes;
/// extern crate bitcoin;
/// use bitcoin_hashes::sha256d;
/// use bitcoin_hashes::hex::FromHex;
/// use bitcoin::hashes::sha256d;
/// use bitcoin::hashes::hex::FromHex;
/// use bitcoin::{Block, MerkleBlock};
///
/// # fn main() {