Update Rust crate ratatui to 0.29.0 #121
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.26.3
->0.29.0
Release Notes
ratatui/ratatui (ratatui)
v0.29.0
Compare Source
Features
3a43274 (color) Add hsluv support by @du-ob in #1333
4c4851c (example) Add drawing feature to the canvas example by @orhun in #1429
e5a7609 (line) Impl From<Cow> for Line by @joshka in #1373 [breaking]
2805ddd (logo) Add a Ratatui logo widget by @joshka in #1307
d72968d (scrolling-regions) Use terminal scrolling regions to stop Terminal::insert_before from flickering by @nfachan in #1341 [breaking]
dc8d058 (table) Add support for selecting column and cell by @airblast-dev in #1331 [breaking]
ab6b1fe (tabs) Allow tabs to be deselected by @joshka in #1413 [breaking]
23c0d52 (text) Improve concise debug view for Span,Line,Text,Style by @joshka in #1410
60cc15b (uncategorized) Add support for empty bar style to
Sparkline
by @fujiapple852 in #1326 [breaking]453a308 (uncategorized) Add overlap to layout by @kdheepak in #1398 [breaking]
7bdccce (uncategorized) Add an impl of
DoubleEndedIterator
forColumns
andRows
by @fujiapple852 [breaking]Bug Fixes
4f5503d (color) Hsl and hsluv are now clamped before conversion by @joshka in #1436 [breaking]
b7e4885 (color) Fix doc test for from_hsl by @joshka in #1421
3df685e (rect) Rect::area now returns u32 and Rect::new() no longer clamps area to u16::MAX by @joshka in #1378 [breaking]
514d273 (terminal) Use the latest, resized area when clearing by @roberth in #1427
0f48239 (terminal) Resize() now resizes fixed viewports by @Patryk27 in #1353
a52ee82 (text) Truncate based on alignment by @Lunderberg in #1432
611086e (uncategorized) Sparkline docs / doc tests by @joshka in #1437
b9653ba (uncategorized) Prevent calender render panic when terminal height is small by @adrodgers in #1380
da821b4 (uncategorized) Clippy lints from rust 1.81.0 by @fujiapple852 in #1356
68886d1 (uncategorized) Add
unstable-backend-writer
feature by @Patryk27 in #1352Refactor
6db16d6 (color) Use palette types for Hsl/Hsluv conversions by @orhun in #1418 [breaking]
edcdc8a (layout) Rename element to segment in layout by @kdheepak in #1397
1153a9e (uncategorized) Consistent result expected in layout tests by @farmeroy in #1406
20c88aa (uncategorized) Avoid unneeded allocations by @mo8it in #1345
Documentation
b13e2f9 (backend) Added link to stdio FAQ by @Valentin271 in #1349
b88717b (constraint) Add note about percentages by @joshka in #1368
381ec75 (readme) Reduce the length by @joshka in #1431
4728f0e (uncategorized) Tweak readme by @joshka in #1419
4069aa8 (uncategorized) Fix missing breaking changes link by @joshka in #1416
870bc6a (uncategorized) Use
Frame::area()
instead ofsize()
in examples by @hosseinnedaee in #1361Performance
Rect
iterators by @airblast-dev in #1420Styling
Miscellaneous Tasks
67c0ea2 (block) Deprecate block::Title by @joshka in #1372
6515097 (cargo) Check in Cargo.lock by @joshka in #1434
c777beb (ci) Bump git-cliff-action to v4 by @orhun in #1350
69e0cd2 (deny) Allow Zlib license in cargo-deny configuration by @orhun in #1411
bc10af5 (style) Make Debug output for Text/Line/Span/Style more concise by @joshka in #1383
f6f7794 (uncategorized) Remove leftover prelude refs / glob imports from example code by @joshka in #1430
9fd1bee (uncategorized) Make Positions iterator fields private by @joshka in #1424 [breaking]
c32baa7 (uncategorized) Add benchmark for
Table
by @airblast-dev in #14085ad623c (uncategorized) Remove usage of prelude by @joshka in #1390
f4880b4 (deps) Pin unicode-width to 0.2.0 by @orhun in #1403 [breaking]
Continuous Integration
New Contributors
Full Changelog: ratatui/ratatui@v0.28.1...v0.29.0
v0.28.1
Compare Source
Features
ed51c4b (terminal) Add ratatui::init() and restore() methods by @joshka in #1289
Bug Fixes
aed60b9 (terminal) Terminal::insert_before would crash when called while the viewport filled the screen by @nfachan in #1329
fdd5d8c (text) Remove trailing newline from single-line Display trait impl by @LucasPickering in #1320
2fb0b8a (uncategorized) Fix u16 overflow in Terminal::insert_before. by @nfachan in #1323
Documentation
3631b34 (examples) Add widget implementation example by @joshka in #1147
d5477b5 (examples) Use ratatui::crossterm in examples by @joshka in #1315
730dfd4 (examples) Show line gauge in demo example by @montmorill in #1309
9ed85fd (table) Fix incorrect backticks in
TableState
docs by @airblast-dev in #13426d1bd99 (uncategorized) Minor grammar fixes by @matta in #1330
097ee86 (uncategorized) Remove superfluous doc(inline) by @EdJoPaTo in #1310
3fdb5e8 (uncategorized) Fix typo in terminal.rs by @mrjackwills in #1313
Testing
0d5f3c0 (uncategorized) Avoid unneeded allocations in assertions by @mo8it in #1335
Miscellaneous Tasks
65da535 (ci) Update release strategy by @orhun in #1337
57d8b74 (ci) Use cargo-docs-rs to lint docs by @joshka in #1318
8b624f5 (maintainers) Remove EdJoPaTo by @EdJoPaTo in #1314
23516bc (uncategorized) Rename ratatui-org to ratatui by @joshka in #1334
Build
0256269 (uncategorized) Simplify Windows build by @joshka in #1317
New Contributors
Full Changelog: ratatui/ratatui@v0.28.0...v0.28.1
v0.28.0
Compare Source
"If you are what you eat, then I only want to eat the good stuff." – Remy
We are excited to announce the new version of
ratatui
- a Rust library that's all about cooking up TUIs 🐭In this version, we have upgraded to Crossterm 0.28.0, introducing enhanced functionality and performance improvements.
New features include GraphType::Bar, lines in bar charts, and enhanced scroll/navigation methods.
We have also refined the terminal module and added brand new methods for cursor positions and text operations.
✨ Release highlights: https://ratatui.rs/highlights/v028/
Features
8d4a102 (barchart) Allow axes to accept Lines by @joshka in #1273 [breaking]
a23ecd9 (buffer) Add Buffer::cell, cell_mut and index implementations by @joshka in #1084
afe1534 (chart) Accept
IntoIterator
for axis labels by @EdJoPaTo in #1283 [breaking]5b51018 (chart) Add GraphType::Bar by @joshka in #1205
f97e07c (frame) Replace Frame::size() with Frame::area() by @EdJoPaTo in #1293
5b89bd0 (layout) Add Size::ZERO and Position::ORIGIN constants by @EdJoPaTo in #1253
b2aa843 (layout) Enable serde for Margin, Position, Rect, Size by @EdJoPaTo in #1255
36d49e5 (table) Select first, last, etc to table state by @robertpsoane in #1198
3bb374d (terminal) Add Terminal::try_draw() method by @joshka in #1209
3725262 (text) Add
Add
andAddAssign
implementations forLine
,Span
, andText
by @joshka in #1236c34fb77 (text) Remove unnecessary lifetime from ToText trait by @joshka in #1234 [breaking]
c68ee6c (uncategorized) Add
get/set_cursor_position()
methods to Terminal and Backend by @EdJoPaTo in #1284 [breaking]b70cd03 (uncategorized) Add ListState / TableState scroll_down_by() / scroll_up_by() methods by @josueBarretogit in #1267
Bug Fixes
864cd9f (testbackend) Prevent area mismatch by @EdJoPaTo in #1252
7e1bab0 (buffer) Dont render control characters by @EdJoPaTo in #1226
c08b522 (chart) Allow removing all the axis labels by @EdJoPaTo in #1282
03f3124 (paragraph) Line_width, and line_count include block borders by @airblast-dev in #1235
3ca920e (span) Prevent panic on rendering out of y bounds by @EdJoPaTo in #1257
84cb164 (terminal) Make terminal module private by @joshka in #1260 [breaking]
29c8c84 (uncategorized) Ignore newlines in Span's Display impl by @SUPERCILEX in #1270
cd93547 (uncategorized) Remove unnecessary synchronization in layout cache by @SUPERCILEX in #1245
b344f95 (uncategorized) Only apply style to first line when rendering a
Line
by @joshka in #12477ddfbc0 (uncategorized) Unnecessary allocations when creating Lines by @SUPERCILEX in #1237
84f3341 (uncategorized) Clippy lints from rust 1.80.0 by @joshka in #1238
Refactor
bb68bc6 (backend) Return
Size
fromBackend::size
instead ofRect
by @EdJoPaTo in #1254 [breaking]Configuration
📅 Schedule: Branch creation - "before 8am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.