rust-fuzz / cargo-fuzz

Command line helpers for fuzzing
https://rust-fuzz.github.io/book/cargo-fuzz.html
Apache License 2.0
1.48k stars 108 forks source link

Improve default_target to respect current toolchain and config #365

Open taiki-e opened 4 months ago

taiki-e commented 4 months ago

Fixes #355

See https://github.com/rust-fuzz/cargo-fuzz/issues/355#issuecomment-1974748776 and https://github.com/rust-fuzz/cargo-fuzz/issues/355#issuecomment-1974758107 for details. This PR uses the latter approach, which is more accurate. However, I have also implemented the former approach in another branch and can update the PR to use it if needed.

kaleidawave commented 3 weeks ago

Rough test of build time:

# main
real    0m22.610s
user    0m36.292s
sys 0m4.760s

# feature
real    0m26.355s
user    0m44.987s
sys 0m5.021s