-
Notifications
You must be signed in to change notification settings - Fork 107
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
Proposal to split afl.rs into two packages #335
Comments
That sounds like a great idea! Another way to achieve cargo-afl's dependencies (e.g. clap) will not need to be built. is through features, like we do here. The only difference in workflow this would create is that the
|
That's a very good point, @louismerlin. Thank you for raising it. |
I've received two positive responses (one here and one offline) and no negative responses. So in about a week, I'm going to implement a transitional message to let users know this change is coming. |
Completed by #375 |
I propose that afl.rs be split into two package,
cargo-afl
andafl
.Moreover:
cargo-afl
viacargo install cargo-afl
, instead ofcargo install afl
like now.cargo install afl
(similar to whatcargo install rg
does).cargo build
instead ofcargo afl build
on a crate that depends onafl
.The last bullet would be accomplished by a build script. Note that there is no easy way to accomplish this with the current one-package setup, because there is no easy way to tell why a build script is run (see rust-lang/cargo#4001).
Pros for these changes:
cc
failed: exit code: 1" when "cargo build" #179).afl
should be faster, because:cargo-afl
) will not need to be run.cargo-afl
's dependencies (e.g. clap) will not need to be built.Cons:
cargo install afl
will have to adjust.cargo install afl
will break. (It may be possible to have a transition period where we generate a warning.)Does anyone have strong opinions on this? If so, could you please voice them?
The text was updated successfully, but these errors were encountered: