[PR #400] [CLOSED] Bump tui from 0.8.0 to 0.9.0 #802

Closed
opened 2026-02-28 14:53:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/400
Author: @dependabot-preview[bot]
Created: 4/15/2020
Status: Closed

Base: masterHead: dependabot/cargo/tui-0.9.0


📝 Commits (1)

  • fcfef0b Bump tui from 0.8.0 to 0.9.0

📊 Changes

2 files changed (+17 additions, -34 deletions)

View changed files

📝 Cargo.lock (+16 -33)
📝 Cargo.toml (+1 -1)

📄 Description

Bumps tui from 0.8.0 to 0.9.0.

Release notes

Sourced from tui's releases.

v0.9.0

Features

  • Introduce stateful widgets, i.e widgets that can take advantage of keeping some state around between two draw calls (#210 goes a bit more into the details).
  • Allow a Table row to be selected.
// State initialization
let mut state = TableState::default();

// In the terminal.draw closure let header = ["Col1", "Col2", "Col"]; let rows = [ Row::Data(["Row11", "Row12", "Row13"].into_iter()) ]; let table = Table::new(header.into_iter(), rows.into_iter()); f.render_stateful_widget(table, area, &mut state);

// In response to some event: state.select(Some(1));

  • Add a way to choose the type of border used to draw a block. You can now choose from plain, rounded, double and thick lines.
  • Add a graph_type property on the Dataset of a Chart widget. By default it will be Scatter where the points are drawn as is. An other option is Line where a line will be draw between each consecutive points of the dataset.
  • Style methods are now const, allowing you to initialize const Style objects.
  • Improve control over whether the legend in the Chart widget is shown or not. You can now set custom constraints using Chart::hidden_legend_constraints.
  • Add Table::header_gap to add some space between the header and the first row.
  • Remove log from the dependencies
  • Add a way to use a restricted set of unicode symbols in several widgets to improve portability in exchange of a degraded output. (see BarChart::bar_set, Sparkline::bar_set and Canvas::marker). You can check how the --enhanced-graphics flag is used in the demos.

Breaking Changes

  • Widget::render has been deleted. You should now use Frame::render_widget to render a widget on the corresponding Frame. This makes the Widget implementation totally decoupled from the Frame.
// Before
Block::default().render(&mut f, size);

// After let block = Block::default(); f.render_widget(block, size);

  • Widget::draw has been renamed to Widget::render and the signature has been updated to reflect that widgets are consumable objects. Thus the method takes self instead of &mut self.
// Before
impl Widget for MyWidget {
  fn draw(&mut self, area: Rect, buf: &mut Buffer) {
  }
}

/// After impl Widget for MyWidget { fn render(self, arera: Rect, buf: &mut Buffer) { </tr></table> ... (truncated)

Changelog

Sourced from tui's changelog.

v0.9.0 - 2020-04-14

Features

  • Introduce stateful widgets, i.e widgets that can take advantage of keeping some state around between two draw calls (#210 goes a bit more into the details).
  • Allow a Table row to be selected.
// State initialization
let mut state = TableState::default();

// In the terminal.draw closure let header = ["Col1", "Col2", "Col"]; let rows = [ Row::Data(["Row11", "Row12", "Row13"].into_iter()) ]; let table = Table::new(header.into_iter(), rows.into_iter()); f.render_stateful_widget(table, area, &mut state);

// In response to some event: state.select(Some(1));

  • Add a way to choose the type of border used to draw a block. You can now choose from plain, rounded, double and thick lines.
  • Add a graph_type property on the Dataset of a Chart widget. By default it will be Scatter where the points are drawn as is. An other option is Line where a line will be draw between each consecutive points of the dataset.
  • Style methods are now const, allowing you to initialize const Style objects.
  • Improve control over whether the legend in the Chart widget is shown or not. You can now set custom constraints using Chart::hidden_legend_constraints.
  • Add Table::header_gap to add some space between the header and the first row.
  • Remove log from the dependencies
  • Add a way to use a restricted set of unicode symbols in several widgets to improve portability in exchange of a degraded output. (see BarChart::bar_set, Sparkline::bar_set and Canvas::marker). You can check how the --enhanced-graphics flag is used in the demos.

Breaking Changes

  • Widget::render has been deleted. You should now use Frame::render_widget to render a widget on the corresponding Frame. This makes the Widget implementation totally decoupled from the Frame.
// Before
Block::default().render(&mut f, size);
</tr></table> ... (truncated)
Commits
  • 8debb0d Release v0.9.0
  • bc2a512 feat: add missing Clone and Copy on types
  • 4f728d3 fix(widgets/list): stop highlighting blank placeholders
  • e81af75 fix(examples): improve input handling in crossterm demo
  • 8387b32 chore: update changelog
  • 2fccee7 chore: add command to README to run demos without all unicode symbols
  • c98002e feat: add an option to run the examples without all unicode symbols
  • 584e1b0 refactor(widgets/canvas): allow canvas to render with a simple dot character ...
  • cee65ed feat: allow BarChart and Sparkline to use a more portable set of symbols
  • 8104b17 chore: bump crossterm to 0.17
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/400 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 4/15/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/tui-0.9.0` --- ### 📝 Commits (1) - [`fcfef0b`](https://github.com/Rigellute/spotify-tui/commit/fcfef0b35e6b36a1cab6d20f52b03d47878e5f16) Bump tui from 0.8.0 to 0.9.0 ### 📊 Changes **2 files changed** (+17 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+16 -33) 📝 `Cargo.toml` (+1 -1) </details> ### 📄 Description Bumps [tui](https://github.com/fdehau/tui-rs) from 0.8.0 to 0.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/fdehau/tui-rs/releases">tui's releases</a>.</em></p> <blockquote> <h2>v0.9.0</h2> <h3>Features</h3> <ul> <li>Introduce stateful widgets, i.e widgets that can take advantage of keeping some state around between two draw calls (<a href="https://github-redirect.dependabot.com/fdehau/tui-rs/issues/210">#210</a> goes a bit more into the details).</li> <li>Allow a <code>Table</code> row to be selected.</li> </ul> <pre lang="rust"><code>// State initialization let mut state = TableState::default(); <p>// In the terminal.draw closure let header = [&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col&quot;]; let rows = [ Row::Data([&quot;Row11&quot;, &quot;Row12&quot;, &quot;Row13&quot;].into_iter()) ]; let table = Table::new(header.into_iter(), rows.into_iter()); f.render_stateful_widget(table, area, &amp;mut state);</p> <p>// In response to some event: state.select(Some(1)); </code></pre></p> <ul> <li>Add a way to choose the type of border used to draw a block. You can now choose from plain, rounded, double and thick lines.</li> <li>Add a <code>graph_type</code> property on the <code>Dataset</code> of a <code>Chart</code> widget. By default it will be <code>Scatter</code> where the points are drawn as is. An other option is <code>Line</code> where a line will be draw between each consecutive points of the dataset.</li> <li>Style methods are now const, allowing you to initialize const <code>Style</code> objects.</li> <li>Improve control over whether the legend in the <code>Chart</code> widget is shown or not. You can now set custom constraints using <code>Chart::hidden_legend_constraints</code>.</li> <li>Add <code>Table::header_gap</code> to add some space between the header and the first row.</li> <li>Remove <code>log</code> from the dependencies</li> <li>Add a way to use a restricted set of unicode symbols in several widgets to improve portability in exchange of a degraded output. (see <code>BarChart::bar_set</code>, <code>Sparkline::bar_set</code> and <code>Canvas::marker</code>). You can check how the <code>--enhanced-graphics</code> flag is used in the demos.</li> </ul> <h3>Breaking Changes</h3> <ul> <li><code>Widget::render</code> has been deleted. You should now use <code>Frame::render_widget</code> to render a widget on the corresponding <code>Frame</code>. This makes the <code>Widget</code> implementation totally decoupled from the <code>Frame</code>.</li> </ul> <pre lang="rust"><code>// Before Block::default().render(&amp;mut f, size); <p>// After let block = Block::default(); f.render_widget(block, size); </code></pre></p> <ul> <li><code>Widget::draw</code> has been renamed to <code>Widget::render</code> and the signature has been updated to reflect that widgets are consumable objects. Thus the method takes <code>self</code> instead of <code>&amp;mut self</code>.</li> </ul> <pre lang="rust"><code>// Before impl Widget for MyWidget { fn draw(&amp;mut self, area: Rect, buf: &amp;mut Buffer) { } } <p>/// After impl Widget for MyWidget { fn render(self, arera: Rect, buf: &amp;mut Buffer) { &lt;/tr&gt;&lt;/table&gt; ... (truncated) </code></pre></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/fdehau/tui-rs/blob/master/CHANGELOG.md">tui's changelog</a>.</em></p> <blockquote> <h2>v0.9.0 - 2020-04-14</h2> <h3>Features</h3> <ul> <li>Introduce stateful widgets, i.e widgets that can take advantage of keeping some state around between two draw calls (<a href="https://github-redirect.dependabot.com/fdehau/tui-rs/issues/210">#210</a> goes a bit more into the details).</li> <li>Allow a <code>Table</code> row to be selected.</li> </ul> <pre lang="rust"><code>// State initialization let mut state = TableState::default(); <p>// In the terminal.draw closure let header = [&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col&quot;]; let rows = [ Row::Data([&quot;Row11&quot;, &quot;Row12&quot;, &quot;Row13&quot;].into_iter()) ]; let table = Table::new(header.into_iter(), rows.into_iter()); f.render_stateful_widget(table, area, &amp;mut state);</p> <p>// In response to some event: state.select(Some(1)); </code></pre></p> <ul> <li>Add a way to choose the type of border used to draw a block. You can now choose from plain, rounded, double and thick lines.</li> <li>Add a <code>graph_type</code> property on the <code>Dataset</code> of a <code>Chart</code> widget. By default it will be <code>Scatter</code> where the points are drawn as is. An other option is <code>Line</code> where a line will be draw between each consecutive points of the dataset.</li> <li>Style methods are now const, allowing you to initialize const <code>Style</code> objects.</li> <li>Improve control over whether the legend in the <code>Chart</code> widget is shown or not. You can now set custom constraints using <code>Chart::hidden_legend_constraints</code>.</li> <li>Add <code>Table::header_gap</code> to add some space between the header and the first row.</li> <li>Remove <code>log</code> from the dependencies</li> <li>Add a way to use a restricted set of unicode symbols in several widgets to improve portability in exchange of a degraded output. (see <code>BarChart::bar_set</code>, <code>Sparkline::bar_set</code> and <code>Canvas::marker</code>). You can check how the <code>--enhanced-graphics</code> flag is used in the demos.</li> </ul> <h3>Breaking Changes</h3> <ul> <li><code>Widget::render</code> has been deleted. You should now use <code>Frame::render_widget</code> to render a widget on the corresponding <code>Frame</code>. This makes the <code>Widget</code> implementation totally decoupled from the <code>Frame</code>.</li> </ul> <pre lang="rust"><code>// Before Block::default().render(&amp;mut f, size); &lt;/tr&gt;&lt;/table&gt; ... (truncated) </code></pre> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/fdehau/tui-rs/commit/8debb0d338ae7c9b4810e3ce7d35e6c1e69fbad4"><code>8debb0d</code></a> Release v0.9.0</li> <li><a href="https://github.com/fdehau/tui-rs/commit/bc2a5121018f33eee9347dab4c1cbdb3622654fa"><code>bc2a512</code></a> feat: add missing <code>Clone</code> and <code>Copy</code> on types</li> <li><a href="https://github.com/fdehau/tui-rs/commit/4f728d363f0be75f844f39b2fa2705e7b4373953"><code>4f728d3</code></a> fix(widgets/list): stop highlighting blank placeholders</li> <li><a href="https://github.com/fdehau/tui-rs/commit/e81af75427d3d62466c33ef5471ebc6f1969a038"><code>e81af75</code></a> fix(examples): improve input handling in crossterm demo</li> <li><a href="https://github.com/fdehau/tui-rs/commit/8387b32bb87240cd617da3e7e7846a8b1d340cc8"><code>8387b32</code></a> chore: update changelog</li> <li><a href="https://github.com/fdehau/tui-rs/commit/2fccee740b1e8394751c7e95952dcb71fe6b3c4d"><code>2fccee7</code></a> chore: add command to README to run demos without all unicode symbols</li> <li><a href="https://github.com/fdehau/tui-rs/commit/c98002eb76951c925c04b61e8103658b8ef8f4db"><code>c98002e</code></a> feat: add an option to run the examples without all unicode symbols</li> <li><a href="https://github.com/fdehau/tui-rs/commit/584e1b05007245fa333ad4bff5924f8eead744d1"><code>584e1b0</code></a> refactor(widgets/canvas): allow canvas to render with a simple dot character ...</li> <li><a href="https://github.com/fdehau/tui-rs/commit/cee65ed2833dab66625f9f30593ae870f98e3ccf"><code>cee65ed</code></a> feat: allow BarChart and Sparkline to use a more portable set of symbols</li> <li><a href="https://github.com/fdehau/tui-rs/commit/8104b17ee6affa0d38f27b661e751d91df43cc8b"><code>8104b17</code></a> chore: bump crossterm to 0.17</li> <li>Additional commits viewable in <a href="https://github.com/fdehau/tui-rs/compare/v0.8.0...v0.9.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=tui&package-manager=cargo&previous-version=0.8.0&new-version=0.9.0)](https://dependabot.com/compatibility-score/?dependency-name=tui&package-manager=cargo&previous-version=0.8.0&new-version=0.9.0) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:53:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#802
No description provided.