Skip to content
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

Add fuzzing #15

Merged
merged 2 commits into from
Oct 19, 2024
Merged

Add fuzzing #15

merged 2 commits into from
Oct 19, 2024

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Oct 18, 2024

Running the fuzzer requires cargo fuzz installed. It's incompatible with lto, so you'll have to comment out the lto = true line in Cargo.toml. Then running cargo fuzz run parse should run the fuzzer.

@jplatte
Copy link

jplatte commented Oct 18, 2024

Rather than editing the Cargo.toml, setting CARGO_PROFILE_RELEASE_LTO=false should also work, right? Could document that somewhere as part of the PR if it works.

@Ethiraric
Copy link
Contributor

Awesome, thanks! If I had known it was that simple, I'd have added that a while back.

I'll add a justfile command that sets the flags right.

@Ethiraric Ethiraric merged commit 42c8407 into saphyr-rs:master Oct 19, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants