Skip to content

Commit 0f1ae23

Browse files
authored
huxerui.huxerui 0.4.0 (#826)
* feat(huxerui): 0.4.0 Form A: the upstream manifest gains !src/runtime/profiling.cpp and drops HUXERUI_ENABLE_PROFILING=1, but no build information is restated in the descriptor. The four direct Linux deps and the 36-entry GTK closure are byte-identical to 0.3.0 (target table diffed), so only the version block moves. LICENSE is still MIT and the canonical repo is still HuxerUI/HuxerUI. extensions.autoupdate is declared now: public tag release, stable archive template, no recipe to edit. The official pinned updater (check) found 0.4.0 and computed the same sha256 as two manual downloads; apply generated the shared versions table and the three platform references. No CN mirror yet -- plain-string GLOBAL url per SOP. Verified locally with mcpp 2026.11.15.1 (CI MCPP_VERSION), cold member: huxerui-module -> test result ok. 1 passed; 0 failed (301.36s). Descriptor lint and mcpp xpkg parse pass; audit covers 107 GitHub-direct descriptors. macOS/Windows legs remain CI-authoritative. * fix(autoupdate): find legacy fully-qualified consumers huxerui declares namespace = "huxerui" and the legacy fully-qualified name = "huxerui.huxerui"; consumers write [dependencies.huxerui] huxerui = "...". direct_member and replace_candidate only looked for the declared leaf, so a version bump failed scan with 'no candidate consumer'. Writing the fully-qualified leaf asks mcpp for huxerui.huxerui.huxerui and is refused, so the helper now derives the short leaf for detection, rewriting, the no-member fallback and lock verification. Regression test covers detection and prepare(). * fix(huxerui): use the atomic package name SPEC-001 keeps package.name atomic and puts hierarchy in namespace. The resolved wire key stays huxerui.huxerui (mcpp xpkg parse and mcpp.lock), while the updater now sees huxerui:huxerui and finds huxerui-module. Drop the candidate-helper compatibility change and the design document: the PR changes only the descriptor and its consumer pin.
1 parent 3ee5f08 commit 0f1ae23

2 files changed

Lines changed: 54 additions & 14 deletions

File tree

‎pkgs/h/huxerui.huxerui.lua‎

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
1+
local versions = {
2+
["0.4.0"] = {
3+
url = "https://github.com/HuxerUI/HuxerUI/archive/refs/tags/v0.4.0.tar.gz",
4+
sha256 = "46631651105b4da2fa6651c842ce4d276334b3e06b27f93bb9c26167ec16fc38",
5+
},
6+
}
7+
18
-- huxerui.huxerui — the HuxerUI SDK as a native mcpp module package.
29
--
310
-- Form A: upstream carries its own `mcpp.toml`, so this descriptor declares
411
-- metadata and a download address and nothing else about the build. mcpp's
512
-- default lookup finds `<verdir>/*/mcpp.toml` inside the GitHub tag archive's
6-
-- `HuxerUI-0.3.0/` wrap. `import huxerui;` is upstream's own module interface
7-
-- (`modules/huxerui.cppm`), not one authored here.
13+
-- `HuxerUI-<version>/` wrap. `import huxerui;` is upstream's own module
14+
-- interface (`modules/huxerui.cppm`), not one authored here.
15+
--
16+
-- ── 0.4.0 ─────────────────────────────────────────────────────────────────
17+
--
18+
-- The upstream manifest gains `!src/runtime/profiling.cpp` in `sources` and
19+
-- drops `defines = ["HUXERUI_ENABLE_PROFILING=1"]`; its macOS `[runtime]`
20+
-- framework list grows Contacts/CoreBluetooth/CoreLocation/EventKit/Photos.
21+
-- None of that reaches this descriptor: Form A downloads the tag archive and
22+
-- mcpp reads upstream's own manifest, so no build information is restated
23+
-- here. The four direct Linux dependencies and the 36-entry GTK closure in
24+
-- `xpm.linux.deps` are unchanged -- the v0.4.0 target table was diffed against
25+
-- v0.3.0's and is identical down to every pin. `FlatLightThemeSpec` /
26+
-- `FlatDarkThemeSpec` and `Color`/`Rect` used by the consumer test still
27+
-- exist, so the member only moves its pin.
28+
--
29+
-- 0.4.0 has no CN mirror yet. Per SOP a new version may name the GitHub
30+
-- release directly when the mcpp-res upload is not available; the mirror can
31+
-- be filled in later without touching the version block.
832
--
933
-- ── Two fields deliberately DISAGREE with `mcpp emit xpkg` ────────────────
1034
--
11-
-- Running `mcpp emit xpkg` against the v0.3.0 tag emits `Apache-2.0` and
12-
-- `github.com/Sunrisepeak/HuxerUI`. Both are wrong at the source and are
35+
-- Running `mcpp emit xpkg` against the v0.4.0 tag still emits `Apache-2.0`
36+
-- and `github.com/Sunrisepeak/HuxerUI`. Both are wrong at the source and are
1337
-- corrected here rather than copied:
1438
--
15-
-- * LICENSE in the v0.3.0 tree is the MIT License, verbatim, and the
39+
-- * LICENSE in the v0.4.0 tree is the MIT License, verbatim, and the
1640
-- xim-pkgindex entry for the same SDK has always said MIT. The
1741
-- `license = "Apache-2.0"` line in upstream's mcpp.toml is a typo that
1842
-- seven manifests in that repo share; it is being fixed upstream
@@ -46,10 +70,11 @@
4670
-- So the closure is transcribed here, at PLATFORM level (a per-version
4771
-- `deps` does not take effect -- the same finding compat.eui-neo and
4872
-- compat.glx-runtime record). The 36 entries and their pins are copied
49-
-- verbatim from the v0.3.0 tag's own mcpp.toml, which documents them as the
50-
-- transitive .pc closure of gtk4 + epoxy + libsoup. They are what the
51-
-- package's build compiles against AND what its consumer must have, so no
52-
-- `runtime = { … }` split applies.
73+
-- verbatim from the v0.4.0 tag's own mcpp.toml, which documents them as the
74+
-- transitive .pc closure of gtk4 + epoxy + libsoup. It diffs against v0.3.0
75+
-- only in the prose line above the table; every pin is identical. They are
76+
-- what the package's build compiles against AND what its consumer must have,
77+
-- so no `runtime = { … }` split applies.
5378
--
5479
-- Keeping this list in step with upstream's is manual until mcpp can derive
5580
-- consumer dependencies from the target axis. A missing entry surfaces as
@@ -63,14 +88,26 @@
6388
package = {
6489
spec = "1",
6590
namespace = "huxerui",
66-
-- FULLY-QUALIFIED, per mcpp#278 (INV-NAME). `namespace` plus a bare
67-
-- `name` is the split form, which parses but can never be installed.
68-
name = "huxerui.huxerui",
91+
-- Atomic, per mcpp SPEC-001 §3.2: hierarchy belongs in `namespace`.
92+
-- mcpp reconstructs the wire key `huxerui.huxerui` from the consumer's
93+
-- `[dependencies.huxerui] huxerui = "..."`.
94+
name = "huxerui",
6995
description = "HuxerUI — declarative cross-platform UI framework in C++20 (GTK4 on Linux, Win32/Direct2D, AppKit/Metal)",
7096
licenses = {"MIT"},
7197
repo = "https://github.com/HuxerUI/HuxerUI",
7298
type = "package",
7399

100+
extensions = {
101+
-- Form A carries no build recipe, so a new tag needs nothing but a
102+
-- version block: the daily updater can append it from this template.
103+
-- GitHub only -- the mcpp-res mirror is manual and not declared here,
104+
-- which is allowed for a new version.
105+
autoupdate = {
106+
tag = "v${version}",
107+
url = "https://github.com/HuxerUI/HuxerUI/archive/refs/tags/${tag}.tar.gz",
108+
},
109+
},
110+
74111
xpm = {
75112
linux = {
76113
-- DIRECT dependencies only -- the four modules upstream's cmake
@@ -99,6 +136,7 @@ package = {
99136
},
100137
sha256 = "8b326d95015e92925229fdc1ababe4fdf32515e75764472591645622c1cfbb08",
101138
},
139+
["0.4.0"] = versions["0.4.0"],
102140
},
103141
macosx = {
104142
["0.3.0"] = {
@@ -108,6 +146,7 @@ package = {
108146
},
109147
sha256 = "8b326d95015e92925229fdc1ababe4fdf32515e75764472591645622c1cfbb08",
110148
},
149+
["0.4.0"] = versions["0.4.0"],
111150
},
112151
windows = {
113152
-- NO `xim:wix`, and that is not an oversight.
@@ -147,11 +186,12 @@ package = {
147186
},
148187
sha256 = "8b326d95015e92925229fdc1ababe4fdf32515e75764472591645622c1cfbb08",
149188
},
189+
["0.4.0"] = versions["0.4.0"],
150190
},
151191
},
152192

153193
-- NO `mcpp` SEGMENT, deliberately. This is shape D (external Form-A module
154-
-- repo): the tag archive carries `HuxerUI-0.3.0/mcpp.toml`, and mcpp's
194+
-- repo): the tag archive carries `HuxerUI-<version>/mcpp.toml`, and mcpp's
155195
-- default lookup finds `<verdir>/*/mcpp.toml` there. `mcpp emit xpkg`
156196
-- prints a table-form segment aimed at the publish flow; pasting it here
157197
-- makes the parser read this as an INLINE (Form B) descriptor and refuse

‎tests/examples/huxerui-module/mcpp.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ version = "0.1.0"
2222
standard = "c++20"
2323

2424
[dependencies.huxerui]
25-
huxerui = "0.3.0"
25+
huxerui = "0.4.0"

0 commit comments

Comments
 (0)