Skip to content

Commit caf2f1a

Browse files
committed
Deprecate the hashes reexport
We don't use `hashes` in public API and we also use ranged version which makes items accessed through the reexport to break on `cargo update`. We want to remove it eventually, so deprecate it first.
1 parent 6648126 commit caf2f1a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ extern crate core;
153153
#[cfg(bench)]
154154
extern crate test;
155155

156+
/// Deprecated reexport of the `bitcoin-hashes` crate.
156157
#[cfg(feature = "hashes")]
157-
pub extern crate hashes;
158+
#[deprecated(since = "TBD", note = "Depend on `hashes` in your own crate.")]
159+
pub mod hashes {
160+
pub use ::hashes::*;
161+
}
158162

159163
#[macro_use]
160164
mod macros;

0 commit comments

Comments
 (0)