Files
shinyobjectz 57f3ef8db3 Windows: canonicalize goes through dunce and the home folder through user_home (all but five crates)
canonicalize() through std gives \\?\C:\... on Windows: a path Git for Windows can neither read nor lock, Rolldown can't resolve, and which shares no root with the C:\... git and everything else print. It broke a new workspace's git config (fixed in apps/workspace earlier today). Here the calls in the apps (CapCut, check, direction, engines, fingerprint, game, interchange, judge, solid, sound, targets, tools), the bundler, the CLI, the modules loader, the native shim's realpath, the page's motion, io (assets, gen, home, shell), runtime/bundle/lib, js, track and world, the systems (fingerprint-use, footage, index, ml, page-net), the bridge bench's examples and the sdk/ui test tools use dunce::canonicalize, which gives C:\... wherever a path can be said so and is std's own call on the Mac and Linux.

Reads of the home folder took HOME alone, which Windows doesn't set for an app opened from the Start menu or Explorer, so the taste file, the settings file, the inbox, the npm store, the caches (sounds, splats, goo, ingest, speech, Core ML, the portable perceive models), the node shim's os.homedir() and CapCut's drafts were looked for under whatever folder raea ran in. raea_io_home::user_home() reads HOME, then USERPROFILE (Git for Windows' order; an empty one counts as unset), and models(), caches(), logs(), env_path() and offline() use it, as do the places that had their own fallback.

The caches that had their own copy of "this variable, else this folder under home" (splats, goo, ingest, the npm store, Core ML's models) now call raea_io_home::env_path and models(), and raea_io_home::real canonicalizes a path or keeps it as given, so tools/dupes.max comes down to 289 exact and 58 near. tools/skills.sh reads a variable from env_path("RAEA_...", ".raea/...") as it did from env::var, so files.md keeps RAEA_NPM_HOME on ~/.raea/npm (every generated reference is unchanged).

Five crates hold other sessions' uncommitted edits (engine/page/stage, engine/render, runtime/bundle, runtime/export, runtime/live): their few calls, and tools/windows-paths.sh, the check that keeps both at zero, land once those are committed.

Checked: cargo check --all-targets of every crate changed, and of sdk/ui/conformance and sdk/ui/parity. On a Windows 11 PC and on macOS the unit tests of raea-io-home (user_home's order and an empty HOME, now in caches_logs_and_the_home_folder_follow_the_platform), raea-app-check, raea-app-workspace, raea-app-registry and raea-core-facts pass (5, 27, 10, 7, 17).
2026-11-17 10:38:33 -08:00

50 lines
3.0 KiB
TOML

[package]
name = "raea-page"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "HTML, CSS and React pages in Bevy (docs/blitz-bevy.feature): Blitz works out what a page looks like, Vello paints it on Bevy's own GPU device into a Bevy Image"
[dependencies]
dunce = "1"
# the layers under it
raea-sys-page = { path = "../../systems/page" }
raea-sys-fonts = { path = "../../systems/fonts" }
# the layer pass's page half (docs/review.feature R2b)
raea-sys-layers = { path = "../../systems/layers", features = ["page"] }
raea-runtime-twins = { path = "../../runtime/twins" }
raea-runtime-dom = { path = "../../runtime/dom" }
raea-runtime-edit = { path = "../../runtime/edit" }
raea-runtime-input = { path = "../../runtime/input" }
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "bevy_render", "bevy_asset", "bevy_image", "bevy_log", "bevy_window", "ui_bevy_render", "bevy_picking", "ui_picking", "bevy_input_focus"] }
# the document: stylo's styles, Taffy's and Blitz's layout (floats on, as Chrome lays them out)
blitz-dom = { version = "=0.3.0-beta.4", default-features = false, features = ["svg", "woff", "system-fonts", "floats", "text-transform-icu", "complex-scripts"] }
# the laid-out lines' glyph runs, where a render manifest's text has its ink (motion/manifest.rs)
parley = { version = "=0.12.0", default-features = false, features = ["std"] }
vello = { version = "=0.11.0", default-features = false, features = ["wgpu"] }
wgpu = "=30.0.1"
# a page's script host: JS engines, native calls, media, canvas, accessibility records
raea-runtime-js = { path = "../../runtime/js" }
# the registered Bevy plugins' changes to DefaultPlugins (motion.rs: WinitPlugin off in a plugin build)
raea-runtime-plugins = { path = "../../runtime/plugins" }
# the op wire, and the element tree raea's page diffs into ops (motion.rs)
raea-core-wire = { path = "../../core/wire" }
# the GPU canary, bump and memory checks, and refusals
raea-gpu-device = { path = "../../gpu/device" }
serde_json = "1"
# an inline svg's <text>s, as usvg set them (the render manifest's runs, layout-reads LR10)
usvg = { version = "=0.48.1", default-features = false, features = ["text"] }
# HTML files parsed by Blitz (motion.rs open_html: an HTML page, WPT's tests), and their URLs
blitz-html = "=0.3.0-beta.4"
url = "2"
# the formats an <img> may hold here, as bevy_ui's page loads them (Blitz decodes with this crate: a DDS or TGA was 0x0)
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp", "tga", "dds", "hdr", "exr"] }
# video elements' frames (motion.rs place_videos): the app's decoders, as raea-runtime-js's page
raea-io-media = { path = "../../io/media", default-features = false }
# an element's damage when its picture changes (blitz-dom's own type)
stylo = "=0.22.0"
[dev-dependencies]
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "bevy_render", "bevy_core_pipeline", "bevy_log", "png", "bevy_window"] }