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 examples less dependent on embedded-hal where able #1342

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

jessebraham
Copy link
Member

Small start towards #1317:

  • Add support for building a package without its default features to xtask
  • Refactor rng driver to be less dependent on trait impls
  • Do not require embedded_hal_02 in examples where it is not required

The remaining drivers likely will not be so trivial to decouple, so I figured I'd just get these out of the way before I start digging into those.

@jessebraham jessebraham added the skip-changelog No changelog modification needed label Mar 22, 2024
@@ -362,6 +363,10 @@ pub fn build_package(
builder = builder.features(&features);
}

if no_default_features {
builder = builder.arg("--no-default-features");
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

Copy link
Contributor

@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.

LGTM

@jessebraham jessebraham changed the title Fixes/embedded hal Make examples less dependent on embedded-hal where able Mar 25, 2024
@jessebraham jessebraham added this pull request to the merge queue Mar 25, 2024
Merged via the queue into esp-rs:main with commit ace679f Mar 25, 2024
21 checks passed
@jessebraham jessebraham deleted the fixes/embedded-hal branch March 25, 2024 13:25
yanshay pushed a commit to yanshay/esp-hal that referenced this pull request Mar 25, 2024
* Add support for building a package without its default features to `xtask`

* Do not require `embedded_hal_02` traits in examples where they are not required

* Do not require `embedded_hal_02` traits for filling a buffer with random bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants