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

move private features to build.rs #710

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

move private features to build.rs #710

wants to merge 1 commit into from

Conversation

burrbull
Copy link
Member

@burrbull burrbull commented Dec 7, 2023

No description provided.

@burrbull burrbull force-pushed the build-rs branch 2 times, most recently from 2feec2f to a7ecd01 Compare December 9, 2023 07:45
@burrbull burrbull marked this pull request as ready for review December 9, 2023 08:00
@burrbull burrbull changed the title move features to build.rs move private features to build.rs Dec 9, 2023
Cargo.toml Outdated

[[example]]
name = "f413disco-lcd-ferris"
required-features = ["gpiod", "gpioe", "gpiof", "gpiog", "fsmc", "fsmc_lcd"] # stm32f413
required-features = ["stm32f413", "fsmc_lcd"]
Copy link
Member

Choose a reason for hiding this comment

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

I was kind of hoping we would go the other way around and make them less MCU model dependent? Not really a big fan of declaring that this only works on stm32f413... Same for the others of course.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. But I don't have good answer.
Do you have ideas?

Copy link
Member

Choose a reason for hiding this comment

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

Not really, except that this is going in the wrong direction. Not quite sure how we can accomplish more genericity with the build.rs idea.

@burrbull burrbull marked this pull request as draft January 10, 2024 16:49
@burrbull burrbull force-pushed the build-rs branch 3 times, most recently from 8e20c08 to 5d294f1 Compare January 13, 2024 08:34
@burrbull burrbull force-pushed the build-rs branch 4 times, most recently from 1fd9678 to aeb6764 Compare June 12, 2024 08:58
uart9 = []
uart10 = []
# Private features for testing only
_pac_fsmc = []
Copy link
Member Author

Choose a reason for hiding this comment

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

@therealprof
I could not find any other solution for examples except fictive features.

@burrbull burrbull marked this pull request as ready for review June 12, 2024 09:19
@burrbull burrbull marked this pull request as draft October 4, 2024 13: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.

2 participants