Skip to content

Conversation

apoelstra
Copy link
Member

honggfuzz is increasingly hard for me to maintain in my local CI. It requires an exact match between the version of honggfuzz in the lockfile and the binary installed in the nix derivation, and these exact versions come with specific requirements about which rustc versions are allowable (and in particular, honggfuzz 0.5.56 does not work with rustc 1.74.0, which is the MSRV for rust-bitcoin). I also have to bend over backward to set compiler flags and make source directories writable.

Once we get this working here, I will open the same PR to rust-bitcoin. But I wanted to start here because it's an easier crate to maintain and also our fuzztests are in much better shape.

This lint appears when running the stable compiler, not just clippy. We
don't pin the stable compiler version, so this has started showing up
in CI, which is a bit noisy.
@apoelstra apoelstra force-pushed the 2025-09/fuzz branch 2 times, most recently from fe02d08 to d3fd35c Compare September 9, 2025 15:18
@apoelstra
Copy link
Member Author

My local CI is failing on this. Investigating.

@apoelstra
Copy link
Member Author

The issue seems to be with nightly-2025-03-21, which this crate is stuck on since #805 isn't passing. I will add some commits which update to the latest nightly here.

I'm not sure if it's possible to link to .md files in the source code.
If so, this isn't the way to do it.
@apoelstra apoelstra force-pushed the 2025-09/fuzz branch 2 times, most recently from 454afe7 to 79deb4a Compare September 9, 2025 23:38
TBH I had thought we'd fixed these years ago..
@apoelstra apoelstra force-pushed the 2025-09/fuzz branch 2 times, most recently from 09c4d53 to 928520a Compare September 10, 2025 02:42
honggfuzz is increasingly hard for me to maintain in my local CI. It
requires an exact match between the version of honggfuzz in the lockfile
and the binary installed in the nix derivation, and these exact versions
come with specific requirements about which rustc versions are allowable
(and in particular, honggfuzz 0.5.56 does not work with rustc 1.74.0,
which is the MSRV for rust-bitcoin). I also have to bend over backward
to set compiler flags and make source directories writable.

cargo-fuzz, meanwhile, requires nightly to *run* the fuzz tests, but does
not require it for just running unit tests or building. (The latest
version of libfuzzer-sys uses once_cell and requires a higher MSRV
than we have, but we don't need to use the very latest version.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant