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

Allow compilation with --cfg fuzzing but not --features=arbitrary #1574

Merged
merged 1 commit into from
May 27, 2023
Merged

Allow compilation with --cfg fuzzing but not --features=arbitrary #1574

merged 1 commit into from
May 27, 2023

Conversation

smoelius
Copy link
Contributor

Right now, if quinn-proto is built without --features=arbitrary, one gets an error about an unresolved import. The compile_error helps to clarify why.

An alternative would be to try and disentangle --cfg fuzzing and --features=arbitrary. But this change is less invasive.

@djc
Copy link
Member

djc commented May 26, 2023

An alternative would be to try and disentangle --cfg fuzzing and --features=arbitrary. But this change is less invasive.

Did you try looking at this? I think I would usually prefer disentangling over this.

@smoelius
Copy link
Contributor Author

smoelius commented May 26, 2023

Did you try looking at this? I think I would usually prefer disentangling over this.

I did not, but if you hold off on merging, I will.

@smoelius smoelius changed the title Error when --cfg fuzzing is passed but not --features=arbitrary Allow compilation with --cfg fuzzing but not --features=arbitrary May 26, 2023
@smoelius
Copy link
Contributor Author

@djc Is this better?

Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@djc djc merged commit ede4344 into quinn-rs:main May 27, 2023
@djc
Copy link
Member

djc commented May 27, 2023

Yes, thank you!

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