Skip to content

Commit

Permalink
Move minimum supported rust version (MSRV) from 1.64 back to 1.63.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed Nov 22, 2022
1 parent 631ae81 commit 6ad7c42
Show file tree
Hide file tree
Showing 16 changed files with 238 additions and 303 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
RUST_BACKTRACE: 1
RUST_VERSION: 1.64
RUST_VERSION: 1.63
PKG_CONFIG_ALLOW_CROSS: 1 # allow android to work
RUSTFLAGS: --cfg=web_sys_unstable_apis -D warnings
RUSTDOCFLAGS: -Dwarnings
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
RUST_BACKTRACE: 1
RUST_VERSION: 1.64
RUST_VERSION: 1.63

jobs:
cts:
Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ Bottom level categories:

### Testing/Internal

- Update the `minimum supported rust version` to 1.65
- Use cargo 1.64 workspace inheritance feature. By @jinleili in [#3107](https://github.com/gfx-rs/wgpu/pull/3107)
- Update the `minimum supported rust version` to 1.63

#### Vulkan

Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 3 additions & 114 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,123 +10,12 @@ members = [
"wgpu-hal",
"wgpu-info",
"wgpu-types",
"run-wasm"
"run-wasm",
]
exclude = [
]
exclude = []
default-members = ["wgpu", "wgpu-hal", "wgpu-info"]

[workspace.package]
edition = "2021"
rust-version = "1.64"
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
homepage = "https://wgpu.rs/"
repository = "https://github.com/gfx-rs/wgpu"
version = "0.14.0"
authors = ["wgpu developers"]

[workspace.dependencies.wgc]
package = "wgpu-core"
path = "./wgpu-core"

[workspace.dependencies.wgt]
package = "wgpu-types"
path = "./wgpu-types"

[workspace.dependencies.hal]
package = "wgpu-hal"
path = "./wgpu-hal"

[workspace.dependencies.naga]
git = "https://github.com/gfx-rs/naga"
rev = "e7fc8e6"
version = "0.10"

[workspace.dependencies]
arrayvec = "0.7"
async-executor = "1.0"
bitflags = "1"
bitflags_serde_shim = "0.2"
bit-vec = "0.6"
bytemuck = "1.4"
cargo-run-wasm = "0.2.0"
cfg_aliases = "0.1"
cfg-if = "1"
codespan-reporting = "0.11"
ddsfile = "0.5"
env_logger = "0.9"
futures-intrusive = "0.4"
fxhash = "0.2.1"
glam = "0.21.3"
libloading = "0.7"
log = "0.4"
nanorand = { version = "0.7", default-features = false }
# Opt out of noise's "default-features" to avoid "image" feature as a dependency count optimization.
# This will not be required in the next release since it has been removed from the default feature in https://github.com/Razaekel/noise-rs/commit/1af9e1522236b2c584fb9a02150c9c67a5e6bb04#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
noise = { version = "0.7", default-features = false }
obj = "0.10"
# parking_lot 0.12 switches from `winapi` to `windows`; permit either
parking_lot = ">=0.11,<0.13"
png = "0.17.5"
pollster = "0.2"
profiling = { version = "1", default-features = false }
raw-window-handle = "0.5"
renderdoc-sys = "0.7.1"
ron = "0.8"
serde = "1"
serde_json = "1.0.85"
smallvec = "1"
static_assertions = "1.1.0"
thiserror = "1"
wgpu = { version = "0.14", path = "./wgpu" }
winit = "0.27.1"

# Metal dependencies
block = "0.1"
foreign-types = "0.3"
mtl = { package = "metal", version = "0.24.0" }
objc = "0.2.5"
core-graphics-types = "0.1"

# Vulkan dependencies
ash = "0.37"
gpu-alloc = "0.5"
gpu-descriptor = "0.2"
android_system_properties = "0.1.1"

# DX dependencies
bit-set = "0.5"
native = { package = "d3d12", version = "0.5.0" }
range-alloc = "0.1"
winapi = "0.3"

# Gles dependencies
egl = { package = "khronos-egl", version = "4.1" }
# glow = { version = "0.11.2", optional = true }
# TODO: New glow release
glow = { git = "https://github.com/grovesNL/glow/", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909" }
glutin = "0.29.1"

# wasm32 dependencies
console_error_panic_hook = "0.1.7"
console_log = "0.2"
js-sys = "0.3.60"
wasm-bindgen = "0.2.83"
wasm-bindgen-futures = "0.4.33"
web-sys = "0.3.60"

# deno dependencies
deno_console = "0.69.0"
deno_core = "0.151.0"
deno_url = "0.69.0"
deno_web = "0.100.0"
deno_webidl = "0.69.0"
deno_webgpu = { path = "./deno_webgpu" }
tokio = "1.19.0"
termcolor = "1.1.2"
wgpu-core = { path = "./wgpu-core" }
wgpu-types = { path = "./wgpu-types" }

[patch."https://github.com/gfx-rs/naga"]
#naga = { path = "../naga" }

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ For an overview of all the components in the gfx-rs ecosystem, see [the big pict

### MSRV policy

Minimum Supported Rust Version is **1.64**.
`wgpu`'s Minimum Supported Rust Version (MSRV) is **1.63**.
It is enforced on CI (in "/.github/workflows/ci.yml") with `RUST_VERSION` variable.
This version can only be upgraded in breaking releases.
This should never be ahead of Firefox's MSRV for nightly builds,
which is determined by the value of `MINIMUM_RUST_VERSION`
in [`python/mozboot/mozboot/util.py`](https://searchfox.org/mozilla-central/source/python/mozboot/mozboot/util.py).

## Getting Started

Expand Down
23 changes: 12 additions & 11 deletions cts_runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
name = "cts_runner"
version = "0.1.0"
authors = [
"Luca Casonato <hello@lcas.dev>"
"Luca Casonato <hello@lcas.dev>",
]
edition.workspace = true
edition = "2021"
description = "CTS runner for wgpu"
license.workspace = true
license = "MIT OR Apache-2.0"
publish = false
resolver = "2"

[dependencies]
deno_console.workspace = true
deno_core.workspace = true
deno_url.workspace = true
deno_web.workspace = true
deno_webidl.workspace = true
deno_webgpu.workspace = true
tokio = { workspace = true, features = ["full"] }
termcolor.workspace = true
deno_console = "0.69.0"
deno_core = "0.151.0"
deno_url = "0.69.0"
deno_web = "0.100.0"
deno_webidl = "0.69.0"
deno_webgpu = { path = "../deno_webgpu" }
tokio = { version = "1.19.0", features = ["full"] }
termcolor = "1.1.2"
14 changes: 7 additions & 7 deletions deno_webgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
name = "deno_webgpu"
version = "0.63.0"
authors = ["the Deno authors"]
edition.workspace = true
edition = "2021"
license = "MIT"
readme = "README.md"
repository.workspace = true
repository = "https://github.com/gfx-rs/wgpu"
description = "WebGPU implementation for Deno"

[dependencies]
deno_core.workspace = true
serde = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["full"] }
wgpu-core = { workspace = true, features = ["trace", "replay", "serde", "strict_asserts", "wgsl"] }
wgpu-types = { workspace = true, features = ["trace", "replay", "serde"] }
deno_core = "0.151.0"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.19", features = ["full"] }
wgpu-core = { path = "../wgpu-core", features = ["trace", "replay", "serde", "strict_asserts", "wgsl"] }
wgpu-types = { path = "../wgpu-types", features = ["trace", "replay", "serde"] }
13 changes: 8 additions & 5 deletions dummy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[package]
name = "dummy"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
version = "0.1.0"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
]
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false

[features]

[dependencies.wgc]
workspace = true
path = "../wgpu-core"
package = "wgpu-core"
features = ["serial-pass", "trace"]
34 changes: 19 additions & 15 deletions player/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
[package]
name = "player"
version.workspace = true
authors.workspace = true
edition.workspace = true
version = "0.1.0"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
]
edition = "2021"
description = "WebGPU trace player"
homepage.workspace = true
repository.workspace = true
keywords.workspace = true
license.workspace = true
homepage = "https://github.com/gfx-rs/wgpu"
repository = "https://github.com/gfx-rs/wgpu"
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
publish = false

[features]
angle = ["wgc/angle"]
vulkan-portability = ["wgc/vulkan-portability"]

[dependencies]
env_logger.workspace = true
log.workspace = true
raw-window-handle.workspace = true
ron.workspace = true
winit = { workspace = true, optional = true }
env_logger = "0.9"
log = "0.4"
raw-window-handle = "0.5"
ron = "0.8"
winit = { version = "0.27", optional = true }

[dependencies.wgt]
workspace = true
path = "../wgpu-types"
package = "wgpu-types"
features = ["replay"]

[dependencies.wgc]
workspace = true
path = "../wgpu-core"
package = "wgpu-core"
features = ["replay", "raw-window-handle", "strict_asserts", "wgsl"]

[dev-dependencies]
serde.workspace = true
serde = "1"
7 changes: 3 additions & 4 deletions run-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[package]
name = "run-wasm"
version.workspace = true
authors.workspace = true
edition.workspace = true
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cargo-run-wasm.workspace = true
cargo-run-wasm = "0.2.0"
Loading

0 comments on commit 6ad7c42

Please sign in to comment.