mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
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).
30 lines
1.5 KiB
TOML
30 lines
1.5 KiB
TOML
[package]
|
|
name = "raea-runtime-world"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "FSL-1.1-ALv2"
|
|
publish = false
|
|
description = "A composition's frames read into worlds of facts (docs/direction.feature DR1): React stepped with nothing drawn, its 3D, its page laid out and its timeline as entities with components"
|
|
|
|
[dependencies]
|
|
dunce = "1"
|
|
raea-core-facts = { path = "../../core/facts" }
|
|
raea-core-scene = { path = "../../core/scene" }
|
|
raea-runtime-scene = { path = "../scene" }
|
|
raea-runtime-react = { path = "../react", default-features = false }
|
|
raea-runtime-bake = { path = "../bake" }
|
|
raea-runtime-bundle = { path = "../bundle" }
|
|
# the page laid out with nothing drawn (BevyPage::lay_out), its text and boxes read as a render's manifest reads them
|
|
raea-runtime-page = { path = "../page" }
|
|
raea-sys-layers = { path = "../../systems/layers" }
|
|
# what a render's output measures, joined to the world (DR2), and its layers file read
|
|
raea-sys-measure = { path = "../../systems/measure" }
|
|
# the render's frames decoded once (a text's contrast, what OCR reads: DR28), its stills read, and OCR itself
|
|
raea-io-media = { path = "../../io/media", default-features = false, features = ["apple"] }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
|
|
raea-sys-vision = { path = "../../systems/vision" }
|
|
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app"] }
|
|
serde_json = "1"
|
|
# a clip's file's identity (its SHA-256, as raea's asset store names files)
|
|
sha2 = "0.10"
|