mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -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).
55 lines
2.8 KiB
TOML
55 lines
2.8 KiB
TOML
[package]
|
|
name = "raea-bundle"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "FSL-1.1-ALv2"
|
|
publish = false
|
|
description = "A work folder's TypeScript, TSX and their imports bundled in process by Rolldown (Vite's bundler, MIT): no bun process (docs/vite-in-raea.md, A1)"
|
|
|
|
# raea links none of this: raea loads the cdylib at run time (runtime/react/src/scene.rs, ffi below), so Rolldown's
|
|
# dependencies never share a feature graph with raea's (their serde_json preserve_order and arbitrary_precision once
|
|
# reached every JSON map and number in raea: f60e0b7). The rlib is for the tests.
|
|
[lib]
|
|
crate-type = ["rlib", "cdylib"]
|
|
|
|
[dependencies]
|
|
dunce = "1"
|
|
serde_json = "1"
|
|
raea-io-home = { path = "../../io/home" }
|
|
rolldown = "=1.2.12"
|
|
# CSS imports and CSS modules (A2): @imports inlined, nesting and newer syntax lowered for Stylo
|
|
lightningcss = { version = "=1.0.0-alpha.72", features = ["bundler"] }
|
|
anyhow = "1"
|
|
# the Z3 compile (z3.rs, a live bundle's TSX): oxc as Rolldown 1.2.12 uses it
|
|
oxc = { version = "=0.152.0", features = ["transformer", "codegen", "semantic", "ast_visit"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
# Rolldown 1.2.12 is the newest whose oxc (0.152) builds on raea's rustc 1.96 (oxc 0.153 needs 1.97). Rolldown's own
|
|
# crates ask each other for ^1.2.12, which resolves to the newest, so each is held at 1.2.12 here (unused in the code).
|
|
# Moving Rolldown up means moving all of these together.
|
|
rolldown_common = "=1.2.12"
|
|
rolldown_dev_common = "=1.2.12"
|
|
rolldown_devtools = "=1.2.12"
|
|
rolldown_devtools_action = "=1.2.12"
|
|
rolldown_ecmascript = "=1.2.12"
|
|
rolldown_ecmascript_utils = "=1.2.12"
|
|
rolldown_error = "=1.2.12"
|
|
rolldown_fs = "=1.2.12"
|
|
rolldown_plugin = "=1.2.12"
|
|
rolldown_plugin_asset_module = "=1.2.12"
|
|
rolldown_plugin_chunk_import_map = "=1.2.12"
|
|
rolldown_plugin_copy_module = "=1.2.12"
|
|
rolldown_plugin_data_url = "=1.2.12"
|
|
rolldown_plugin_hmr = "=1.2.12"
|
|
rolldown_plugin_lazy_compilation = "=1.2.12"
|
|
rolldown_plugin_oxc_runtime = "=1.2.12"
|
|
rolldown_plugin_utils = "=1.2.12"
|
|
rolldown_resolver = "=1.2.12"
|
|
rolldown_sourcemap = "=1.2.12"
|
|
rolldown_std_utils = "=1.2.12"
|
|
rolldown_tracing = "=1.2.12"
|
|
rolldown_utils = "=1.2.12"
|
|
|
|
# the rolldown_* lines above are version holds, not uses (see their comment): cargo-shear leaves them be
|
|
[package.metadata.cargo-shear]
|
|
ignored = ["rolldown_dev_common", "rolldown_devtools", "rolldown_devtools_action", "rolldown_ecmascript", "rolldown_ecmascript_utils", "rolldown_error", "rolldown_fs", "rolldown_plugin_asset_module", "rolldown_plugin_chunk_import_map", "rolldown_plugin_copy_module", "rolldown_plugin_data_url", "rolldown_plugin_hmr", "rolldown_plugin_lazy_compilation", "rolldown_plugin_oxc_runtime", "rolldown_plugin_utils", "rolldown_resolver", "rolldown_sourcemap", "rolldown_std_utils", "rolldown_tracing", "rolldown_utils"]
|