jameysharp requested fitzgen for a review on PR #4806.
jameysharp opened PR #4806 from indirect-arbitrary
to main
:
The version of the
arbitrary
crate used in fuzz targets needs to be
the same as the version used inlibfuzzer-sys
. That's why the latter
crate re-exports the former.But we need to make sure to consistently use the re-exported version.
That's most easily done if that's the only version we have available.
However,fuzz/Cargo.toml
declared a direct dependency onarbitrary
,
making it available for import, and leading to that version being used
in a couple places.There were two copies of
arbitrary
built before, even though they were
the same version: one with thederive
feature turned on, through the
direct dependency, and one with it turned off when imported through
libfuzzer-sys
. So I haven't specifically tested this but fuzzer builds
might be slightly faster now.I have not removed the build-dep on
arbitrary
, becausebuild.rs
is
not invoked by libFuzzer and so it doesn't matter what version of
arbitrary
it uses.Our other crates, like
cranelift-fuzzgen
andwasmtime-fuzzing
, can
still accidentally use a different version ofarbitrary
than the fuzz
targets which rely on them. This commit only fixes the direct cases
withinfuzz/**
.
fitzgen submitted PR review.
jameysharp has enabled auto merge for PR #4806.
jameysharp merged PR #4806.
Last updated: Nov 22 2024 at 16:03 UTC