You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
<!-- next-header -->
8
8
## [Unreleased] - ReleaseDate
9
+
### Added
10
+
*`Copy`, `Clone` and `Hash` on error & event types (where possible)
11
+
### Changed
12
+
* The MSRV has been updated to 1.81.0 due to `core::error::Error` being implemented
13
+
***BREAKING**: The `parse` API has been replaced with `Parser::new` where `Parser` now implements `Iterator` and the `next` function returns each parsed command
14
+
* Accordingly, the features `use_alloc` and `use_heapless` have been removed.
Copy file name to clipboardExpand all lines: README.md
+5-7
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,6 @@ which is e.g. used by the [Adafruit Bluefruit LE UART Friend](https://learn.adaf
9
9
10
10
Note that this work is not affiliated with Adafruit.
11
11
12
-
## Mandatory Features
13
-
This crate is `no_std` and you can choose whether you want to use
14
-
[`heapless::Vec`](https://docs.rs/heapless/0.8.0/heapless/struct.Vec.html) by selecting the feature `use_heapless` or
15
-
[`alloc::vec::Vec`](https://doc.rust-lang.org/alloc/vec/struct.Vec.html) by selecting the feature `use_alloc`.
16
-
If you select neither or both you'll get a compile error.
17
-
18
12
## Optional Features
19
13
*`defmt`: you can enable the [`defmt`](https://defmt.ferrous-systems.com/) feature to get a `defmt::Format` implementation for all structs & enums and a `defmt::debug!` call for each command being parsed.
20
14
*`rgb`: if enabled, `From<ColorEvent> for RGB8` is implemented to support the [RGB crate](https://crates.io/crates/rgb).
@@ -23,12 +17,16 @@ If you select neither or both you'll get a compile error.
23
17
but you can opt to only select the event(s) you are interested in which will result in a small binary size.
24
18
If other events are received, a `ProtocolParseError::DisabledControllerDataPackageType` will be returned.
25
19
20
+
## Usage
21
+
The entry point to use this crate is `Parser` which implements `Iterator` to access the events in the input.
22
+
Note that this is a [sans I/O](https://sans-io.readthedocs.io/) crate, i.e. you have to talk to the Adafruit device, the parser just expects a byte sequence.
23
+
26
24
## Examples
27
25
A simple example for the STM32F4 microcontrollers is [available](examples/stm32f4-event-printer/README.md).
28
26
29
27
## Changelog
30
28
For the changelog please see the dedicated [CHANGELOG.md](CHANGELOG.md).
31
29
32
30
## Minimum Supported Rust Version (MSRV)
33
-
This crate is guaranteed to compile on stable Rust 1.62 and up. It *might*
31
+
This crate is guaranteed to compile on stable Rust 1.81 and up. It *might*
34
32
compile with older versions but that may change in any new patch release.
0 commit comments