Skip to content

Commit f661da8

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into metal-feature-detection-fix
2 parents 15bc395 + 75188a7 commit f661da8

337 files changed

Lines changed: 20964 additions & 7286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.deny.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ skip = [
1818

1919
# Winit uses an old version
2020
{ name = "windows-sys", version = "0.52.0" },
21-
22-
# Loom uses a new windows version
23-
{ name = "windows", version = "0.61.1" },
24-
{ name = "windows-core", version = "0.61.2" },
25-
{ name = "windows-implement", version = "0.60.0" },
26-
{ name = "windows-interface", version = "0.59.1" },
27-
{ name = "windows-result", version = "0.3.4" },
28-
{ name = "windows-strings", version = "0.4.2" },
2921
]
3022
wildcards = "deny"
3123
allow-wildcard-paths = true
@@ -65,6 +57,9 @@ private = { ignore = true }
6557
allow-git = [
6658
# Waiting on releases; used in examples/tests only
6759
"https://github.com/gfx-rs/metal-rs.git"
60+
61+
# Pending a release for https://github.com/Xudong-Huang/generator-rs/pull/75
62+
"https://github.com/Xudong-Huang/generator-rs",
6863
]
6964
unknown-registry = "deny"
7065
unknown-git = "deny"

.github/actions/install-dxc/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ runs:
77
run: |
88
set -e
99
10-
export DXC_RELEASE="v1.8.2502"
11-
export DXC_FILENAME="dxc_2025_02_20.zip"
10+
export DXC_RELEASE="v1.8.2505.1"
11+
export DXC_FILENAME="dxc_2025_07_14.zip"
1212
1313
curl.exe -L --retry 5 https://github.com/microsoft/DirectXShaderCompiler/releases/download/$DXC_RELEASE/$DXC_FILENAME -o dxc.zip
1414
7z.exe e dxc.zip -odxc bin/x64/{dxc.exe,dxcompiler.dll}

.github/actions/install-mesa/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: 'Install Mesa'
2-
description: 'Install Mesa'
1+
name: "Install Mesa"
2+
description: "Install Mesa"
33
inputs:
44
# Sourced from https://archive.mesa3d.org/. Bumping this requires
55
# updating the mesa build in https://github.com/gfx-rs/ci-build and creating a new release.
66
version:
7-
default: '24.3.4'
7+
default: "25.2.7"
88
# Corresponds to https://github.com/gfx-rs/ci-build/releases
99
ci-binary-build:
10-
default: 'build20'
10+
default: "build26"
1111
runs:
12-
using: 'composite'
12+
using: "composite"
1313
steps:
1414
- name: (Linux) Install Mesa
1515
if: runner.os == 'Linux'

.github/actions/install-vulkan-sdk/action.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: 'Install Vulkan SDK'
2-
description: 'Install Vulkan SDK'
1+
name: "Install Vulkan SDK"
2+
description: "Install Vulkan SDK"
33
inputs:
44
# Sourced from https://vulkan.lunarg.com/sdk/home#linux
55
version:
6-
default: '1.4.321'
6+
default: "1.4.328"
77
full-version:
8-
default: '1.4.321.0'
8+
default: "1.4.328.1"
99
runs:
10-
using: 'composite'
10+
using: "composite"
1111
steps:
1212
- name: (Linux) Install Vulkan SDK
1313
if: runner.os == 'Linux'
@@ -43,7 +43,6 @@ runs:
4343
4444
echo "C:/VulkanSDK/${{ env.VULKAN_FULL_SDK_VERSION }}/Bin" >> "$GITHUB_PATH"
4545
46-
4746
- name: (Mac) Install Vulkan SDK
4847
if: runner.os == 'macOS'
4948
shell: bash
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: "Install WARP"
22
description: "Install WARP"
33
inputs:
4-
target-dirs:
5-
description: "Space-separated list of directories into which to install the WARP DLL."
4+
target-dir:
5+
description: "The directory into which to install the WARP DLL."
66
required: true
77
runs:
88
using: "composite"
@@ -11,15 +11,4 @@ runs:
1111
run: |
1212
set -e
1313
14-
export WARP_VERSION="1.0.13"
15-
16-
# Make sure dxc is in path.
17-
dxc --version
18-
19-
curl.exe -L --retry 5 https://www.nuget.org/api/v2/package/Microsoft.Direct3D.WARP/$WARP_VERSION -o warp.zip
20-
7z.exe e warp.zip -owarp build/native/bin/x64/d3d10warp.dll
21-
22-
for dir in ${{ inputs.target-dirs }}; do
23-
mkdir -p "$dir"
24-
cp -v warp/d3d10warp.dll "$dir"
25-
done
14+
cargo xtask install-warp --target-dir ${{ inputs.target-dir }}

.github/workflows/changelog.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: changelog
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/changelog.yml"
7+
- "CHANGELOG.md"
8+
- "xtask/**/*"
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
- labeled
14+
- unlabeled
15+
16+
env:
17+
#
18+
# Dependency versioning
19+
#
20+
21+
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
22+
REPO_MSRV: "1.88"
23+
24+
#
25+
# Environment variables
26+
#
27+
28+
CARGO_INCREMENTAL: false
29+
CARGO_TERM_COLOR: always
30+
RUST_LOG: info
31+
RUST_BACKTRACE: "1"
32+
CACHE_SUFFIX: c # cache busting
33+
34+
jobs:
35+
changelog:
36+
timeout-minutes: 2
37+
38+
name: Check changelog for errors
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: Checkout repo
43+
uses: actions/checkout@v6
44+
with:
45+
fetch-depth: 0
46+
47+
# NOTE: Keep label name(s) in sync. with `xtask`'s implementation.
48+
- name: Run `cargo xtask changelog …`
49+
run: |
50+
cargo xtask changelog "origin/${{ github.event.pull_request.base.ref }}" ${{ contains(github.event.pull_request.labels.*.name, 'changelog: released entry changed') && '--allow-released-changes' || '' }}

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194

195195
steps:
196196
- name: Checkout repo
197-
uses: actions/checkout@v5
197+
uses: actions/checkout@v6
198198

199199
- name: Install toolchain (repo MSRV - tier 1 or 2)
200200
if: matrix.tier == 1 || matrix.tier == 2
@@ -336,11 +336,11 @@ jobs:
336336
run: |
337337
set -e
338338
339-
# wgpu_core package
340339
cargo --locked doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} \
341340
--package wgpu-core \
342341
--package wgpu-hal \
343342
--package naga \
343+
--package wgpu \
344344
--all-features --no-deps --document-private-items
345345
346346
# We run minimal checks on the MSRV of the core crates, ensuring that
@@ -375,7 +375,7 @@ jobs:
375375

376376
steps:
377377
- name: Checkout repo
378-
uses: actions/checkout@v5
378+
uses: actions/checkout@v6
379379

380380
- name: Install core MSRV toolchain
381381
run: |
@@ -432,7 +432,7 @@ jobs:
432432

433433
steps:
434434
- name: Checkout repo
435-
uses: actions/checkout@v5
435+
uses: actions/checkout@v6
436436

437437
- name: Install toolchain
438438
run: |
@@ -473,7 +473,7 @@ jobs:
473473

474474
steps:
475475
- name: Checkout repo
476-
uses: actions/checkout@v5
476+
uses: actions/checkout@v6
477477

478478
- name: Install repo MSRV toolchain
479479
run: |
@@ -519,7 +519,7 @@ jobs:
519519

520520
steps:
521521
- name: Checkout repo
522-
uses: actions/checkout@v5
522+
uses: actions/checkout@v6
523523

524524
- name: Install repo MSRV toolchain
525525
run: |
@@ -558,7 +558,7 @@ jobs:
558558
if: matrix.os == 'windows-2022'
559559
uses: ./.github/actions/install-warp
560560
with:
561-
target-dirs: "target/llvm-cov-target/debug target/llvm-cov-target/debug/deps"
561+
target-dir: "target/llvm-cov-target/debug"
562562

563563
- name: (Windows) Install Mesa
564564
if: matrix.os == 'windows-2022'
@@ -642,7 +642,7 @@ jobs:
642642

643643
steps:
644644
- name: Checkout repo
645-
uses: actions/checkout@v5
645+
uses: actions/checkout@v6
646646

647647
- name: Install repo MSRV toolchain
648648
run: |
@@ -670,7 +670,7 @@ jobs:
670670
runs-on: ubuntu-latest
671671
steps:
672672
- name: Checkout repo
673-
uses: actions/checkout@v5
673+
uses: actions/checkout@v6
674674

675675
- name: Install repo MSRV toolchain
676676
run: |
@@ -691,7 +691,7 @@ jobs:
691691
run: taplo format --check --diff
692692

693693
- name: Check for typos
694-
uses: crate-ci/typos@v1.38.1
694+
uses: crate-ci/typos@v1.39.2
695695

696696
check-cts-runner:
697697
# runtime is normally 2 minutes
@@ -701,7 +701,7 @@ jobs:
701701
runs-on: ubuntu-latest
702702
steps:
703703
- name: Checkout repo
704-
uses: actions/checkout@v5
704+
uses: actions/checkout@v6
705705

706706
- name: Install MSRV toolchain
707707
run: |
@@ -739,7 +739,7 @@ jobs:
739739
runs-on: ubuntu-latest
740740
steps:
741741
- name: Checkout repo
742-
uses: actions/checkout@v5
742+
uses: actions/checkout@v6
743743

744744
- name: Run `cargo deny check`
745745
uses: EmbarkStudios/cargo-deny-action@v2
@@ -757,7 +757,7 @@ jobs:
757757
runs-on: ubuntu-latest
758758
steps:
759759
- name: Checkout repo
760-
uses: actions/checkout@v5
760+
uses: actions/checkout@v6
761761

762762
- name: Run `cargo deny check`
763763
uses: EmbarkStudios/cargo-deny-action@v2

.github/workflows/cts.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
steps:
5757
- name: checkout repo
58-
uses: actions/checkout@v5
58+
uses: actions/checkout@v6
5959

6060
- name: Install Repo MSRV toolchain
6161
run: |
@@ -71,7 +71,8 @@ jobs:
7171
- name: caching
7272
uses: Swatinem/rust-cache@v2
7373
with:
74-
prefix-key: v2-rust # Increment version for cache busting
74+
# The version number can be incremented for cache busting.
75+
prefix-key: v2-rust-${{ hashFiles('cts_runner/revision.txt') }}
7576
cache-directories: cts
7677

7778
# We enable line numbers for panics, but that's it
@@ -92,7 +93,7 @@ jobs:
9293
if: matrix.os == 'windows-2022'
9394
uses: ./.github/actions/install-warp
9495
with:
95-
target-dirs: "target/llvm-cov-target/debug"
96+
target-dir: "target/llvm-cov-target/debug"
9697

9798
- name: (Linux) Install Mesa
9899
if: matrix.os == 'ubuntu-24.04'

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Checkout repo
32-
uses: actions/checkout@v5
32+
uses: actions/checkout@v6
3333
with:
3434
persist-credentials: false
3535

@@ -61,7 +61,7 @@ jobs:
6161
RUSTC_BOOTSTRAP: 1
6262

6363
- name: Deploy the docs
64-
uses: JamesIves/github-pages-deploy-action@v4.7.3
64+
uses: JamesIves/github-pages-deploy-action@v4.7.4
6565
if: github.ref == 'refs/heads/trunk'
6666
with:
6767
token: ${{ secrets.WEB_DEPLOY }}

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
name: "${{ matrix.name }}"
5050

5151
steps:
52-
- uses: actions/checkout@v5
52+
- uses: actions/checkout@v6
5353

5454
# We can't rely on an override here, as that would only set
5555
# the toolchain for the current directory, not the newly generated project.

0 commit comments

Comments
 (0)