1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-05 23:25:50 +03:00

update changelog for v0.5.1 changes

Этот коммит содержится в:
rhysd
2024-07-12 23:52:33 +09:00
родитель f6f6642969
Коммит 774f68c1b7
2 изменённых файлов: 56 добавлений и 0 удалений

Просмотреть файл

@@ -660,6 +660,30 @@ Values of the following types can be serialized/deserialized:
- `CursorMove`
- `Scrolling`
Here is an example for deserializing key input from JSON using [serde_json][].
```rust
use tui_textarea::Input;
let json = r#"
{
"key": { "Char": "a" },
"ctrl": true,
"alt": false,
"shift": true
}
"#;
let input: Input = serde_json::from_str(json).unwrap();
println!("{input}");
// Input {
// key: Key::Char('a'),
// ctrl: true,
// alt: false,
// shift: true,
// }
```
## Minimum Supported Rust Version
MSRV of this crate is depending on `tui` crate. Currently MSRV is 1.56.1. Note that `ratatui` crate requires more recent Rust version.
@@ -705,3 +729,4 @@ tui-textarea is distributed under [The MIT License](./LICENSE.txt).
[pulls]: https://github.com/rhysd/tui-textarea/pulls
[regex]: https://docs.rs/regex/latest/regex/
[serde]: https://crates.io/crates/serde
[serde_json]: https://crates.io/crates/serde_json