From deb84ee4be2613729015596a2dc89a69a04e683a Mon Sep 17 00:00:00 2001 From: Ralph Ursprung Date: Mon, 9 Sep 2024 11:15:45 +0200 Subject: [PATCH] remove `eh0` feature from default features `embedded-hal` v1.0 came out in january 2024, going forward new code should use this. accordingly, `eh0` support should no longer be part of the default features to reduce the amount of dependencies being pulled in. existing code will likely still use it, thus consumers will have to explicitly enable the feature when upgrading. --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db441bd..2e3801c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - Drop fixed MSRV policy (#124) +- **Breaking**: the `eh0` feature is no longer part of the default features. + it still exists as an optional feature and has to be explicitly added when needed. ## 0.11.1 - 2024-06-02 diff --git a/Cargo.toml b/Cargo.toml index d762b84..827011a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ eh1 = ["dep:eh1", "dep:embedded-hal-nb"] embedded-time = ["dep:embedded-time", "dep:void"] embedded-hal-async = ["dep:embedded-hal-async"] -default = ["eh0", "eh1", "embedded-time"] +default = ["eh1", "embedded-time"] [dependencies] eh0 = { package = "embedded-hal", version = "0.2.7", features = ["unproven"], optional = true }