File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 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.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
77
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 )
99
1010* None
1111
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+
1220## [ v0.5.1] - 2024-08-22
1321
1422### Fixed
@@ -63,6 +71,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6371
6472* First release
6573
74+ [ v0.6.0 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.6.0
6675[ v0.5.1 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.5.1
6776[ v0.5.0 ] : https://github.com/rust-embedded-community/menu/releases/tag/v0.5.0
6877[ 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 11[package ]
22name = " menu"
3- version = " 0.5.1 "
3+ version = " 0.6.0 "
44authors = [
" Jonathan 'theJPster' Pallant <[email protected] >" ]
55description = " A simple #[no_std] command line interface."
66license = " 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.
165165
166166```
167167
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+
168185## Changelog
169186
170187See [ ` CHANGELOG.md ` ] ( ./CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments