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
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,14 @@ 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
+
* Add support for using [`alloc::vec::Vec`](https://doc.rust-lang.org/alloc/vec/struct.Vec.html)
9
11
### Changed
10
12
* Due to dependency updates the MSRV has been updated from 1.60 to 1.62. This should only be relevant if you use the `defmt` feature, but we now only test with 1.62 and not older releases, so it's not guaranteed to work otherwise.
11
13
* Update to `heapless:0.8.0`
14
+
### Breaking Changes
15
+
* You must now select either the feature `use_alloc` or `use_heapless` for the crate to compile. Select `use_heapless`
16
+
to keep the API from the previous release of this crate.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,13 @@ 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
-
## Optional features
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
+
## Optional Features
13
19
*`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.
14
20
*`rgb`: if enabled, `From<ColorEvent> for RGB8` is implemented to support the [RGB crate](https://crates.io/crates/rgb).
15
21
*`serde`: if enabled, all events implement the [serde](https://serde.rs/)`#[derive(Serialize, Deserialize)]`.
0 commit comments