rust-fuzz / honggfuzz-rs

Fuzz your Rust code with Google-developed Honggfuzz !
https://crates.io/crates/honggfuzz
Apache License 2.0
460 stars 42 forks source link

Support passing features to Cargo #12

Closed abonander closed 6 years ago

abonander commented 6 years ago

I created a bin target for using Honggfuzz with my library (reverted on master because of this issue and also because cargo-fuzz works on WSL now):

However, I cannot pass the honggfuzz feature to Cargo because the cargo-hfuzz executable doesn't support it.

abonander commented 6 years ago

As a temporary solution I've made honggfuzz non-optional but it's not satisfactory.

PaulGrandperrin commented 6 years ago

Hi @abonander, I'm not a big fan of how features work in cargo because of this exact situation but anyway, there is 2 solutions:

Please don't hesitate to reopen if you have any questions or suggestions!