Skip to main content

max / makeover-webview

Release the forms emitter, on makeover-layout 0.4.0 0.6.0: form.rs became public in 96bea5f and a new module is a minor bump. This is the version goingson needs in order to adopt it, so publishing is what un-parks phase B rather than a housekeeping release. Also moves to makeover-layout 0.4.0, where Fill and Depth became non_exhaustive. That cost one arm here. depth_class matches Depth, so it takes a wildcard returning None, on the same footing as Depth::Flat: a depth this renderer cannot write a rule body for gets no class name, since emitting one would put a class in the markup that the stylesheet never defines.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-30 12:38 UTC
Signed with PGP, not checked
Commit: b34297d1bfc42dd41dba11afa0dd22c844a3832d
Parent: 96bea5f
2 files changed, +7 insertions, -2 deletions
M Cargo.toml +2 -2
@@ -1,13 +1,13 @@
1 1 [package]
2 2 name = "makeover-webview"
3 - version = "0.5.1"
3 + version = "0.6.0"
4 4 edition = "2024"
5 5 description = "The webview renderer for makeover-layout. Emits CSS, and is the one renderer that needs no palette: var() is the late binding, so resolution stays with the browser."
6 6 license = "MIT"
7 7 repository = "https://makenot.work/git/max/makeover-webview"
8 8
9 9 [dependencies]
10 - makeover-layout = "0.3.0"
10 + makeover-layout = "0.4.0"
11 11
12 12 [lints.rust]
13 13 unused = "warn"
M src/lib.rs +5
@@ -172,6 +172,11 @@
172 172 Depth::Raised => "raised",
173 173 Depth::Well => "well",
174 174 Depth::Sunken => "sunken",
175 + // A depth added to the description since this renderer was last
176 + // built. No class, on the same footing as Flat: emitting a name
177 + // whose rule body we cannot write would put a class in the markup
178 + // that the stylesheet never defines.
179 + _ => return None,
175 180 };
176 181 Some(format!("{}{name}", opts.class_prefix))
177 182 }