Skip to content

Commit

Permalink
Merge pull request #27 from rust-embedded-community/release_060
Browse files Browse the repository at this point in the history
Bump to 0.6.0
  • Loading branch information
eldruin authored Aug 30, 2024
2 parents d3bfe52 + 239dfac commit d411ba7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https://github.com/rust-embedded-community/menu/compare/v0.5.1...master)
## [Unreleased](https://github.com/rust-embedded-community/menu/compare/v0.6.0...master)

* None

## [v0.6.0] - 2024-08-30

### Changed

* We now run clippy in CI
* Add optional support for [`noline`](https://crates.io/crates/noline) as a line-editor with history
* The interface we use for reading and writing bytes must now implement the [`embedded-io`](https://crates.io/crates/embedded-io) traits

## [v0.5.1] - 2024-08-22

### Fixed
Expand Down Expand Up @@ -63,6 +71,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

* First release

[v0.6.0]: https://github.com/rust-embedded-community/menu/releases/tag/v0.6.0
[v0.5.1]: https://github.com/rust-embedded-community/menu/releases/tag/v0.5.1
[v0.5.0]: https://github.com/rust-embedded-community/menu/releases/tag/v0.5.0
[v0.4.0]: https://github.com/rust-embedded-community/menu/releases/tag/v0.4.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "menu"
version = "0.5.1"
version = "0.6.0"
authors = ["Jonathan 'theJPster' Pallant <[email protected]>"]
description = "A simple #[no_std] command line interface."
license = "MIT OR Apache-2.0"
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,23 @@ It contains multiple paragraphs and should be preceeded by the parameter list.

```

## Using with `noline`

The [`noline`](https://crates.io/crates/noline) crate is a no-std line-editor
with history buffer. You can create a `Runner` using a `noline::Editor` instead
of a raw byte slice, and then you will get a `pub fn input_line(&mut self,
context: &mut T) -> Result<(), NolineError>` instead of the `pub fn
input_byte(&mut self, input: u8, context: &mut T)` you get when you pass a
mutable byte slice and let `menu` do the input handling. Call `input_line` and
it will use the `noline::Editor` to read a line of text from the user, with
history (press 'Up'!) and other nice features.

We chose this option as `noline` offers a bunch of benefits, but we didn't want
to break everything for people who were quite happy with the basic line editing
we have already.

See [`examples/noline.rs`](./examples/noline.rs) for an example.

## Changelog

See [`CHANGELOG.md`](./CHANGELOG.md).
Expand Down

0 comments on commit d411ba7

Please sign in to comment.