-
Notifications
You must be signed in to change notification settings - Fork 25
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
embedded-hal: 1.0.0-alpha.10 -> 1.0.0-rc.1 #86
Conversation
I bumped the MSRV to fix this CI error: I could alternatively pin the version of tokio, or commit a lockfile and run CI with |
Very exciting! I didn't know |
I hope that this is merged soon, so I can point to this repo. |
Hi @newAM, I updated the main branch to fix CI and to bump the MSRV. Could you rebase your branch? (The second commit isn't needed anymore, you can drop it.) |
Done! Should be all good-to-go now. |
@dbrgn: sorry to bother you, but is there a chance to get this (and other PRs in e-h-m) reviewed/merged/released? it'd be great to have a released version of this crate which matches the e-h release. thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reminder, and sorry for the delay!
Looks good to me, only one documentation issue left. Afterwards it can be merged! I'll fix it myself, so we can merge directly.
src/eh1/spi.rs
Outdated
@@ -8,8 +8,7 @@ | |||
//! ## Usage | |||
//! | |||
//! ``` | |||
//! # use eh1 as embedded_hal; | |||
//! use embedded_hal::spi::{SpiBus, SpiBusWrite}; | |||
//! use eh1::spi::SpiBus; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these docs are for public users (which would import embedded_hal
), I'd prefer to use the embedded_hal
alias in here.
@newAM ah, seems I can't push to your branch. Could you apply the patch below and push an update? diff --git a/src/eh1/spi.rs b/src/eh1/spi.rs
index 2c590d8..54bd591 100644
--- a/src/eh1/spi.rs
+++ b/src/eh1/spi.rs
@@ -8,7 +8,8 @@
//! ## Usage
//!
//! ```
-//! use eh1::spi::SpiBus;
+//! # use eh1 as embedded_hal;
+//! use embedded_hal::spi::SpiBus;
//! use embedded_hal_mock::eh1::spi::{Mock as SpiMock, Transaction as SpiTransaction};
//! use embedded_hal_nb::spi::FullDuplex;
//!
@@ -40,10 +41,8 @@
//! // Finalise expectations
//! spi.done();
//! ```
-use eh1::spi;
-use eh1::spi::{Operation, SpiBus, SpiDevice};
-use embedded_hal_nb::nb;
-use embedded_hal_nb::spi::FullDuplex;
+use eh1::spi::{self, Operation, SpiBus, SpiDevice};
+use embedded_hal_nb::{nb, spi::FullDuplex};
use crate::common::Generic; |
Done! :) |
A bit tangential, but maybe we should move this repository to a more "official" embedded rust GitHub organization to ease the maintenance burden on @dbrgn a bit? |
I'm can also help out with maintenance if desired :) |
@newAM thanks for the update! Ready for merge now 🙂 @rnestler @newAM I'm open for moving the repo to the |
This is now released as |
Closes #85
Closes #76
The embedded_hal blocking serial module was removed, it was replaced with embedded_io, but I think this makes more sense as a separate mock since it no longer has the Word generic.