File tree 3 files changed +28
-2
lines changed
3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
- ## [ Unreleased] ( https://github.com/rust-embedded-community/menu/compare/v0.5.1 ...master )
8
+ ## [ Unreleased] ( https://github.com/rust-embedded-community/menu/compare/v0.6.0 ...master )
9
9
10
10
* None
11
11
12
+ ## [ v0.6.0] - 2024-08-30
13
+
14
+ ### Changed
15
+
16
+ * We now run clippy in CI
17
+ * Add optional support for [ ` noline ` ] ( https://crates.io/crates/noline ) as a line-editor with history
18
+ * The interface we use for reading and writing bytes must now implement the [ ` embedded-io ` ] ( https://crates.io/crates/embedded-io ) traits
19
+
12
20
## [ v0.5.1] - 2024-08-22
13
21
14
22
### Fixed
@@ -63,6 +71,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
63
71
64
72
* First release
65
73
74
+ [ v0.6.0 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.6.0
66
75
[ v0.5.1 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.5.1
67
76
[ v0.5.0 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.5.0
68
77
[ v0.4.0 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.4.0
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " menu"
3
- version = " 0.5.1 "
3
+ version = " 0.6.0 "
4
4
authors = [" Jonathan 'theJPster' Pallant <github@thejpster.org.uk>" ]
5
5
description = " A simple #[no_std] command line interface."
6
6
license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -165,6 +165,23 @@ It contains multiple paragraphs and should be preceeded by the parameter list.
165
165
166
166
```
167
167
168
+ ## Using with ` noline `
169
+
170
+ The [ ` noline ` ] ( https://crates.io/crates/noline ) crate is a no-std line-editor
171
+ with history buffer. You can create a ` Runner ` using a ` noline::Editor ` instead
172
+ of a raw byte slice, and then you will get a `pub fn input_line(&mut self,
173
+ context: &mut T) -> Result<(), NolineError>` instead of the ` pub fn
174
+ input_byte(&mut self, input: u8, context: &mut T)` you get when you pass a
175
+ mutable byte slice and let ` menu ` do the input handling. Call ` input_line ` and
176
+ it will use the ` noline::Editor ` to read a line of text from the user, with
177
+ history (press 'Up'!) and other nice features.
178
+
179
+ We chose this option as ` noline ` offers a bunch of benefits, but we didn't want
180
+ to break everything for people who were quite happy with the basic line editing
181
+ we have already.
182
+
183
+ See [ ` examples/noline.rs ` ] ( ./examples/noline.rs ) for an example.
184
+
168
185
## Changelog
169
186
170
187
See [ ` CHANGELOG.md ` ] ( ./CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments