rust-bitcoin / bitcoin_hashes

Simple library which implements a few hashes and does nothing else
Creative Commons Zero v1.0 Universal
66 stars 52 forks source link

Fix macro usage in macros #161

Closed tcharding closed 2 years ago

tcharding commented 2 years ago

Currently we have macros that call other macros without a fully qualified path, this breaks some usage of the macros downstream because macro calls that should be opaque require importing.

Fix macro usage in macros by using $crate:: fully qualified path.

Done in preparation for removing extern crate and macro_use in rust-bitcoin (since we have edition 2018). See https://github.com/rust-bitcoin/rust-bitcoin/pull/1041 for demonstration of using the changes proposed here.

apoelstra commented 2 years ago

Thanks for chasing this down! Macro usability is really irritating to test.