mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 09:21:04 +01:00
update msrv to 1.56
This commit is contained in:
1 parent
1720725014
commit
33085863b7
3 files changed
+5
-35
No files matched your search
@@ -11,27 +11,13 @@ jobs:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: "1.43.0"
|
||||
toolchain: "1.56.0"
|
||||
override: true
|
||||
- uses: actions-rs/cargo@v1
|
||||
name: Downgrade bitflags to MSRV
|
||||
with:
|
||||
command: update
|
||||
args: -p bitflags --precise 1.2.1
|
||||
- uses: actions-rs/cargo@v1
|
||||
name: Downgrade indexmap to MSRV
|
||||
with:
|
||||
command: update
|
||||
args: -p indexmap --precise 1.6.2
|
||||
- uses: actions-rs/cargo@v1
|
||||
name: Test all features
|
||||
with:
|
||||
# we could use `test` but `criterion` is a dev dependency,
|
||||
# and it doesn't build with our MSRV
|
||||
command: check
|
||||
# `cli` already enables most features,
|
||||
# except for `arbitrary`, which requires Rust-1.51
|
||||
args: --workspace
|
||||
command: test
|
||||
args: --all-features --workspace
|
||||
- name: Check snapshots
|
||||
run: git diff --exit-code -- tests/out
|
||||
test:
|
||||
|
||||
+1
-5
@@ -10,6 +10,7 @@ keywords = ["shader", "SPIR-V", "GLSL", "MSL"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
exclude = ["bin/**/*", "tests/**/*", "Cargo.lock", "target/**/*"]
|
||||
resolver = "2"
|
||||
rust-version = "1.56"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
@@ -41,11 +42,6 @@ validate = []
|
||||
name = "criterion"
|
||||
harness = false
|
||||
|
||||
# MSRV warnings:
|
||||
# - arbitrary 1.0.3 requires Rust-1.51
|
||||
# - bitflags 1.3 requires Rust-1.46
|
||||
# - indexmap 1.7 requires Rust-1.49
|
||||
|
||||
[dependencies]
|
||||
arbitrary = { version = "1", features = ["derive"], optional = true }
|
||||
bitflags = "1"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
[](https://crates.io/crates/naga)
|
||||
[](https://docs.rs/naga)
|
||||
[](https://github.com/gfx-rs/naga/actions)
|
||||

|
||||

|
||||
[](https://codecov.io/gh/gfx-rs/naga)
|
||||
|
||||
The shader translation library for the needs of [wgpu](https://github.com/gfx-rs/wgpu) and [gfx-rs](https://github.com/gfx-rs/gfx) projects.
|
||||
@@ -66,15 +66,3 @@ make validate-dot # for dot files, requires GraphViz installed
|
||||
make validate-wgsl # for WGSL shaders
|
||||
make validate-hlsl # for HLSL shaders. Note: this Make target makes use of the "sh" shell. This is not the default shell in Windows.
|
||||
```
|
||||
|
||||
## MSRV
|
||||
|
||||
The `naga` codebase's MSRV is 1.43. However some newer versions of our dependencies have newer MSRVs than that. Here are a list of all known MSRV breaking dependencies and the versions that hold to MSRV.
|
||||
|
||||
- `bitflags`: `>1.3` have an MSRV of 1.46. `<=1.2` has an MSRV of 1.43 or earlier.
|
||||
|
||||
If you want to use `naga` with `1.43` add the following to your Cargo.toml dependency list even if you don't use bitflags yourself:
|
||||
|
||||
```toml
|
||||
bitflags = "<1.3"
|
||||
```
|
||||
Reference in new issue
Block a user