CONTEXT.md holds the glossary agreed during the design interview and the French word shown in the interface for each term. The three ADRs record the two data sources, GPUI through gpui-kit pinned at 0.9.1, and building with the Windows toolchain driven from WSL. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
status
| status |
|---|
| accepted |
Build with the Windows Rust toolchain, driven from WSL
The repository, shell, editor and git live in WSL, but the app is compiled by Windows' own cargo.exe invoked from WSL, with the build directory on C:. Real cross-compilation from Linux was the first choice and was abandoned after testing on 2026-11-15: with cargo-xwin, GPUI 0.2.2 compiles but the executable exits at launch, because GPUI loads its DirectX shaders from the build machine's source path in debug builds and only generates them in release builds when the build host is Windows. The Windows toolchain driven from WSL produced a visible, responsive window for both GPUI 0.2.2 and gpui-kit 0.9.1.
Considered Options
- Cross-compile from WSL with
cargo-xwin: fails at runtime as described; not retested on the current GPUI line. - Develop on Linux under WSLg, build for Windows at the end: rejected, no Vulkan support was found in this WSL and it would test a platform that is not the target.
- Move the repository to the Windows filesystem: works, but gives up the WSL working environment for no gain.
Consequences
- The UI-free core crate is still built and tested natively in WSL; only the GPUI app crate needs the Windows toolchain.
- Two Rust toolchains must stay recent enough: Windows' to build the app, WSL's for editor diagnostics and core tests.