0.21.0
This marks the next big release of ratatui
, a community-maintained fork of tui.
A bunch of new features are added and we also worked on improving the current widgets for better functionality and usability. We are also happy to share that most of the pending pull-requests from tui-rs
are now reviewed and merged!
Here is a blog post outlining the new features that stand out and giving usage examples: https://blog.orhun.dev/ratatui-0-21-0
Features
- (backend) Add termwiz backend and example (#5)
- (block) Support placing the title on bottom (#36)
- (border) Add border! macro for easy bitflag manipulation (#11)
- (calendar) Add calendar widget (#138)
- (color) Add
FromStr
implementation forColor
(#180) - (list) Add len() to List (#24)
- (paragraph) Allow Lines to be individually aligned (#149)
- (sparkline) Finish #1 Sparkline directions PR (#134)
- (terminal) Add inline viewport (#114) [breaking]
- (test) Expose test buffer (#160)
- (text) Add
Masked
to display secure data (#168) [breaking] - (widget) Add circle widget (#159)
- (widget) Add style methods to Span, Spans, Text (#148)
- (widget) Support adding padding to Block (#20)
- (widget) Add offset() and offset_mut() for table and list state (#12)
Bug Fixes
- (canvas) Use full block for Marker::Block (#133) [breaking]
- (example) Update input in examples to only use press events (#129)
- (uncategorized) Cleanup doc example (#145)
- (reflow) Remove debug macro call (#198)
Refactor
- (example) Remove redundant
vec![]
inuser_input
example (#26) - (example) Refactor paragraph example (#152)
- (style) Mark some Style fns const so they can be defined globally (#115)
- (text) Replace
Spans
withLine
(#178)
Documentation
- (apps) Fix rsadsb/adsb_deku radar link (#140)
- (apps) Add tenere (#141)
- (apps) Add twitch-tui (#124)
- (apps) Add oxycards (#113)
- (apps) Re-add trippy to APPS.md (#117)
- (block) Add example for block.inner (#158)
- (changelog) Update the empty profile link in contributors (#112)
- (readme) Fix small typo in readme (#186)
- (readme) Add termwiz demo to examples (#183)
- (readme) Add acknowledgement section (#154)
- (readme) Update project description (#127)
- (uncategorized) Scrape example code from examples/* (#195)
Styling
- (apps) Update the style of application list (#184)
- (readme) Update project introduction in README.md (#153)
- (uncategorized) Clippy's variable inlining in format macros
Testing
- (buffer) Add
assert_buffer_eq!
and Debug implementation (#161) - (list) Add characterization tests for list (#167)
- (widget) Add unit tests for Paragraph (#156)
Miscellaneous Tasks
Build
- (uncategorized) Bump MSRV to 1.65.0 (#171)
Continuous Integration
- (uncategorized) Add ci, build, and revert to allowed commit types
Contributors
Thank you so much to everyone that contributed to this release!
Here is the list of contributors who has contributed to ratatui
for the first time!
- @kpcyrd
- @fujiapple852
- @BrookJeynes
- @Ziqi-Yang
- @Xithrius
- @lesleyrs
- @pythops
- @wcampbell0x2a
- @sophacles
- @Eyesonjune18
- @a-kenji
- @TimerErTim
- @Mehrbod2002
- @thomas-mauran
- @nyurik
Big thanks to @joshka for his great efforts on development and maintenance for this release.
And once again, special thanks to Florian Dehau for creating this awesome library 💖 We don't see how this would be possible without him in the first place.
Feel free to join our Discord for more discussion!