Skip to main content

max / quasi

Cap a run in the terminal and in egui, so a row is a line again Settles 7bfb554a: Flow::Tight is a cap and not a default reading. A row is an inline run and the rows around it are relying on that, so a part that grows without bound is a block wearing a run's clothes. Both renderers gave a row as many lines as the words needed. quasi-tui now gives it row_lines(row) -- the max of its parts' budgets, because parts here share one wrapped flow rather than stacking the way a webview's spans do, so a part asking for two lines is asking the run for a second line. quasi-immediate puts a text leaf through a LayoutJob with max_rows, which is the only way egui counts rows; max_width comes off the Ui, or a job stays infinitely wide and the budget silently does nothing. Both mark what they cut. The webview never had to: -webkit-line-clamp writes the ellipsis itself. The terminal spends the last cell of the last allowed line on it, and egui gets it from overflow_character. What this changes for a consumer: audiofiles is the one shipping app rendering described rows through egui, and a filename too long for the pane now elides on one line rather than wrapping onto three. That is the intended reading of a row. 0.22.0 rather than a patch. Nothing in the API moved, but every described list in a terminal or an egui pane draws differently, and the pin is how a consumer records which side of that it was written against.
Author: Max Johnson <me@maxj.phd> · 2026-08-18 00:02 UTC
Signed with PGP, not checked
Commit: 1c5d35a51a4e2dd3c580ce97f279d3d7d0eacec3
Parent: 061ea51
15 files changed, +217 insertions, -54 deletions
M Cargo.lock +14 -14
@@ -3100,11 +3100,11 @@
3100 3100
3101 3101 [[package]]
3102 3102 name = "quasi"
3103 - version = "0.21.0"
3103 + version = "0.22.0"
3104 3104
3105 3105 [[package]]
3106 3106 name = "quasi-axum"
3107 - version = "0.21.0"
3107 + version = "0.22.0"
3108 3108 dependencies = [
3109 3109 "axum",
3110 3110 "http",
@@ -3118,7 +3118,7 @@
3118 3118
3119 3119 [[package]]
3120 3120 name = "quasi-basics"
3121 - version = "0.21.0"
3121 + version = "0.22.0"
3122 3122 dependencies = [
3123 3123 "makeover-layout",
3124 3124 "quasi-http",
@@ -3128,7 +3128,7 @@
3128 3128
3129 3129 [[package]]
3130 3130 name = "quasi-bench"
3131 - version = "0.21.0"
3131 + version = "0.22.0"
3132 3132 dependencies = [
3133 3133 "dhat",
3134 3134 "makeover",
@@ -3143,7 +3143,7 @@
3143 3143
3144 3144 [[package]]
3145 3145 name = "quasi-http"
3146 - version = "0.21.0"
3146 + version = "0.22.0"
3147 3147 dependencies = [
3148 3148 "form_urlencoded",
3149 3149 "http",
@@ -3152,7 +3152,7 @@
3152 3152
3153 3153 [[package]]
3154 3154 name = "quasi-immediate"
3155 - version = "0.21.0"
3155 + version = "0.22.0"
3156 3156 dependencies = [
3157 3157 "docengine",
3158 3158 "egui",
@@ -3162,7 +3162,7 @@
3162 3162
3163 3163 [[package]]
3164 3164 name = "quasi-router"
3165 - version = "0.21.0"
3165 + version = "0.22.0"
3166 3166 dependencies = [
3167 3167 "makeover-layout",
3168 3168 ]
@@ -3179,7 +3179,7 @@
3179 3179
3180 3180 [[package]]
3181 3181 name = "quasi-tauri"
3182 - version = "0.21.0"
3182 + version = "0.22.0"
3183 3183 dependencies = [
3184 3184 "http",
3185 3185 "quasi-http",
@@ -3190,7 +3190,7 @@
3190 3190
3191 3191 [[package]]
3192 3192 name = "quasi-tui"
3193 - version = "0.21.0"
3193 + version = "0.22.0"
3194 3194 dependencies = [
3195 3195 "docengine",
3196 3196 "makeover",
@@ -3202,7 +3202,7 @@
3202 3202
3203 3203 [[package]]
3204 3204 name = "quasi-webview"
3205 - version = "0.21.0"
3205 + version = "0.22.0"
3206 3206 dependencies = [
3207 3207 "docengine",
3208 3208 "makeover-layout",
@@ -5640,6 +5640,10 @@
5640 5640 name = "synckit-config"
5641 5641 version = "0.2.0"
5642 5642
5643 + [[patch.unused]]
5644 + name = "quasi-type"
5645 + version = "0.1.0"
5646 +
5643 5647 [[patch.unused]]
5644 5648 name = "kberg"
5645 5649 version = "0.1.0"
@@ -5655,7 +5659,3 @@
5655 5659 [[patch.unused]]
5656 5660 name = "tagtree"
5657 5661 version = "0.4.0"
5658 -
5659 - [[patch.unused]]
5660 - name = "quasi-type"
5661 - version = "0.1.0"
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-axum"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 description = "The axum host adapter for quasi-router: an HTTP request in, a rendered description out"
5 5 edition.workspace = true
6 6 rust-version.workspace = true
@@ -13,14 +13,14 @@
13 13 workspace = true
14 14
15 15 [dependencies]
16 - quasi-router = { path = "../quasi-router", version = "0.21.0" }
17 - quasi-http = { path = "../quasi-http", version = "0.21.0" }
16 + quasi-router = { path = "../quasi-router", version = "0.22.0" }
17 + quasi-http = { path = "../quasi-http", version = "0.22.0" }
18 18 axum = "0.8.8"
19 19 http = "1.3.1"
20 20 tokio = { version = "1.50.0", features = ["rt"] }
21 21
22 22 [dev-dependencies]
23 - quasi-webview = { path = "../quasi-webview", version = "0.21.0" }
23 + quasi-webview = { path = "../quasi-webview", version = "0.22.0" }
24 24 tokio = { version = "1.50.0", features = ["macros", "rt-multi-thread"] }
25 25 tower = { version = "0.5.3", features = ["util"] }
26 26 http-body-util = "0.1.3"
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-basics"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 description = "The first-party widget set: named assemblies of primitives, shared across our apps"
5 5 edition.workspace = true
6 6 rust-version.workspace = true
@@ -13,12 +13,12 @@
13 13 workspace = true
14 14
15 15 [dependencies]
16 - quasi-router = { path = "../quasi-router", version = "0.21.0" }
16 + quasi-router = { path = "../quasi-router", version = "0.22.0" }
17 17 makeover-layout = "0.28.1"
18 18
19 19 [dev-dependencies]
20 20 # A widget's guarantees are claims about what a renderer draws, so they are
21 21 # tested against a real one rather than by walking the tree the assembly just
22 22 # built. The webview is the renderer that recognises names today.
23 - quasi-webview = { path = "../quasi-webview", version = "0.21.0" }
24 - quasi-http = { path = "../quasi-http", version = "0.21.0" }
23 + quasi-webview = { path = "../quasi-webview", version = "0.22.0" }
24 + quasi-http = { path = "../quasi-http", version = "0.22.0" }
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-bench"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 description = "What a described screen costs to render, in time and in allocations"
5 5 edition.workspace = true
6 6 rust-version.workspace = true
@@ -22,13 +22,13 @@
22 22 count = ["dep:dhat"]
23 23
24 24 [dependencies]
25 - quasi-router = { path = "../quasi-router", version = "0.21.0" }
26 - quasi-webview = { path = "../quasi-webview", version = "0.21.0" }
27 - quasi-tui = { path = "../quasi-tui", version = "0.21.0" }
25 + quasi-router = { path = "../quasi-router", version = "0.22.0" }
26 + quasi-webview = { path = "../quasi-webview", version = "0.22.0" }
27 + quasi-tui = { path = "../quasi-tui", version = "0.22.0" }
28 28 # `Serves` is the trait carrying `screen` and `fragment`, which is what the
29 29 # webview is measured through. Taken directly rather than through quasi-webview
30 30 # because a bench calling a trait method should name the trait it calls.
31 - quasi-http = { path = "../quasi-http", version = "0.21.0" }
31 + quasi-http = { path = "../quasi-http", version = "0.22.0" }
32 32 makeover-layout = "0.28.1"
33 33 makeover-tui = { version = "0.27.0", features = ["theme"] }
34 34 # Only to load a bundled theme file. `makeover_tui::Theme` is `#[non_exhaustive]`,
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-http"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 description = "The http-shaped seam quasi's webview host adapters share: decoding in, a rendered description out"
5 5 edition.workspace = true
6 6 rust-version.workspace = true
@@ -13,6 +13,6 @@
13 13 workspace = true
14 14
15 15 [dependencies]
16 - quasi-router = { path = "../quasi-router", version = "0.21.0" }
16 + quasi-router = { path = "../quasi-router", version = "0.22.0" }
17 17 http = "1.3.1"
18 18 form_urlencoded = "1.2.2"
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-immediate"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 edition = "2024"
5 5 description = "The immediate-mode renderer for quasi-router: a described screen in, an egui frame out. Immediate mode is the constraint that matters, not the library."
6 6 license = "MIT"
@@ -12,7 +12,7 @@
12 12 categories = ["gui"]
13 13
14 14 [dependencies]
15 - quasi-router = { path = "../quasi-router", version = "0.21.0" }
15 + quasi-router = { path = "../quasi-router", version = "0.22.0" }
16 16 # The node drawing, which is the makeover layer's and not this crate's. Every
17 17 # widget here that is not a container comes from it: a screen walk that painted
18 18 # its own meter would be the divergence the suite exists to end, one copy per
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-router"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 description = "Host-agnostic router: a request in, a renderer-agnostic description out"
5 5 edition.workspace = true
6 6 rust-version.workspace = true
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "quasi-tauri"
3 - version = "0.21.0"
3 + version = "0.22.0"
4 4 description = "The Tauri custom-protocol host adapter for quasi-router: a webview request in, a rendered description out"
5 5 edition.workspace = true
6 6 rust-version.workspace = true
@@ -13,8 +13,8 @@
13 13 workspace = true
14 14
15 15 [dependencies]
16 - quasi-router = { path = "../quasi-router", version = "0.21.0" }
17 - quasi-http = { path = "../quasi-http", version = "0.21.0" }
16 + quasi-router = { path = "../quasi-router", version = "0.22.0" }
17 + quasi-http = { path = "../quasi-http", version = "0.22.0" }
18 18 http = "1.3.1"
19 19 # Default features off: this crate uses tauri's protocol registration and its
20 20 # blocking pool, and nothing else. An app brings the features it wants, and the
@@ -22,7 +22,7 @@
22 22 tauri = { version = "2.11.5", default-features = false }
23 23
24 24 [dev-dependencies]
25 - quasi-webview = { path = "../quasi-webview", version = "0.21.0" }
25 + quasi-webview = { path = "../quasi-webview", version = "0.22.0" }
26 26 # The doctest names a concrete `Runtime`, and `Wry` is behind a default feature
27 27 # this crate does not otherwise ask for. Only the example needs it: nothing in
28 28 # the test module builds a window, which is what keeps them runnable with no