Import modified reflow from ratatui

This was recommended by the ratatui maintainer, as this API is more likely to
be deprecated than made public
This commit is contained in:
2023-11-03 09:37:41 +01:00
parent fe676cacda
commit aaa4297d4c
4 changed files with 628 additions and 6 deletions

View File

@ -6,6 +6,7 @@ rust-version = "1.73"
description = "A TUI Matrix client designed to be as customisable and ergonomic as an IRC client"
repository = "https://git.tf/val/ratatrix"
authors = ["Val Lorentz"]
license = "AGPL-3.0-only AND MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -65,14 +66,11 @@ tui-textarea = "0.3.0"
unicode-width = "0.1"
[patch.crates-io]
# we need these changes:
# * 'make widgets::reflow public' https://github.com/ratatui-org/ratatui/pull/607
# * 'define struct WrappedLine instead of anonymous tuple' https://github.com/ratatui-org/ratatui/pull/608
ratatui = { git = "https://github.com/progval/ratatui.git", rev = "54a3923b9d5f37da848dbc32a2ffb4eeb4f47490", features = ["serde", "macros"] }
#ratatui = { path = "../ratatui", features = ["serde", "macros"] }
[dev-dependencies]
pretty_assertions = "1.4.0"
unicode-segmentation = "1.10"
[profile.release]
lto = "thin"