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

Make the 'ble' and 'wifi' options mutually exclusive #23

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

jessebraham
Copy link
Member

Closes #19

@jessebraham jessebraham changed the title Make the 'ble' and 'wifi' features mutually exclusive Make the 'ble' and 'wifi' options mutually exclusive Oct 25, 2024
Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

}
}
}

if args.option.contains(&String::from("ble")) && args.option.contains(&String::from("wifi")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's fine but I was hoping we could detect such a situation more generally by checking the disables field in GeneratorOption

But given this is not a general-purpose library to create project generators it's probably unnecessary to deal with that

Copy link
Member Author

@jessebraham jessebraham Oct 25, 2024

Choose a reason for hiding this comment

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

I did consider a more thorough solution, but for the time being this at least solves the linked issue. Can revisit it at a later date.

Copy link
Collaborator

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

Thanks!

Feel free to explore a way to make detection of mutual exclusive features more general or not (if not I might someday ... )

@jessebraham jessebraham merged commit ff981be into esp-rs:main Oct 25, 2024
8 checks passed
@jessebraham jessebraham deleted the fixes/ble-wifi branch October 25, 2024 12:56
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.

Code which is generated does not compile
3 participants