update msrv to 1.56

This commit is contained in:
teoxoy authored and Dzmitry Malyshau committed 2022-04-16 08:32:31 -07:00
1 parent 1720725014
commit 33085863b7
3 files changed
+5 -35

No files matched your search

+3 -17
View File
@@ -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
View File
@@ -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"
+1 -13
View File
@@ -4,7 +4,7 @@
[![Crates.io](https://img.shields.io/crates/v/naga.svg?label=naga)](https://crates.io/crates/naga)
[![Docs.rs](https://docs.rs/naga/badge.svg)](https://docs.rs/naga)
[![Build Status](https://github.com/gfx-rs/naga/workflows/pipeline/badge.svg)](https://github.com/gfx-rs/naga/actions)
![MSRV](https://img.shields.io/badge/rustc-1.43+-blue.svg)
![MSRV](https://img.shields.io/badge/rustc-1.56+-blue.svg)
[![codecov.io](https://codecov.io/gh/gfx-rs/naga/branch/master/graph/badge.svg?token=9VOKYO8BM2)](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"
```