cargo-fuzz
cargo-fuzz copied to clipboard
Confusing error when Cargo.toml includes 'cargo-fuzz = true'
Hi, I'm new to cargo-fuzz, so that's probably part of the issue.
I tried following an issue on fuzzing, and so rather than starting with cargo fuzz init
I started editing my Cargo.toml to match the article.
I added this section (and the dir fuzz_targets, with a .rs inside)
[package.metadata]
cargo-fuzz = true
Unbeknownst to me, that caused my fuzz commands to always print:
Error: could not find a cargo project
c@macmini > cargo fuzz run xx
Error: could not find a cargo project
c@macmini > cargo fuzz init
Error: could not find a cargo project
It seems like this could be clearer, it was difficult to figure out what was the cause of confusion.