Skip to content

feat(skill): Rune Rust-native UI guidance and verified scaffold (0.3.0) - #3

Merged
jjohare merged 1 commit into
mainfrom
feat/rune-ui
Nov 6, 2026
Merged

jjohare merged 1 commit into
mainfrom
feat/rune-ui

Conversation

@jjohare

@jjohare jjohare commented Nov 6, 2026

Copy link
Copy Markdown
Member

Adds Rune (anomalyco/rune, MIT) guidance to the skill so Rust-to-WebAssembly UI work knows the framework exists, when it fits and how to verify it.

Changes

  • references/rust/rune.md: selection criteria, the crates.io name collision (the registry's rune is the unrelated scripting language, so depend by git rev), crate shape, page mounting, web-target limits and evidence gates.
  • assets/rune-web/: a scaffold (Cargo.toml.tmpl, lib.rs.tmpl, main.rs.tmpl, smoke.json). The .tmpl names keep it from becoming a nested Cargo package.
  • Routing from SKILL.md (row and description), browser-wasm.md §3 and steering.md; provenance entries; version 0.3.0. The library and CLI are unchanged.

Evidence (scaffold copied verbatim, Rune 781e2b6d87cd5f32d6f4365956fad4baaf24ee50)

Check Result
cargo test (native; needs libxkbcommon to link) 3/3 pass, including a rune::Runtime test that taps through the real view
cargo clippy --all-targets -D warnings (native) pass
cargo clippy --target wasm32-unknown-unknown -D warnings pass
Rune scripts/web-build.sh release build pass; .wasm is 10,893,638 B raw and 2,847,763 B gzip
Browser load (Chrome sidecar, plain HTTP, non-localhost origin) module loaded and start ran; Rune reported WebGPU requires a supported browser and HTTPS. No rendered-page proof
Headless --snap/--tree not run: no Vulkan adapter in the build container (NVIDIA ICD failed to initialise)
Repo CI set: fmt, clippy, test, test --no-default-features, doc -D warnings, package, sealmap --check pass

CI here does not build the scaffold, because that would pull wgpu into this workspace. Rebuild the scaffold by hand whenever the pinned Rune rev changes.

🤖 Generated by Claude Code

Add references/rust/rune.md: when the Rune GPU UI framework fits over a JS
host or DOM-based Rust framework, git-rev pinning (the crates.io `rune` is
an unrelated scripting language), crate shape for desktop and web from one
cdylib+rlib crate, page mounting, web-target limits (WebGPU canvas, opt-in
WebGL2 fallback, no DOM accessibility mirror), and evidence gates using
rune::Runtime view tests, headless snaps/trees/scripts and wasm builds.

Add assets/rune-web/: a scaffold built and tested against Rune
781e2b6d87cd5f32d6f4365956fad4baaf24ee50. Route to it from SKILL.md (and
its description, for skill discovery), browser-wasm.md and steering;
record provenance; release as 0.3.0.

Co-Authored-By: jjohare <github@thedreamlab.uk>
@jjohare
jjohare merged commit 2c6627c into main Nov 6, 2026
3 checks passed
@jjohare
jjohare deleted the feat/rune-ui branch November 6, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants