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

Moved unproven feature gates to trait impl blocks #460

Closed
wants to merge 2 commits into from

Conversation

Sympatron
Copy link
Contributor

As suggested in #426, this PR moves the feature gates to the impl blocks. That way, you can still use parts of these modules without unproven.

If this is something we want, I would probably add replacement methods in case unproven isn't active to make them useful again. And make the e-h trait impls wrappers around those.

At this state some modules' main functions wouldn't be accessible.

@@ -30,24 +30,60 @@ impl Watchdog {
}
}

fn feed(&mut wdt: WDT) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could be the way to go, until e-h traits aren't "unproven" anymore. But I am open for suggestions/better options.

@bradleyharden
Copy link
Contributor

Honestly, I'm starting to think we should enable unproven unconditionally. It's becoming a real pain. Is there anyone who wants to turn it off? Given the state of embedded-hal, I doubt it. Once embedded-hal reaches v1.0, we can return it to an optional feature.

@Sympatron
Copy link
Contributor Author

Sympatron commented Jun 24, 2021

That would be another solution.

@bradleyharden
Copy link
Contributor

@sajattack, what do you think about making unproven unconditional for the time being? Seems more trouble than it's worth

@sajattack
Copy link
Member

@sajattack, what do you think about making unproven unconditional for the time being? Seems more trouble than it's worth

Yeah go for it.

@Sympatron Sympatron closed this Jun 26, 2021
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