Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow passing arbitrary flags to cargo after -- in cargo fuzz build #312

Open
tomaka opened this issue Jul 7, 2022 · 1 comment
Open

Comments

@tomaka
Copy link

tomaka commented Jul 7, 2022

The cargo build command has some flags that cargo fuzz build doesn't have.
Two of them are --locked and --frozen, which would be very useful on CI to make sure that the Cargo.lock of the fuzzing targets is up-to-date.
It would be great to add support for these two flags to cargo fuzz build.

@fitzgen
Copy link
Member

fitzgen commented Jul 7, 2022

Chasing support for every cargo flag is something I have done before in cargo foo tools and it is Sysiphian. Not worth the unending effort.

Instead, it is much more maintainable to allow an escape hatch where everything after -- is passed to cargo directly (similar to how we don't copy all of libFuzzer's flags, and allow passing flags to it after -- for cargo fuzz run).

@fitzgen fitzgen changed the title Add --locked and --frozen flags to cargo fuzz build Allow passing arbitrary flags to cargo after -- in cargo fuzz build Jul 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants