Skip to content

Commit 84f9432

Browse files
committed
Move REPO_MSRV to 1.85
1 parent 031ed26 commit 84f9432

File tree

18 files changed

+49
-48
lines changed

18 files changed

+49
-48
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
CI_BINARY_BUILD: "build20"
3737

3838
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
39-
REPO_MSRV: "1.83"
39+
REPO_MSRV: "1.85"
4040
# This is the MSRV used by the `wgpu-core`, `wgpu-hal`, and `wgpu-types` crates,
4141
# to ensure that they can be used with firefox.
4242
CORE_MSRV: "1.76"
@@ -164,20 +164,9 @@ jobs:
164164
tier: 2
165165
kind: wgpu-only
166166

167-
# TODO: Uncomment once web-sys updates past 0.3.76
168-
# See https://github.com/rustwasm/wasm-bindgen/pull/4378 for details
169-
# - name: WebAssembly Core 1.0
170-
# os: ubuntu-22.04
171-
# target: wasm32v1-none
172-
# tier: 2
173-
# kind: no_std
174-
175-
# Bare-metal x86-64
176-
# TODO: Remove once web-sys updates past 0.3.76
177-
# Included while wasm32v1-none is failing to ensure `no_std` does not regress
178-
- name: no_std x86_64
167+
- name: WebAssembly Core 1.0
179168
os: ubuntu-22.04
180-
target: x86_64-unknown-none
169+
target: wasm32v1-none
181170
tier: 2
182171
kind: no_std
183172

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Docs
33
on:
44
pull_request:
55
paths:
6-
- '.github/workflows/docs.yml'
6+
- ".github/workflows/docs.yml"
77
push:
88
branches:
99
- trunk
1010

1111
env:
1212
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
13-
REPO_MSRV: "1.83"
13+
REPO_MSRV: "1.85"
1414

1515
CARGO_INCREMENTAL: false
1616
CARGO_TERM_COLOR: always

.github/workflows/generate.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
#
1414

1515
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
16-
REPO_MSRV: "1.83"
16+
REPO_MSRV: "1.85"
1717
RUSTFLAGS: -D warnings
1818

1919
jobs:
@@ -36,10 +36,11 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v4
3838

39+
# We can't rely on an override here, as that would only set
40+
# the toolchain for the current directory, not the newly generated project.
3941
- name: Install repo MSRV toolchain
4042
run: |
4143
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal
42-
rustup override set ${{ env.REPO_MSRV }}
4344
cargo -V
4445
4546
- name: Disable debug symbols
@@ -74,4 +75,4 @@ jobs:
7475
[patch.crates-io]
7576
wgpu = { path = "../wgpu/wgpu" }
7677
EOF
77-
cargo check
78+
cargo +${{ env.REPO_MSRV }} check

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ref_as_ptr = "warn"
5151

5252
[workspace.package]
5353
edition = "2021"
54-
rust-version = "1.83"
54+
rust-version = "1.85"
5555
keywords = ["graphics"]
5656
license = "MIT OR Apache-2.0"
5757
homepage = "https://wgpu.rs/"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ On Linux, you can point to them using `LD_LIBRARY_PATH` environment.
148148

149149
Due to complex dependants, we have two MSRV policies:
150150

151-
- `naga`, `wgpu-core`, `wgpu-hal`, and `wgpu-types`'s MSRV is **1.76**, but may be lower than the rest of the workspace in the future.
152-
- The rest of the workspace has an MSRV of **1.83** as well right now, but may be higher than above listed crates.
151+
- `naga`, `wgpu-core`, `wgpu-hal`, and `wgpu-types`'s MSRV is **1.76**.
152+
- The rest of the workspace has an MSRV of **1.85**.
153153

154154
It is enforced on CI (in "/.github/workflows/ci.yml") with the `CORE_MSRV` and `REPO_MSRV` variables.
155155
This version can only be upgraded in breaking releases, though we release a breaking version every three months.

examples/standalone/01_hello_compute/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "wgpu-example-01-hello-compute"
33
edition = "2021"
4-
rust-version = "1.83"
4+
rust-version = "1.85"
55
publish = false
66

77
[dependencies]

examples/standalone/02_hello_window/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "wgpu-example-02-hello-window"
33
edition = "2021"
4-
rust-version = "1.83"
4+
rust-version = "1.85"
55
publish = false
66

77
[dependencies]

naga/src/back/spv/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl Instruction {
108108
}
109109

110110
pub(super) fn to_words(&self, sink: &mut impl Extend<Word>) {
111-
sink.extend(Some(self.wc << 16 | self.op as u32));
111+
sink.extend(Some((self.wc << 16) | self.op as u32));
112112
sink.extend(self.type_id);
113113
sink.extend(self.result_id);
114114
sink.extend(self.operands.iter().cloned());

naga/src/front/spv/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5572,7 +5572,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
55725572
8 => {
55735573
inst.expect(5)?;
55745574
let high = self.next()?;
5575-
crate::Literal::U64(u64::from(high) << 32 | u64::from(low))
5575+
crate::Literal::U64((u64::from(high) << 32) | u64::from(low))
55765576
}
55775577
_ => return Err(Error::InvalidTypeWidth(width as u32)),
55785578
}
@@ -5587,7 +5587,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
55875587
8 => {
55885588
inst.expect(5)?;
55895589
let high = self.next()?;
5590-
crate::Literal::I64((u64::from(high) << 32 | u64::from(low)) as i64)
5590+
crate::Literal::I64(((u64::from(high) << 32) | u64::from(low)) as i64)
55915591
}
55925592
_ => return Err(Error::InvalidTypeWidth(width as u32)),
55935593
}

naga/xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "xtask"
33
version = "0.1.0"
44
edition = "2021"
55
publish = false
6-
rust-version = "1.83"
6+
rust-version = "1.85"
77

88
[dependencies]
99
anyhow = "1"

0 commit comments

Comments
 (0)