From 8caefceb8e73da4fd44fa23107bbb01d14596801 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Fri, 31 Jan 2025 04:33:10 -0500 Subject: [PATCH] Add rust-version to more crates (#7036) --- benches/Cargo.toml | 1 + examples/features/Cargo.toml | 1 + naga-cli/Cargo.toml | 6 ++++++ naga/xtask/Cargo.toml | 1 + player/Cargo.toml | 1 + tests/Cargo.toml | 1 + wgpu-info/Cargo.toml | 1 + wgpu-macros/Cargo.toml | 1 + wgpu/Cargo.toml | 1 + xtask/Cargo.toml | 1 + 10 files changed, 15 insertions(+) diff --git a/benches/Cargo.toml b/benches/Cargo.toml index d00cecf62..18c9ade4e 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true autobenches = false publish = false diff --git a/examples/features/Cargo.toml b/examples/features/Cargo.toml index 53029bd34..21416e740 100644 --- a/examples/features/Cargo.toml +++ b/examples/features/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true publish = false [package.metadata.cargo-machete] diff --git a/naga-cli/Cargo.toml b/naga-cli/Cargo.toml index bf84f9a65..2d00c4a06 100644 --- a/naga-cli/Cargo.toml +++ b/naga-cli/Cargo.toml @@ -8,6 +8,12 @@ repository = "https://github.com/gfx-rs/wgpu/tree/trunk/naga-cli" keywords = ["shader", "SPIR-V", "GLSL", "MSL"] license = "MIT OR Apache-2.0" +# Override the workspace's `rust-version` key. Firefox uses `cargo vendor` to +# copy the crates it actually uses out of the workspace, so it's meaningful for +# them to have less restrictive MSRVs individually than the workspace as a +# whole, if their code permits. See `../README.md` for details. +rust-version = "1.76" + [[bin]] name = "naga" path = "src/bin/naga.rs" diff --git a/naga/xtask/Cargo.toml b/naga/xtask/Cargo.toml index 2b3f0247a..5e779d294 100644 --- a/naga/xtask/Cargo.toml +++ b/naga/xtask/Cargo.toml @@ -3,6 +3,7 @@ name = "xtask" version = "0.1.0" edition = "2021" publish = false +rust-version = "1.83" [dependencies] anyhow = "1" diff --git a/player/Cargo.toml b/player/Cargo.toml index edeab7532..086e2563a 100644 --- a/player/Cargo.toml +++ b/player/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true publish = false [lib] diff --git a/tests/Cargo.toml b/tests/Cargo.toml index af37a472a..10a0555aa 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true autotests = false publish = false diff --git a/wgpu-info/Cargo.toml b/wgpu-info/Cargo.toml index a287887a9..56ddf860b 100644 --- a/wgpu-info/Cargo.toml +++ b/wgpu-info/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true [dependencies] anyhow.workspace = true diff --git a/wgpu-macros/Cargo.toml b/wgpu-macros/Cargo.toml index 3c605e655..97c4f3139 100644 --- a/wgpu-macros/Cargo.toml +++ b/wgpu-macros/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true exclude = ["Cargo.lock"] publish = false diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index c6923f1be..a69809c64 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -8,6 +8,7 @@ homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true +rust-version.workspace = true readme = "../README.md" exclude = ["Cargo.lock"] diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 502a59655..3f1022efb 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -2,6 +2,7 @@ name = "xtask" version = "0.1.0" edition = "2021" +rust-version = "1.83" publish = false [dependencies]