Skip to content

Commit

Permalink
Deprecate the hashes reexport
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kixunil committed Sep 6, 2024
1 parent 6648126 commit caf2f1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,12 @@ extern crate core;
#[cfg(bench)]
extern crate test;

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

#[macro_use]
mod macros;
Expand Down

0 comments on commit caf2f1a

Please sign in to comment.