Use of private module `serde_macros` makes builds fail since 0.9.1 · Issue #101 · rust-bitcoin/bitcoin_hashes · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
I'm still investigating this, so I'm not entirely sure whether this is our fault in bdk or if this is due to bitcoin_hashes.
Anyways, it looks like the newly-released 0.9.1 makes bdk builds fail with an error regarding the use of private modules somewhere in bitcoin_hashes (see attached log).
This was not happening with 0.9.0 and build trees that still have a cached 0.9.0 copy of bitcoin_hashes will still happily compile. Running cargo update and forcing the update of bitcoin_hashes in those trees to the new release will then make the build fail.
It should be noted that we don't directly import bitcoin_hashes as a dependency, but we depend on it indirectly through bitcoin 0.25.
error[E0603]: module `serde_macros` is private
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin_hashes-0.9.1/src/serde_macros.rs:98:22
|
98 | impl $crate::serde_macros::serde_details::SerdeHash for $t {
| ^^^^^^^^^^^^ private module
|
note: the module `serde_macros` is defined here
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin_hashes-0.9.1/src/lib.rs:47:14
|
47 | #[macro_use] mod serde_macros;
| ^^^^^^^^^^^^^^^^^
error[E0603]: module `serde_macros` is private
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin_hashes-0.9.1/src/serde_macros.rs:107:25
|
107 | $crate::serde_macros::serde_details::SerdeHash::serialize(self, s)
| ^^^^^^^^^^^^ private module
|
note: the module `serde_macros` is defined here
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin_hashes-0.9.1/src/lib.rs:47:14
|
47 | #[macro_use] mod serde_macros;
| ^^^^^^^^^^^^^^^^^
error[E0603]: module `serde_macros` is private
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin_hashes-0.9.1/src/serde_macros.rs:113:25
|
113 | $crate::serde_macros::serde_details::SerdeHash::deserialize(d)
| ^^^^^^^^^^^^ private module
|
note: the module `serde_macros` is defined here
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/bitcoin_hashes-0.9.1/src/lib.rs:47:14
|
47 | #[macro_use] mod serde_macros;
| ^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
The text was updated successfully, but these errors were encountered:
afilini
changed the title
Use of private module serde_macro makes builds fail since 0.9.1
Use of private module serde_macros makes builds fail since 0.9.1
Oct 18, 2020
I'm still investigating this, so I'm not entirely sure whether this is our fault in
bdk
or if this is due tobitcoin_hashes
.Anyways, it looks like the newly-released
0.9.1
makesbdk
builds fail with an error regarding the use of private modules somewhere inbitcoin_hashes
(see attached log).This was not happening with
0.9.0
and build trees that still have a cached0.9.0
copy ofbitcoin_hashes
will still happily compile. Runningcargo update
and forcing the update ofbitcoin_hashes
in those trees to the new release will then make the build fail.It should be noted that we don't directly import
bitcoin_hashes
as a dependency, but we depend on it indirectly throughbitcoin 0.25
.Issue in our repo: bitcoindevkit/bdk#136
The text was updated successfully, but these errors were encountered: