Skip to content

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

@cameronelliott

Description

@cameronelliott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions