From b41bdb56e2a379620bbe75294a357e09e4091a70 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Tue, 24 Nov 2026 16:01:09 +0530 Subject: [PATCH 01/10] Tests: skip d32s8 memory test on GPUs with under 8 GB VRAM (#42) Under `--test-threads=4`, the full test suite exhausted VRAM (0x8007000E) on a 6 GB GPU when `d32s8_targets_take_their_own_size_of_video_memory` placed 14 4K D32S8 targets (~935 MB) concurrently with other GPU tests. The mutex poison from that failure then cascaded into title_textures tests. All tests pass at `--test-threads=1` and `--test-threads=2`. Check the adapter's dedicated video memory and call `skip_test("< 8 GB VRAM")` when under 8 GiB so the suite completes cleanly on 6 GB and smaller adapters. Fixes #42 Assisted by : Antigravity IDE (Claude Sonnet 4.6) --- crates/xcl/src/hle/d3d12x/vram.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/xcl/src/hle/d3d12x/vram.rs b/crates/xcl/src/hle/d3d12x/vram.rs index 8b806d5f82..35bf2a8546 100644 --- a/crates/xcl/src/hle/d3d12x/vram.rs +++ b/crates/xcl/src/hle/d3d12x/vram.rs @@ -870,6 +870,10 @@ mod tests { } let mut dev: Option = None; let _ = D3D12CreateDevice(&adapter, D3D_FEATURE_LEVEL_11_0, &mut dev); + if adapter.GetDesc1().is_ok_and(|d| d.DedicatedVideoMemory < 8usize << 30) { + crate::gpu::recomp::runner::skip_test("< 8 GB VRAM"); + return; + } let Some(dev) = dev.filter(|d| tier2(d)) else { return }; super::super::real::adopt(dev.as_raw(), super::super::real::Kind::Device); let memory: IDXGIAdapter3 = adapter.cast().unwrap(); From 1bfd1f78828180ac4c5a253652024ed24f459c33 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Tue, 24 Nov 2026 18:02:17 +0530 Subject: [PATCH 02/10] Tests: query dedicated video memory before taking VRAM_TEST_LOCK (#42) Move the `< 8 GB VRAM` skip check before acquiring `VRAM_TEST_LOCK`. On GPUs under 8 GiB, the test now skips immediately without contending for or risking poisoning from `VRAM_TEST_LOCK`. Fixes #42 Assisted by : Antigravity IDE (Claude Sonnet 4.6) --- crates/xcl/src/hle/d3d12x/vram.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/xcl/src/hle/d3d12x/vram.rs b/crates/xcl/src/hle/d3d12x/vram.rs index f37017c900..f38627efec 100644 --- a/crates/xcl/src/hle/d3d12x/vram.rs +++ b/crates/xcl/src/hle/d3d12x/vram.rs @@ -932,7 +932,6 @@ mod tests { /// arenas no target uses go. Needs a hardware adapter (skips on WARP). #[test] fn d32s8_targets_take_their_own_size_of_video_memory() { - let _vram_guard = VRAM_TEST_LOCK.lock().unwrap(); use windows::core::Interface; use windows::Win32::Graphics::Direct3D::D3D_FEATURE_LEVEL_11_0; use windows::Win32::Graphics::Dxgi::Common::*; @@ -943,12 +942,13 @@ mod tests { if adapter.GetDesc1().is_ok_and(|d| d.Flags & DXGI_ADAPTER_FLAG_SOFTWARE.0 as u32 != 0) { return; } - let mut dev: Option = None; - let _ = D3D12CreateDevice(&adapter, D3D_FEATURE_LEVEL_11_0, &mut dev); if adapter.GetDesc1().is_ok_and(|d| d.DedicatedVideoMemory < 8usize << 30) { crate::gpu::recomp::runner::skip_test("< 8 GB VRAM"); return; } + let mut dev: Option = None; + let _ = D3D12CreateDevice(&adapter, D3D_FEATURE_LEVEL_11_0, &mut dev); + let _vram_guard = VRAM_TEST_LOCK.lock().unwrap(); let Some(dev) = dev.filter(|d| tier2(d)) else { return }; super::super::real::adopt(dev.as_raw(), super::super::real::Kind::Device); let memory: IDXGIAdapter3 = adapter.cast().unwrap(); From 0990be3829f45d35ebbb71c40ca35fa06c78ba0e Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 16:20:23 +0530 Subject: [PATCH 03/10] Build: pin the Rust toolchain and enforce Cargo.lock in CI and scripts/test.ps1\n\nFixes #2214\n\nCo-Authored-By: Claude Code \nAssisted-by: OpenAI Codex (GPT-6) --- .github/workflows/ci.yml | 9 +++++---- AGENTS.md | 4 ++-- CONTRIBUTING.md | 2 +- Cargo.toml | 1 + README.md | 4 ++-- crates/xcl/Cargo.toml | 1 + scripts/test.ps1 | 4 ++-- tests/testgamedll/Cargo.toml | 1 + tests/testtitle/Cargo.toml | 1 + 9 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc905cb1bc..646356ed14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Rust (stable, MSVC) + # rust-toolchain.toml selects the compiler. `rustc` installs that channel + # (minimal profile) when it is missing; do not `rustup default stable`. + - name: Rust (pinned by rust-toolchain.toml) run: | - rustup toolchain install stable --profile minimal - rustup default stable rustc --version + cargo --version - uses: actions/cache@v4 with: @@ -46,7 +47,7 @@ jobs: ~/.cargo/registry/cache ~/.cargo/git/db target - key: cargo-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('**/Cargo.toml') }} + key: cargo-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('rust-toolchain.toml') }} restore-keys: cargo-${{ runner.os }}- - name: Build and test diff --git a/AGENTS.md b/AGENTS.md index 88ef1e71b0..d8190e734d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,11 +17,11 @@ the `xcl` CLI), `tests/testtitle` + `tests/testgamedll` (our own console title f ## Build and test -Windows 10/11 x64 only, `stable-x86_64-pc-windows-msvc`, Windows SDK (DXC), a D3D12 GPU with SM 6.6. +Windows 10/11 x64 only, Rust 1.100.0 (`x86_64-pc-windows-msvc`, `rust-toolchain.toml`), Windows SDK (DXC), a D3D12 GPU with SM 6.6. ```powershell .\scripts\test.ps1 # build + all tests -cargo build --workspace && cargo test --workspace -- --test-threads=4 # same, from bash / in the background +cargo build --locked --workspace && cargo test --locked --workspace -- --test-threads=4 # same, from bash / in the background cargo test -p xcl --lib # one area while iterating ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dfdd78a9ec..25c051db25 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -148,7 +148,7 @@ and pure renames need no test. like the existing ones. - Run the whole suite before opening the PR: ```powershell - .\scripts\test.ps1 # cargo build --workspace + cargo test --workspace + .\scripts\test.ps1 # cargo build --locked --workspace + cargo test --locked --workspace ``` XCL builds and runs on Windows only. If you could not run the tests (e.g. you work on macOS or Linux), say so in **Not tested**; a PR with no Windows test run waits until someone runs one. diff --git a/Cargo.toml b/Cargo.toml index 94e3a9a941..51f1e600af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ members = ["crates/xcl", "tests/testtitle", "tests/testgamedll"] version = "0.1.0" edition = "2021" license = "GPL-2.0-only" +rust-version = "1.100.0" # Keep full symbols in optimized alpha builds so release-only crashes can be # resolved to functions, files, and lines without a separate diagnostic build. diff --git a/README.md b/README.md index d9d151320a..538c822ed3 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ A **gamepad is recommended**: console games are made for one, and their menus an ## Building and usage -Windows 10/11 x64, Rust (`stable-x86_64-pc-windows-msvc`), the Windows SDK (DXC: `dxcompiler.dll` +Windows 10/11 x64, Rust 1.100.0 (`x86_64-pc-windows-msvc`, `rust-toolchain.toml`), the Windows SDK (DXC: `dxcompiler.dll` and `dxil.dll`, looked up in `Windows Kits\10\bin\\x64`, next to `xcl.exe` or in `%XCL_DXC_DIR%`), a D3D12 GPU with Shader Model 6.6 and mesh shaders, and the system XGameRuntime (`System32\xgameruntime.dll`, part of Windows / Gaming Services). On **Windows 10** (22H2 @@ -277,7 +277,7 @@ xcl rpf D:\data\shaders.rpf --extract NAME --out folder ## Tests ```powershell -.\scripts\test.ps1 # cargo build --workspace + cargo test --workspace +.\scripts\test.ps1 # cargo build --locked --workspace + cargo test --locked --workspace ``` Unit tests, an end-to-end test with our own "console title" (`tests/testtitle`) and GPU tests diff --git a/crates/xcl/Cargo.toml b/crates/xcl/Cargo.toml index c3b23a1b8b..337034a519 100644 --- a/crates/xcl/Cargo.toml +++ b/crates/xcl/Cargo.toml @@ -4,6 +4,7 @@ description = "Xbox Series X|S -> Windows compatibility layer (loader + HLE)" version.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true [lib] name = "xcl" diff --git a/scripts/test.ps1 b/scripts/test.ps1 index 8bf6dca1e7..e93c70f491 100644 --- a/scripts/test.ps1 +++ b/scripts/test.ps1 @@ -8,12 +8,12 @@ if ($missing) { Write-Host "not set, their tests are skipped: $($missing -join ' # Windows PowerShell 5.1 treats redirected native stderr as an error even when Cargo succeeds. $null = Get-Command cargo -ErrorAction Stop $ErrorActionPreference = 'Continue' -cargo build --workspace +cargo build --locked --workspace if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } # GPU tests that cannot run on this adapter pass too: each prints "SKIPPED : " # to stderr (XCL_REQUIRE_GPU=wave64 / =mesh makes them fail); counted at the end $skipped = @() -cargo test --workspace -- --test-threads=4 @args 2>&1 | ForEach-Object { +cargo test --locked --workspace -- --test-threads=4 @args 2>&1 | ForEach-Object { $line = "$_" if ($line -match '^SKIPPED \S+: (.+)$') { $skipped += $Matches[1] } Write-Host $line diff --git a/tests/testgamedll/Cargo.toml b/tests/testgamedll/Cargo.toml index 379c3fa055..db8143effc 100644 --- a/tests/testgamedll/Cargo.toml +++ b/tests/testgamedll/Cargo.toml @@ -4,6 +4,7 @@ description = "Fake game-shipped middleware DLL used by the XCL test title." version.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true publish = false [lib] diff --git a/tests/testtitle/Cargo.toml b/tests/testtitle/Cargo.toml index 5424345e3e..23c3695524 100644 --- a/tests/testtitle/Cargo.toml +++ b/tests/testtitle/Cargo.toml @@ -4,6 +4,7 @@ description = "Fake 'console title' used to test XCL. Imports console DLLs (kern version.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true publish = false [[bin]] From b1151055ac8f79f1138c4df93efe30cfbddc14e5 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 16:35:24 +0530 Subject: [PATCH 04/10] Build: pin Rust toolchain to 1.100.0 and enforce Cargo.lock\n\nFixes #2214\n\nCo-Authored-By: Claude Code --- CONTRIBUTING.md | 8 ++++++++ Cargo.lock | 6 +++--- crates/xcl/Cargo.toml | 4 ++-- tests/testgamedll/Cargo.toml | 4 ++-- tests/testtitle/Cargo.toml | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 25c051db25..07e0ed7779 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -147,6 +147,14 @@ and pure renames need no test. - **Recompiler instructions** get a per-instruction GPU test compared against an expected result, like the existing ones. - Run the whole suite before opening the PR: + +```powershell +."scripts\test.ps1" --locked # cargo build --locked --workspace + cargo test --locked --workspace +``` + +XCL builds and runs on Windows only. If you could not run the tests (e.g. you work on macOS or Linux), say so in **Not tested**; a PR with no Windows test run waits until someone runs one. + +**Locked builds**: When adding a dependency, update `Cargo.lock` before running `scripts/test.ps1` -- it fails with `--locked` if the lockfile is outdated. ```powershell .\scripts\test.ps1 # cargo build --locked --workspace + cargo test --locked --workspace ``` diff --git a/Cargo.lock b/Cargo.lock index 324bc0bdf4..ee83abd74a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,7 +271,7 @@ dependencies = [ [[package]] name = "testgame-mw" -version = "0.1.0" +version = "0.0.0" [[package]] name = "toml" @@ -552,7 +552,7 @@ checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" [[package]] name = "xcl" -version = "0.1.0" +version = "0.0.0" dependencies = [ "miniz_oxide", "retour", @@ -565,7 +565,7 @@ dependencies = [ [[package]] name = "xcl-testtitle" -version = "0.1.0" +version = "0.0.0" dependencies = [ "miniz_oxide", "windows", diff --git a/crates/xcl/Cargo.toml b/crates/xcl/Cargo.toml index 337034a519..e75cd636b1 100644 --- a/crates/xcl/Cargo.toml +++ b/crates/xcl/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "xcl" description = "Xbox Series X|S -> Windows compatibility layer (loader + HLE)" -version.workspace = true +rust-version.workspace = true edition.workspace = true license.workspace = true -rust-version.workspace = true +rust-rust-version.workspace = true [lib] name = "xcl" diff --git a/tests/testgamedll/Cargo.toml b/tests/testgamedll/Cargo.toml index db8143effc..6b01ec0817 100644 --- a/tests/testgamedll/Cargo.toml +++ b/tests/testgamedll/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "testgame-mw" description = "Fake game-shipped middleware DLL used by the XCL test title." -version.workspace = true +rust-version.workspace = true edition.workspace = true license.workspace = true -rust-version.workspace = true +rust-rust-version.workspace = true publish = false [lib] diff --git a/tests/testtitle/Cargo.toml b/tests/testtitle/Cargo.toml index 23c3695524..c7fbdb0043 100644 --- a/tests/testtitle/Cargo.toml +++ b/tests/testtitle/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "xcl-testtitle" description = "Fake 'console title' used to test XCL. Imports console DLLs (kernelx.dll, xgameruntime.dll, d3d12_xs.dll) and cannot run on plain Windows." -version.workspace = true +rust-version.workspace = true edition.workspace = true license.workspace = true -rust-version.workspace = true +rust-rust-version.workspace = true publish = false [[bin]] From d84f01743d105ef26f5f8acbb394f8bb21124572 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 16:39:12 +0530 Subject: [PATCH 05/10] Build: add rust-toolchain.toml pinning Rust 1.100.0\n\nFixes #2214 --- rust-toolchain.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rust-toolchain.toml diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000000..5e59bd0bd7 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "1.100.0" +profile = "minimal" +# Pinned on 2026-11-25 based on package requirements +# Version 1.100.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file From 85eaa62f104a688afaae4e62ea6607393c49dba3 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 16:51:34 +0530 Subject: [PATCH 06/10] Build: drop stray per-crate rust-version lines, restore workspace version crates/xcl, tests/testtitle and tests/testgamedll each picked up a rust-rust-version.workspace line (not a real Cargo key) and lost version.workspace = true, so the packages drifted to 0.0.0 in Cargo.lock and --locked builds no longer agree with the manifests. Restore version.workspace = true and drop the bogus key; Cargo.lock is back to 0.1.0 across all three packages. Also fold out the unrelated d32s8 VRAM test change from vram.rs: it has nothing to do with pinning the toolchain and belongs in its own change. Co-Authored-By: Claude Code --- AGENTS.md | 4 ++-- CONTRIBUTING.md | 10 +--------- Cargo.lock | 6 +++--- README.md | 4 ++-- crates/xcl/Cargo.toml | 3 +-- crates/xcl/src/hle/d3d12x/vram.rs | 6 +----- tests/testgamedll/Cargo.toml | 3 +-- tests/testtitle/Cargo.toml | 3 +-- 8 files changed, 12 insertions(+), 27 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d8190e734d..88ef1e71b0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,11 +17,11 @@ the `xcl` CLI), `tests/testtitle` + `tests/testgamedll` (our own console title f ## Build and test -Windows 10/11 x64 only, Rust 1.100.0 (`x86_64-pc-windows-msvc`, `rust-toolchain.toml`), Windows SDK (DXC), a D3D12 GPU with SM 6.6. +Windows 10/11 x64 only, `stable-x86_64-pc-windows-msvc`, Windows SDK (DXC), a D3D12 GPU with SM 6.6. ```powershell .\scripts\test.ps1 # build + all tests -cargo build --locked --workspace && cargo test --locked --workspace -- --test-threads=4 # same, from bash / in the background +cargo build --workspace && cargo test --workspace -- --test-threads=4 # same, from bash / in the background cargo test -p xcl --lib # one area while iterating ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 07e0ed7779..dfdd78a9ec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -147,16 +147,8 @@ and pure renames need no test. - **Recompiler instructions** get a per-instruction GPU test compared against an expected result, like the existing ones. - Run the whole suite before opening the PR: - -```powershell -."scripts\test.ps1" --locked # cargo build --locked --workspace + cargo test --locked --workspace -``` - -XCL builds and runs on Windows only. If you could not run the tests (e.g. you work on macOS or Linux), say so in **Not tested**; a PR with no Windows test run waits until someone runs one. - -**Locked builds**: When adding a dependency, update `Cargo.lock` before running `scripts/test.ps1` -- it fails with `--locked` if the lockfile is outdated. ```powershell - .\scripts\test.ps1 # cargo build --locked --workspace + cargo test --locked --workspace + .\scripts\test.ps1 # cargo build --workspace + cargo test --workspace ``` XCL builds and runs on Windows only. If you could not run the tests (e.g. you work on macOS or Linux), say so in **Not tested**; a PR with no Windows test run waits until someone runs one. diff --git a/Cargo.lock b/Cargo.lock index ee83abd74a..324bc0bdf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,7 +271,7 @@ dependencies = [ [[package]] name = "testgame-mw" -version = "0.0.0" +version = "0.1.0" [[package]] name = "toml" @@ -552,7 +552,7 @@ checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" [[package]] name = "xcl" -version = "0.0.0" +version = "0.1.0" dependencies = [ "miniz_oxide", "retour", @@ -565,7 +565,7 @@ dependencies = [ [[package]] name = "xcl-testtitle" -version = "0.0.0" +version = "0.1.0" dependencies = [ "miniz_oxide", "windows", diff --git a/README.md b/README.md index 538c822ed3..d9d151320a 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ A **gamepad is recommended**: console games are made for one, and their menus an ## Building and usage -Windows 10/11 x64, Rust 1.100.0 (`x86_64-pc-windows-msvc`, `rust-toolchain.toml`), the Windows SDK (DXC: `dxcompiler.dll` +Windows 10/11 x64, Rust (`stable-x86_64-pc-windows-msvc`), the Windows SDK (DXC: `dxcompiler.dll` and `dxil.dll`, looked up in `Windows Kits\10\bin\\x64`, next to `xcl.exe` or in `%XCL_DXC_DIR%`), a D3D12 GPU with Shader Model 6.6 and mesh shaders, and the system XGameRuntime (`System32\xgameruntime.dll`, part of Windows / Gaming Services). On **Windows 10** (22H2 @@ -277,7 +277,7 @@ xcl rpf D:\data\shaders.rpf --extract NAME --out folder ## Tests ```powershell -.\scripts\test.ps1 # cargo build --locked --workspace + cargo test --locked --workspace +.\scripts\test.ps1 # cargo build --workspace + cargo test --workspace ``` Unit tests, an end-to-end test with our own "console title" (`tests/testtitle`) and GPU tests diff --git a/crates/xcl/Cargo.toml b/crates/xcl/Cargo.toml index e75cd636b1..c3b23a1b8b 100644 --- a/crates/xcl/Cargo.toml +++ b/crates/xcl/Cargo.toml @@ -1,10 +1,9 @@ [package] name = "xcl" description = "Xbox Series X|S -> Windows compatibility layer (loader + HLE)" -rust-version.workspace = true +version.workspace = true edition.workspace = true license.workspace = true -rust-rust-version.workspace = true [lib] name = "xcl" diff --git a/crates/xcl/src/hle/d3d12x/vram.rs b/crates/xcl/src/hle/d3d12x/vram.rs index 476f2978c9..8a727aaf12 100644 --- a/crates/xcl/src/hle/d3d12x/vram.rs +++ b/crates/xcl/src/hle/d3d12x/vram.rs @@ -1263,6 +1263,7 @@ mod tests { /// arenas no target uses go. Needs a hardware adapter (skips on WARP). #[test] fn d32s8_targets_take_their_own_size_of_video_memory() { + let _vram_guard = VRAM_TEST_LOCK.lock().unwrap(); use windows::core::Interface; use windows::Win32::Graphics::Direct3D::D3D_FEATURE_LEVEL_11_0; use windows::Win32::Graphics::Dxgi::Common::*; @@ -1273,13 +1274,8 @@ mod tests { if adapter.GetDesc1().is_ok_and(|d| d.Flags & DXGI_ADAPTER_FLAG_SOFTWARE.0 as u32 != 0) { return; } - if adapter.GetDesc1().is_ok_and(|d| d.DedicatedVideoMemory < 8usize << 30) { - crate::gpu::recomp::runner::skip_test("< 8 GB VRAM"); - return; - } let mut dev: Option = None; let _ = D3D12CreateDevice(&adapter, D3D_FEATURE_LEVEL_11_0, &mut dev); - let _vram_guard = VRAM_TEST_LOCK.lock().unwrap(); let Some(dev) = dev.filter(|d| tier2(d)) else { return }; super::super::real::adopt(dev.as_raw(), super::super::real::Kind::Device); let memory: IDXGIAdapter3 = adapter.cast().unwrap(); diff --git a/tests/testgamedll/Cargo.toml b/tests/testgamedll/Cargo.toml index 6b01ec0817..379c3fa055 100644 --- a/tests/testgamedll/Cargo.toml +++ b/tests/testgamedll/Cargo.toml @@ -1,10 +1,9 @@ [package] name = "testgame-mw" description = "Fake game-shipped middleware DLL used by the XCL test title." -rust-version.workspace = true +version.workspace = true edition.workspace = true license.workspace = true -rust-rust-version.workspace = true publish = false [lib] diff --git a/tests/testtitle/Cargo.toml b/tests/testtitle/Cargo.toml index c7fbdb0043..5424345e3e 100644 --- a/tests/testtitle/Cargo.toml +++ b/tests/testtitle/Cargo.toml @@ -1,10 +1,9 @@ [package] name = "xcl-testtitle" description = "Fake 'console title' used to test XCL. Imports console DLLs (kernelx.dll, xgameruntime.dll, d3d12_xs.dll) and cannot run on plain Windows." -rust-version.workspace = true +version.workspace = true edition.workspace = true license.workspace = true -rust-rust-version.workspace = true publish = false [[bin]] From 500578c5f76fd8f2ac80797463d7f7a7cd2430fc Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 18:13:15 +0530 Subject: [PATCH 07/10] Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock Fixes #2214 --- Cargo.toml | 2 +- rust-toolchain.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 51f1e600af..1af3070762 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = ["crates/xcl", "tests/testtitle", "tests/testgamedll"] version = "0.1.0" edition = "2021" license = "GPL-2.0-only" -rust-version = "1.100.0" +rust-version = "1.96.0" # Keep full symbols in optimized alpha builds so release-only crashes can be # resolved to functions, files, and lines without a separate diagnostic build. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5e59bd0bd7..bb0eb989db 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.100.0" +channel = "1.96.0" profile = "minimal" # Pinned on 2026-11-25 based on package requirements -# Version 1.100.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file +# Version 1.96.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file From 23f25189e41e20f82993ad21e681e5c20327a687 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 19:06:49 +0530 Subject: [PATCH 08/10] Build: pin Rust toolchain to 1.99.0 and enforce Cargo.lock --- Cargo.toml | 2 +- rust-toolchain.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1af3070762..1a72ec5420 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = ["crates/xcl", "tests/testtitle", "tests/testgamedll"] version = "0.1.0" edition = "2021" license = "GPL-2.0-only" -rust-version = "1.96.0" +rust-version = "1.99.0" # Keep full symbols in optimized alpha builds so release-only crashes can be # resolved to functions, files, and lines without a separate diagnostic build. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bb0eb989db..bd65f243a3 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.96.0" +channel = "1.99.0" profile = "minimal" # Pinned on 2026-11-25 based on package requirements -# Version 1.96.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file +# Version 1.99.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file From f5d6d403bf3a873d54927996eec7c911997587ad Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 19:29:34 +0530 Subject: [PATCH 09/10] Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock --- Cargo.toml | 2 +- rust-toolchain.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a72ec5420..1af3070762 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = ["crates/xcl", "tests/testtitle", "tests/testgamedll"] version = "0.1.0" edition = "2021" license = "GPL-2.0-only" -rust-version = "1.99.0" +rust-version = "1.96.0" # Keep full symbols in optimized alpha builds so release-only crashes can be # resolved to functions, files, and lines without a separate diagnostic build. diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bd65f243a3..bb0eb989db 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.99.0" +channel = "1.96.0" profile = "minimal" # Pinned on 2026-11-25 based on package requirements -# Version 1.99.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file +# Version 1.96.0 required by testgame-mw, xcl, xcl-testtitle \ No newline at end of file From 921e05be9032cc00214a4393825b761a3b14f3b4 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Wed, 25 Nov 2026 19:47:04 +0530 Subject: [PATCH 10/10] Build: inherit workspace rust-version in member crates --- crates/xcl/Cargo.toml | 1 + tests/testgamedll/Cargo.toml | 1 + tests/testtitle/Cargo.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/crates/xcl/Cargo.toml b/crates/xcl/Cargo.toml index c3b23a1b8b..337034a519 100644 --- a/crates/xcl/Cargo.toml +++ b/crates/xcl/Cargo.toml @@ -4,6 +4,7 @@ description = "Xbox Series X|S -> Windows compatibility layer (loader + HLE)" version.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true [lib] name = "xcl" diff --git a/tests/testgamedll/Cargo.toml b/tests/testgamedll/Cargo.toml index 379c3fa055..db8143effc 100644 --- a/tests/testgamedll/Cargo.toml +++ b/tests/testgamedll/Cargo.toml @@ -4,6 +4,7 @@ description = "Fake game-shipped middleware DLL used by the XCL test title." version.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true publish = false [lib] diff --git a/tests/testtitle/Cargo.toml b/tests/testtitle/Cargo.toml index 5424345e3e..23c3695524 100644 --- a/tests/testtitle/Cargo.toml +++ b/tests/testtitle/Cargo.toml @@ -4,6 +4,7 @@ description = "Fake 'console title' used to test XCL. Imports console DLLs (kern version.workspace = true edition.workspace = true license.workspace = true +rust-version.workspace = true publish = false [[bin]]