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

Remove most trait implementation features from esp-hal #2070

Merged
merged 8 commits into from
Sep 4, 2024
21 changes: 16 additions & 5 deletions esp-hal/MIGRATING-0.20.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
Migration Guide from 0.20.x to vNext
====================================
# Migration Guide from 0.20.x to vNext

jessebraham marked this conversation as resolved.
Show resolved Hide resolved
HAL initialsation
-----------------
## Cargo Features

A number of trait implementations which were previously feature-gated are now implemented by default. The following Cargo features have been removed:

- `async`
- `embedded-hal-02`
- `embedded-hal`
- `embedded-io`
- `embedded-io-async`
- `ufmt`

If your project enables any of these features, simply remove them from your Cargo manifest and things should continue to work as expected.

## HAL Initialisation

Instead of manually grabbing peripherals and setting up clocks, you should now call `esp_hal::init`.

Expand All @@ -13,7 +24,7 @@ Instead of manually grabbing peripherals and setting up clocks, you should now c
prelude::*,
- system::SystemControl,
};

#[entry]
bugadani marked this conversation as resolved.
Show resolved Hide resolved
fn main() -> ! {
- let peripherals = Peripherals::take();
Expand Down
Loading