mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-28 07:30:54 +00:00
17 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Orhun Parmaksız
|
217c57cd60
|
refactor: modularize backends (#1508)
Backend code is now moved to `ratatui-crossterm`, `ratatui-termion` and `ratatui-termwiz`. This should be backwards compatible with existing code. Co-authored-by: Josh McKinney <joshka@users.noreply.github.com> |
||
Ivan Smoliakov
|
afd1ce179b
|
fix(canvas): Lines that start outside the visible grid are now drawn (#1501)
Previously lines with points that were outside the canvas bounds were not drawn at all. Now they are clipped to the bounds of the canvas so that the portion of the line within the canvas is draw. To facilitate this, a new `Painter::bounds()` method which returns the bounds of the canvas is added. Fixes: https://github.com/ratatui/ratatui/issues/1489 |
||
dependabot[bot]
|
9d5aba69e9
|
chore(deps): bump serde from 1.0.214 to 1.0.215 (#1495)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.214 to 1.0.215. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p> <blockquote> <h2>v1.0.215</h2> <ul> <li>Produce warning when multiple fields or variants have the same deserialization name (<a href="https://redirect.github.com/serde-rs/serde/issues/2855">#2855</a>, <a href="https://redirect.github.com/serde-rs/serde/issues/2856">#2856</a>, <a href="https://redirect.github.com/serde-rs/serde/issues/2857">#2857</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
1b0d6b473b
|
chore(deps): bump clap from 4.5.20 to 4.5.21 (#1496)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.20 to 4.5.21. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.5.21</h2> <h2>[4.5.21] - 2024-11-13</h2> <h3>Fixes</h3> <ul> <li><em>(parser)</em> Ensure defaults are filled in on error with <code>ignore_errors(true)</code></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.5.21] - 2024-11-13</h2> <h3>Fixes</h3> <ul> <li><em>(parser)</em> Ensure defaults are filled in on error with <code>ignore_errors(true)</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
c8339494a8
|
chore(deps): bump clap-verbosity-flag from 2.2.2 to 2.2.3 (#1494)
Bumps [clap-verbosity-flag](https://github.com/clap-rs/clap-verbosity-flag) from 2.2.2 to 2.2.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap-verbosity-flag/blob/master/CHANGELOG.md">clap-verbosity-flag's changelog</a>.</em></p> <blockquote> <h2>[2.2.3] - 2024-11-16</h2> <h3>Features</h3> <ul> <li>Add <code>DebugLevel</code> and <code>TraceLevel</code> for exploratory programming</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
3ef1face9a
|
chore(deps): bump octocrab from 0.41.2 to 0.42.0 (#1498)
Bumps [octocrab](https://github.com/XAMPPRocky/octocrab) from 0.41.2 to 0.42.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/XAMPPRocky/octocrab/releases">octocrab's releases</a>.</em></p> <blockquote> <h2>v0.42.0</h2> <h3>Added</h3> <ul> <li>added ssh_signing_keys ops (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/725">#725</a>)</li> </ul> <h3>Other</h3> <ul> <li>Secrets and Code scanning alerts API (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/730">#730</a>)</li> <li>add support for custom executors (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/728">#728</a>)</li> <li>Fixup route in api/issues/update (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/732">#732</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/XAMPPRocky/octocrab/blob/main/CHANGELOG.md">octocrab's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/XAMPPRocky/octocrab/compare/v0.41.2...v0.42.0">0.42.0</a> - 2024-11-13</h2> <h3>Added</h3> <ul> <li>added ssh_signing_keys ops (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/725">#725</a>)</li> </ul> <h3>Other</h3> <ul> <li>Secrets and Code scanning alerts API (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/730">#730</a>)</li> <li>add support for custom executors (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/728">#728</a>)</li> <li>Fixup route in api/issues/update (<a href="https://redirect.github.com/XAMPPRocky/octocrab/pull/732">#732</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
1bb41e7165
|
chore(deps): bump instability from 0.3.2 to 0.3.3 (#1497)
Bumps [instability](https://github.com/ratatui-org/instability) from 0.3.2 to 0.3.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ratatui-org/instability/releases">instability's releases</a>.</em></p> <blockquote> <h2>instability-v0.3.3</h2> <h3>Added</h3> <ul> <li>add stable macro (<a href="https://redirect.github.com/ratatui/instability/pull/14">#14</a>)</li> <li>use doc(cfg)</li> </ul> <h3>Fixed</h3> <ul> <li>tests (<a href="https://redirect.github.com/ratatui/instability/pull/13">#13</a>)</li> <li>change master to main in lib.rs</li> </ul> <h3>Other</h3> <ul> <li>bump msrv to 1.63</li> <li>use proc_macro2 and add tests</li> <li>use darling instead of manual parsing for better error messages on attributes</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/ratatui/instability/blob/main/CHANGELOG.md">instability's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/ratatui/instability/compare/instability-v0.3.2...instability-v0.3.3">0.3.3</a> - 2024-11-12</h2> <h3>Added</h3> <ul> <li>add stable macro (<a href="https://redirect.github.com/ratatui/instability/pull/14">#14</a>)</li> <li>use doc(cfg)</li> </ul> <h3>Fixed</h3> <ul> <li>tests (<a href="https://redirect.github.com/ratatui/instability/pull/13">#13</a>)</li> <li>change master to main in lib.rs</li> </ul> <h3>Other</h3> <ul> <li>bump msrv to 1.63</li> <li>use proc_macro2 and add tests</li> <li>use darling instead of manual parsing for better error messages on attributes</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
Josh McKinney
|
a41c97b413
|
chore: move unstable widget refs to ratatui (#1491)
These are less stable than the non-ref traits as we have not yet committed to the exact API. This change moves them to ratatui from ratatui-core. To facilitate this: - implementations of WidgetRef for all internal widgets are removed and replaced with implementations of Widget for references to those widgets. - Widget is now implemented for Option<W> where W: Widget, allowing for rendering of optional widgets. - The blanket implementation of Widget for WidgetRef is reversed, to be a blanket implementation of WidgetRef for all &W where W: Widget. BREAKING CHANGE: implementations of WidgetRef no longer have a blanket implementation of Widget, so Widgets should generally implement the Widget trait on a reference to the widget rather than implementing WidgetRef directly. This has the advantage of not requiring unstable features to be enabled. Part of: https://github.com/ratatui/ratatui/issues/1388 Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com> |
||
Orhun Parmaksız
|
46902f5587
|
docs: improve docs for workspace crates (#1490)
Overall makes improvements in the documentation of the workspace crates and checking them. |
||
Josh McKinney
|
e7085e3a3e
|
chore: move widgets into ratatui-widgets crate (#1474)
All the widgets now live in their own ratatui-widgets crate, but are re-exported in the main ratatui crate. This makes it easier to use portions of the ratatui library and is part of the effort to modularize Part of: #1388 --------- Co-authored-by: Orhun Parmaksız <orhun@archlinux.org> Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com> |
||
dependabot[bot]
|
02c8c9373e
|
chore(deps): bump unicode-truncate from 1.1.0 to 2.0.0 (#1481)
Bumps [unicode-truncate](https://github.com/Aetf/unicode-truncate) from 1.1.0 to 2.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Aetf/unicode-truncate/releases">unicode-truncate's releases</a>.</em></p> <blockquote> <h2>v2.0.0</h2> <h3>Fixed</h3> <ul> <li><em>(deps)</em> update rust crate unicode-width to 0.2</li> </ul> <h3>Other</h3> <ul> <li>make release-plz use github app token</li> <li>[<strong>breaking</strong>] bump MSRV to 1.66</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Aetf/unicode-truncate/blob/master/CHANGELOG.md">unicode-truncate's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/Aetf/unicode-truncate/compare/v1.1.0...v2.0.0">2.0.0</a> - 2024-11-10</h2> <h3>Fixed</h3> <ul> <li><em>(deps)</em> update rust crate unicode-width to 0.2</li> </ul> <h3>Other</h3> <ul> <li>make release-plz use github app token</li> <li>[<strong>breaking</strong>] bump MSRV to 1.66</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
f40fa787d1
|
chore(deps): bump tokio from 1.40.0 to 1.41.1 (#1482)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.40.0 to 1.41.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/tokio/releases">tokio's releases</a>.</em></p> <blockquote> <h2>Tokio v1.41.1</h2> <h1>1.41.1 (Nov 7th, 2024)</h1> <h3>Fixed</h3> <ul> <li>metrics: fix bug with wrong number of buckets for the histogram (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6957">#6957</a>)</li> <li>net: display <code>net</code> requirement for <code>net::UdpSocket</code> in docs (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6938">#6938</a>)</li> <li>net: fix typo in <code>TcpStream</code> internal comment (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6944">#6944</a>)</li> </ul> <p><a href="https://redirect.github.com/tokio-rs/tokio/issues/6957">#6957</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/6957">tokio-rs/tokio#6957</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/6938">#6938</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/6938">tokio-rs/tokio#6938</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/6944">#6944</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/6944">tokio-rs/tokio#6944</a></p> <h2>Tokio v1.41.0</h2> <h1>1.41.0 (Oct 22th, 2024)</h1> <h3>Added</h3> <ul> <li>metrics: stabilize <code>global_queue_depth</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6854">#6854</a>, <a href="https://redirect.github.com/tokio-rs/tokio/issues/6918">#6918</a>)</li> <li>net: add conversions for unix <code>SocketAddr</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6868">#6868</a>)</li> <li>sync: add <code>watch::Sender::sender_count</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6836">#6836</a>)</li> <li>sync: add <code>mpsc::Receiver::blocking_recv_many</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6867">#6867</a>)</li> <li>task: stabilize <code>Id</code> apis (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6793">#6793</a>, <a href="https://redirect.github.com/tokio-rs/tokio/issues/6891">#6891</a>)</li> </ul> <h3>Added (unstable)</h3> <ul> <li>metrics: add H2 Histogram option to improve histogram granularity (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6897">#6897</a>)</li> <li>metrics: rename some histogram apis (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6924">#6924</a>)</li> <li>runtime: add <code>LocalRuntime</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6808">#6808</a>)</li> </ul> <h3>Changed</h3> <ul> <li>runtime: box futures larger than 16k on release mode (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6826">#6826</a>)</li> <li>sync: add <code>#[must_use]</code> to <code>Notified</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6828">#6828</a>)</li> <li>sync: make <code>watch</code> cooperative (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6846">#6846</a>)</li> <li>sync: make <code>broadcast::Receiver</code> cooperative (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6870">#6870</a>)</li> <li>task: add task size to tracing instrumentation (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6881">#6881</a>)</li> <li>wasm: enable <code>cfg_fs</code> for <code>wasi</code> target (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6822">#6822</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>net: fix regression of abstract socket path in unix socket (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6838">#6838</a>)</li> </ul> <h3>Documented</h3> <ul> <li>io: recommend <code>OwnedFd</code> with <code>AsyncFd</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6821">#6821</a>)</li> <li>io: document cancel safety of <code>AsyncFd</code> methods (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6890">#6890</a>)</li> <li>macros: render more comprehensible documentation for <code>join</code> and <code>try_join</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6814">#6814</a>, <a href="https://redirect.github.com/tokio-rs/tokio/issues/6841">#6841</a>)</li> <li>net: fix swapped examples for <code>TcpSocket::set_nodelay</code> and <code>TcpSocket::nodelay</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6840">#6840</a>)</li> <li>sync: document runtime compatibility (<a href="https://redirect.github.com/tokio-rs/tokio/issues/6833">#6833</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
Josh McKinney
|
98df774d7f
|
chore(core): move core types to ratatui-core (#1460)
The buffer, layout, style, symbols, text, and the top level of widgets modules are moved to ratatui-core. This is the first step in modularizing the library so that the core types can be used in other projects without the need for the backend / widgets types. This helps reduce the need for updating other crates as often due to semver changes outside of the core types. --------- Co-authored-by: Orhun Parmaksız <orhun@archlinux.org> Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com> |
||
Josh McKinney
|
2ef3583eff
|
chore(ci): replace cargo-make with a custom cargo-xtask (#1461)
This removes the need for cargo-make and replaces it with a custom xtask binary. See <https://github.com/matklad/cargo-xtask> for info. Rearranges the CI workflow to use the new xtask and simplify which workflows that run. --------- Co-authored-by: Orhun Parmaksız <orhun@archlinux.org> |
||
dependabot[bot]
|
836634734f
|
chore(deps): bump serde from 1.0.210 to 1.0.213 (#1455)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.210 to 1.0.213. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p> <blockquote> <h2>v1.0.213</h2> <ul> <li>Fix support for macro-generated <code>with</code> attributes inside a newtype struct (<a href="https://redirect.github.com/serde-rs/serde/issues/2847">#2847</a>)</li> </ul> <h2>v1.0.212</h2> <ul> <li>Fix hygiene of macro-generated local variable accesses in serde(with) wrappers (<a href="https://redirect.github.com/serde-rs/serde/issues/2845">#2845</a>)</li> </ul> <h2>v1.0.211</h2> <ul> <li>Improve error reporting about mismatched signature in <code>with</code> and <code>default</code> attributes (<a href="https://redirect.github.com/serde-rs/serde/issues/2558">#2558</a>, thanks <a href="https://github.com/Mingun"><code>@Mingun</code></a>)</li> <li>Show variant aliases in error message when variant deserialization fails (<a href="https://redirect.github.com/serde-rs/serde/issues/2566">#2566</a>, thanks <a href="https://github.com/Mingun"><code>@Mingun</code></a>)</li> <li>Improve binary size of untagged enum and internally tagged enum deserialization by about 12% (<a href="https://redirect.github.com/serde-rs/serde/issues/2821">#2821</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
Orhun Parmaksız
|
28732176e1
|
chore(release): prepare for 0.29.0 (#1444)
🧀
|
||
Josh McKinney
|
6515097434
|
chore(cargo): check in Cargo.lock (#1434)
When kept up to date, this makes it possible to build any git version with the same versions of crates that were used for any version, without it, you can only use the current versions. This makes bugs in semver compatible code difficult to detect. The Cargo.lock file is not used by downstream consumers of the crate, so it is safe to include it in the repository (and recommended by the Rust docs). See: - https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control - https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html - https://github.com/rust-lang/cargo/issues/8728 Co-authored-by: Orhun Parmaksız <orhun@archlinux.org> |