Skip to content

Commit d411ba7

Browse files
authored
Merge pull request #27 from rust-embedded-community/release_060
Bump to 0.6.0
2 parents d3bfe52 + 239dfac commit d411ba7

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and 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

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "menu"
3-
version = "0.5.1"
3+
version = "0.6.0"
44
authors = ["Jonathan 'theJPster' Pallant <github@thejpster.org.uk>"]
55
description = "A simple #[no_std] command line interface."
66
license = "MIT OR Apache-2.0"

README.md

+17
Original file line numberDiff line numberDiff 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

170187
See [`CHANGELOG.md`](./CHANGELOG.md).

0 commit comments

Comments
 (0)