Skip to content

Use the same Cargo lookup for play, build and the game gate - #3263

Draft
merzleckeier wants to merge 4 commits into
ProjectLeonida:mainfrom
merzleckeier:fix/direct-launch-cargo-home
Draft

merzleckeier wants to merge 4 commits into
ProjectLeonida:mainfrom
merzleckeier:fix/direct-launch-cargo-home

Conversation

@merzleckeier

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as LAUNCHER-DIRECT-CARGO-HOME.

Depends on: #3187

Overlaps #3220 in the direct launcher’s build preflight. If #3220 lands first, the rebase also needs to copy the shared lookup into its synthetic checkout.

What and why

A Rust installation in CARGO_HOME/bin or the default .cargo/bin can be unavailable on an already-open shell’s PATH. #3187 teaches the build script to find it. The direct launcher was still checking PATH alone, so it could stop before the first build or skip a needed DLSS rebuild.

Share the lookup between the direct launcher, the build script and the game gate. The gate can then reject a rebuild before recording the executable’s hash and features. The probe preserves PATH and the build keeps its existing preference for Cargo already on PATH.

This draft includes #3187 for integration testing against main. The follow-up itself is commit 2d0fc7240.

Tested

  • In Linux PowerShell 7, the direct first-build test and the DLSS preview test both failed with the old launcher and passed with the fix. The game-gate test failed with its old preflight and passed with the shared lookup. Its -NoDlss case verifies that PATH stays unchanged.
  • test_build_nvidia_cargo.py passed five tests with two Windows-only skips. test_game_gate.py passed 35. test_win_launchers.py passed four with five Windows-only skips. The independent read-only review was rerun after incorporating its gate finding.
  • git diff --check and the clean-room scan passed. Native Windows coverage is pending. No runtime, game, or GPU was used.

GPUs tested: n/a

AI-assisted: OpenAI Codex (GPT-6 family) and a separate read-only Codex reviewer.

claude and others added 3 commits December 2, 2026 17:02
…ld (LAUNCHER-RUST-PREREQ)

A first start through Launcher.bat builds leonida.exe with d3d12\scripts\build-nvidia.ps1. Without Rust the window
showed only PowerShell's localized CommandNotFoundException for cargo (ProjectLeonida#3025, ProjectLeonida#3131); without the Visual Studio C++
build tools cargo stopped at its first link. The script now also looks in CARGO_HOME\bin (a Rust installed after the
window opened), asks vswhere for the x64 C++ tools (VCINSTALLDIR from a Developer prompt counts), and otherwise says
what is missing and the winget command that installs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDMsHxGW2Atjq46fryJ1o8
@merzleckeier

Copy link
Copy Markdown
Contributor Author

Hosted CI passed all six checks on 9c2e340b, after syncing main at 81efe4566. The Windows check log shows test_build_nvidia_cargo.py ran all seven tests with no skips. It also shows all 16 menu-choice and nine Windows launcher tests passing. The separate D3D12 job passed, including all 47 Lua tests. This supplies the native Windows coverage that was pending in the draft description. The dependency on #3187 is still open.

Windows launcher tests · D3D12 Windows. AI-assisted.

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