Skip to content

Commit 0643111

Browse files
committed
Update doctest to use hex-conservative to avoid rust-bitcoin churn
1 parent 7989f80 commit 0643111

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ thiserror = "1.0.30"
1010
zeroize = "1"
1111

1212
[dev-dependencies]
13-
bitcoin_hashes = "0.10.0"
13+
hex-conservative = "0.2.1"
1414

1515
[build-dependencies]
1616
cc = "^1.0"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//! # Examples
1111
//!
1212
//! ```
13-
//! extern crate bitcoin_hashes;
14-
//! use bitcoin_hashes::hex::FromHex;
13+
//! extern crate hex_conservative;
14+
//! use hex_conservative::FromHex;
1515
//! use ctaes::{Padding, Pkcs7, AesCbcBlockCipher, Aes128Cbc};
1616
//!
1717
//! let key = <[u8; 16]>::from_hex("2b7e151628aed2a6abf7158809cf4f3c").unwrap();

tests/tests.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
* file COPYING or https://opensource.org/licenses/mit-license.php. *
55
**********************************************************************/
66

7-
extern crate bitcoin_hashes;
7+
extern crate hex_conservative;
88
extern crate ctaes;
99

10-
11-
use bitcoin_hashes::hex::FromHex;
10+
use hex_conservative::FromHex;
1211
use ctaes::{Aes128, Aes128Cbc, Aes192, Aes256, AesBlockCipher, AesCbcBlockCipher};
1312
use ctaes::Aes256Cbc;
1413
use ctaes::Aes192Cbc;

0 commit comments

Comments
 (0)