Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error when Cargo.toml includes 'cargo-fuzz = true' #350

Open
cameronelliott opened this issue Dec 21, 2023 · 0 comments
Open

Confusing error when Cargo.toml includes 'cargo-fuzz = true' #350

cameronelliott opened this issue Dec 21, 2023 · 0 comments

Comments

@cameronelliott
Copy link

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.

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

No branches or pull requests

1 participant