Skip to content

separate binary and lib or their deps #130

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

Closed
Trolldemorted opened this issue Jan 12, 2018 · 6 comments
Closed

separate binary and lib or their deps #130

Trolldemorted opened this issue Jan 12, 2018 · 6 comments

Comments

@Trolldemorted
Copy link

Right now it is cumbersome to fuzz libs that depend on afl.rs' dependencies, because they may require different versions.

Since the lib only offers two functions and uses nothing of the dependencies (?), I think we don't need them to be included in fuzz targets.

@frewsxcv
Copy link
Member

which dependencies are you referring to? some of them get used in the cargo-afl binary. in what ways do you find working with the dependencies cumbersome?

@Trolldemorted
Copy link
Author

We are fuzzing something also depending on clap, but a completely different version.

Since the fuzz target does not need clap we cloned afl.rs, removed everything cargo-afl related, built our fuzz-target, and ran it with cargo afl from crates.io.

@frewsxcv
Copy link
Member

Relevant cargo issue rust-lang/cargo#1982

@frewsxcv
Copy link
Member

For what it's worth, you don't need to add 'afl' as a dependency in your cargo.toml. you should be able to just copy and paste these functions into your fuzz target

@Trolldemorted
Copy link
Author

depending on a local, purged clone of afl.rs also works like a charm, we just wanted to let you know

@smoelius
Copy link
Member

smoelius commented Jul 9, 2024

I think issue #335 was a duplicate of this one, and that issue is now closed.

Feel free to reopen if I have made a mistake.

@smoelius smoelius closed this as completed Jul 9, 2024
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

3 participants