Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
324: Remove traits with unconstrained `Time` associated types. r=eldruin a=Dirbaio As discussed in #201 and #177 (comment) , the traits that have an unconstrained `type Time` associated type end up not being usable for HAL-independent drivers in practice, since there is too much variation across HALs of what the actual Time type is. These should be bound to something, probably a `Duration` trait, so that drivers can actually create and use them. Alternatively embedded-hal could have actual `struct Duration` and so. Either way, it's unclear what the final solution would look like. We shouldn't leave these traits in the 1.0 release, since fixing them later will be a breaking change. We should temporarily remove them, and add them back once we have figured this out which won't be a breaking change. Co-authored-by: Dario Nieuwenhuis <[email protected]>
- Loading branch information