diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec707a12a67..5b6ad19583d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/cts.yml b/.github/workflows/cts.yml index 332fc7fb6db..e9106adc3f5 100644 --- a/.github/workflows/cts.yml +++ b/.github/workflows/cts.yml @@ -9,7 +9,7 @@ on: env: RUST_BACKTRACE: 1 - RUST_VERSION: 1.64 + RUST_VERSION: 1.63 jobs: cts: diff --git a/CHANGELOG.md b/CHANGELOG.md index 1385d77d746..837781624b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.lock b/Cargo.lock index feb64e2729e..902c957a5fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -667,7 +667,7 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] name = "dummy" -version = "0.14.0" +version = "0.1.0" dependencies = [ "wgpu-core", ] @@ -1697,7 +1697,7 @@ checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" [[package]] name = "player" -version = "0.14.0" +version = "0.1.0" dependencies = [ "env_logger", "log", @@ -1905,7 +1905,7 @@ dependencies = [ [[package]] name = "run-wasm" -version = "0.14.0" +version = "0.1.0" dependencies = [ "cargo-run-wasm", ] diff --git a/Cargo.toml b/Cargo.toml index 1eb3768f0ef..6fb12398c4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/README.md b/README.md index 48590872acd..9da5ca5c58d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ 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**. +Minimum Supported Rust Version 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. diff --git a/cts_runner/Cargo.toml b/cts_runner/Cargo.toml index 03e5ffd9fca..63df3d1974a 100644 --- a/cts_runner/Cargo.toml +++ b/cts_runner/Cargo.toml @@ -2,19 +2,20 @@ name = "cts_runner" version = "0.1.0" authors = [ - "Luca Casonato " + "Luca Casonato ", ] -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" diff --git a/deno_webgpu/Cargo.toml b/deno_webgpu/Cargo.toml index 3091c9c088c..ea7cbf53a75 100644 --- a/deno_webgpu/Cargo.toml +++ b/deno_webgpu/Cargo.toml @@ -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"] } diff --git a/dummy/Cargo.toml b/dummy/Cargo.toml index c4304724b25..796bde96f2d 100644 --- a/dummy/Cargo.toml +++ b/dummy/Cargo.toml @@ -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 ", +] +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"] diff --git a/player/Cargo.toml b/player/Cargo.toml index 814ed26ae7b..34a54f9c2a8 100644 --- a/player/Cargo.toml +++ b/player/Cargo.toml @@ -1,13 +1,15 @@ [package] name = "player" -version.workspace = true -authors.workspace = true -edition.workspace = true +version = "0.1.0" +authors = [ + "Dzmitry Malyshau ", +] +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] @@ -15,19 +17,21 @@ 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" diff --git a/run-wasm/Cargo.toml b/run-wasm/Cargo.toml index 817c687a044..3ac77b26d8a 100644 --- a/run-wasm/Cargo.toml +++ b/run-wasm/Cargo.toml @@ -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" diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index c92865b73d2..532d7384280 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "wgpu-core" -version.workspace = true -authors.workspace = true -edition.workspace = true +version = "0.14.0" +authors = ["wgpu developers"] +edition = "2021" description = "WebGPU core logic on wgpu-hal" -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" [package.metadata.docs.rs] all-features = true @@ -33,48 +33,55 @@ wgsl = ["naga/wgsl-in"] vulkan-portability = ["hal/vulkan"] [dependencies] -arrayvec.workspace = true -bitflags.workspace = true -bit-vec.workspace = true -codespan-reporting.workspace = true -fxhash.workspace = true -log.workspace = true -parking_lot.workspace = true -profiling.workspace = true -raw-window-handle = { workspace = true, optional = true } -ron = { workspace = true, optional = true } -serde = { workspace = true, features = ["serde_derive"], optional = true } -smallvec.workspace = true -thiserror.workspace = true +arrayvec = "0.7" +bitflags = "1.0" +bit-vec = "0.6" +codespan-reporting = "0.11" +fxhash = "0.2" +log = "0.4" +# parking_lot 0.12 switches from `winapi` to `windows`; permit either +parking_lot = ">=0.11,<0.13" +profiling = { version = "1", default-features = false } +raw-window-handle = { version = "0.5", optional = true } +ron = { version = "0.8", optional = true } +serde = { version = "1.0", features = ["serde_derive"], optional = true } +smallvec = "1" +thiserror = "1" [dependencies.naga] -workspace = true +git = "https://github.com/gfx-rs/naga" +rev = "e7fc8e6" +version = "0.10" features = ["clone", "span", "validate"] [dependencies.wgt] -workspace = true +path = "../wgpu-types" +package = "wgpu-types" +version = "0.14" [dependencies.hal] -workspace = true +path = "../wgpu-hal" +package = "wgpu-hal" +version = "0.14" [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] -web-sys = { workspace = true, features = ["HtmlCanvasElement", "OffscreenCanvas"] } +web-sys = { version = "0.3", features = ["HtmlCanvasElement", "OffscreenCanvas"] } [target.'cfg(target_arch = "wasm32")'.dependencies] -hal = { workspace = true, features = ["gles"] } +hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", features = ["gles"] } [target.'cfg(all(not(target_arch = "wasm32"), any(target_os = "ios", target_os = "macos")))'.dependencies] -hal = { workspace = true, features = ["metal"] } +hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", features = ["metal"] } #Note: could also enable "vulkan" for Vulkan Portability [target.'cfg(all(not(target_arch = "wasm32"), unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies] -hal = { workspace = true, features = ["vulkan", "gles", "renderdoc"] } +hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", features = ["vulkan", "gles", "renderdoc"] } [target.'cfg(all(not(target_arch = "wasm32"), windows))'.dependencies] -hal = { workspace = true, features = ["vulkan", "dx12", "dx11", "renderdoc"] } +hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", features = ["vulkan", "dx12", "dx11", "renderdoc"] } [target.'cfg(target_os = "emscripten")'.dependencies] -hal = { workspace = true, features = ["emscripten"] } +hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", features = ["emscripten"] } [build-dependencies] -cfg_aliases.workspace = true +cfg_aliases = "0.1" diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index 79c58322197..718905e76a2 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "wgpu-hal" -version.workspace = true -authors.workspace = true -edition.workspace = true +version = "0.14.0" +authors = ["wgpu developers"] +edition = "2021" description = "WebGPU hardware abstraction layer" -homepage.workspace = true -repository.workspace = true -keywords.workspace = true -license.workspace = true -rust-version.workspace = true +homepage = "https://github.com/gfx-rs/wgpu" +repository = "https://github.com/gfx-rs/wgpu" +keywords = ["graphics"] +license = "MIT OR Apache-2.0" +rust-version = "1.60" [package.metadata.docs.rs] # Ideally we would enable all the features. @@ -39,76 +39,88 @@ name = "raw-gles" required-features = ["gles"] [dependencies] -bitflags.workspace = true -parking_lot.workspace = true -profiling.workspace = true -raw-window-handle.workspace = true -thiserror.workspace = true +bitflags = "1.0" +# parking_lot 0.12 switches from `winapi` to `windows`; permit either +parking_lot = ">=0.11,<0.13" +profiling = { version = "1", default-features = false } +raw-window-handle = "0.5" +thiserror = "1" # backends common -arrayvec.workspace = true -fxhash.workspace = true -log.workspace = true -renderdoc-sys = { workspace = true, optional = true } +arrayvec = "0.7" +fxhash = "0.2.1" +log = "0.4" +renderdoc-sys = { version = "0.7.1", optional = true } # backend: Metal -block = { workspace = true, optional = true } -foreign-types = { workspace = true, optional = true } +block = { version = "0.1", optional = true } +foreign-types = { version = "0.3", optional = true } # backend: Vulkan -ash = { workspace = true, optional = true } -gpu-alloc = { workspace = true, optional = true } -gpu-descriptor = { workspace = true, optional = true } -smallvec = { workspace = true, optional = true, features = ["union"] } +ash = { version = "0.37", optional = true } +gpu-alloc = { version = "0.5", optional = true } +gpu-descriptor = { version = "0.2", optional = true } +smallvec = { version = "1", optional = true, features = ["union"] } # backend: Gles -glow = { workspace = true, optional = true } +#glow = { version = "0.11.2", optional = true } +# TODO: New glow release +glow = { git = "https://github.com/grovesNL/glow/", rev = "c8a011fcd57a5c68cc917ed394baa484bdefc909", optional = true } # backend: Dx12 -bit-set = { workspace = true, optional = true } -range-alloc = { workspace = true, optional = true } +bit-set = { version = "0.5", optional = true } +range-alloc = { version = "0.1", optional = true } [dependencies.wgt] -workspace = true +package = "wgpu-types" +path = "../wgpu-types" +version = "0.14" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -egl = { workspace = true, features = ["dynamic"], optional = true } -libloading = { workspace = true, optional = true } +egl = { package = "khronos-egl", version = "4.1", features = ["dynamic"], optional = true } +#Note: it's only unused on Apple platforms +libloading = { version = "0.7", optional = true } [target.'cfg(target_os = "emscripten")'.dependencies] -egl = { workspace = true, features = ["static", "no-pkg-config"] } +egl = { package = "khronos-egl", version = "4.1", features = ["static", "no-pkg-config"] } #Note: it's unused by emscripten, but we keep it to have single code base in egl.rs -libloading = { workspace = true, optional = true } +libloading = { version = "0.7", optional = true } [target.'cfg(windows)'.dependencies] -winapi = { workspace = true, features = ["libloaderapi", "windef", "winuser", "dcomp"] } -native = { workspace = true, features = ["libloading"], optional = true } +winapi = { version = "0.3", features = ["libloaderapi", "windef", "winuser", "dcomp"] } +native = { package = "d3d12", version = "0.5.0", features = ["libloading"], optional = true } +# native = { package = "d3d12", git = "https://github.com/gfx-rs/d3d12-rs.git", rev = "ffe5e261da0a6cb85332b82ab310abd2a7e849f6", features = ["libloading"], optional = true } [target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies] -mtl.workspace = true -objc.workspace = true -core-graphics-types.workspace = true +mtl = { package = "metal", version = "0.24.0" } +# mtl = { package = "metal", git = "https://github.com/gfx-rs/metal-rs", rev = "1aaa903" } +objc = "0.2.5" +core-graphics-types = "0.1" [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] -wasm-bindgen.workspace = true -web-sys = { workspace = true, features = ["Window", "HtmlCanvasElement", "WebGl2RenderingContext", "OffscreenCanvas"] } -js-sys.workspace = true +wasm-bindgen = { version = "0.2" } +web-sys = { version = "=0.3.60", features = ["Window", "HtmlCanvasElement", "WebGl2RenderingContext", "OffscreenCanvas"] } +js-sys = { version = "0.3" } [target.'cfg(target_os = "android")'.dependencies] -android_system_properties.workspace = true +android_system_properties = "0.1.1" [dependencies.naga] -workspace = true +git = "https://github.com/gfx-rs/naga" +rev = "e7fc8e6" +version = "0.10" features = ["clone"] # DEV dependencies + [dev-dependencies.naga] -workspace = true +git = "https://github.com/gfx-rs/naga" +rev = "e7fc8e6" features = ["wgsl-in"] [dev-dependencies] -env_logger.workspace = true -winit.workspace = true # for "halmark" example +env_logger = "0.9" +winit = "0.27.1" # for "halmark" example [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -glutin.workspace = true # for "gles" example +glutin = "0.29.1" # for "gles" example diff --git a/wgpu-info/Cargo.toml b/wgpu-info/Cargo.toml index 1f9f466e3c6..84650d1b7af 100644 --- a/wgpu-info/Cargo.toml +++ b/wgpu-info/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "wgpu-info" -version.workspace = true -authors.workspace = true -edition.workspace = true +version = "0.14.0" +authors = ["wgpu developers"] +edition = "2021" description = "Adapter information and per-adapter test program" -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" [dependencies] -env_logger.workspace = true -wgpu.workspace = true +env_logger = "0.9" +wgpu = { version = "0.14", path = "../wgpu" } diff --git a/wgpu-types/Cargo.toml b/wgpu-types/Cargo.toml index 44b046e37c6..3d9d0a898ad 100644 --- a/wgpu-types/Cargo.toml +++ b/wgpu-types/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "wgpu-types" -version.workspace = true -authors.workspace = true -edition.workspace = true +version = "0.14.0" +authors = ["wgpu developers"] +edition = "2021" description = "WebGPU types" -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" [package.metadata.docs.rs] all-features = true @@ -20,9 +20,9 @@ trace = ["serde", "bitflags_serde_shim"] replay = ["serde", "bitflags_serde_shim"] [dependencies] -bitflags.workspace = true -serde = { workspace = true, features = ["serde_derive"], optional = true } -bitflags_serde_shim = { workspace = true, optional = true } +bitflags = "1.0" +serde = { version = "1.0", features = ["serde_derive"], optional = true } +bitflags_serde_shim = { version = "0.2", optional = true } [dev-dependencies] -serde_json.workspace = true +serde_json = "1.0.85" diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 36272c0fda8..7e18b91a86f 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "wgpu" -version.workspace = true -authors.workspace = true -edition.workspace = true +version = "0.14.0" +authors = ["wgpu developers"] +edition = "2021" description = "Rusty WebGPU API wrapper" -homepage.workspace = true -repository.workspace = true -keywords.workspace = true -license.workspace = true +homepage = "https://wgpu.rs/" +repository = "https://github.com/gfx-rs/wgpu/tree/v0.13" +keywords = ["graphics"] +license = "MIT OR Apache-2.0" exclude = [ "etc/**/*", "examples/**/*.png", # Image comparison test @@ -89,64 +89,81 @@ vulkan-portability = ["wgc/vulkan-portability"] expose-ids = [] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc] -workspace = true +package = "wgpu-core" +path = "../wgpu-core" +version = "0.14" features = ["raw-window-handle"] [target.'cfg(target_arch = "wasm32")'.dependencies.wgc] -workspace = true +package = "wgpu-core" +path = "../wgpu-core" +version = "0.14" features = ["raw-window-handle"] optional = true [dependencies.wgt] -workspace = true +package = "wgpu-types" +path = "../wgpu-types" +version = "0.14" [target.'cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))'.dependencies.hal] -workspace = true +package = "wgpu-hal" +path = "../wgpu-hal" +version = "0.14" [dependencies] -arrayvec.workspace = true -log.workspace = true -parking_lot.workspace = true -raw-window-handle.workspace = true -serde = { workspace = true, features = ["derive"], optional = true } -smallvec.workspace = true -static_assertions.workspace = true +arrayvec = "0.7" +log = "0.4" +# parking_lot 0.12 switches from `winapi` to `windows`; permit either +parking_lot = ">=0.11,<0.13" +raw-window-handle = "0.5" +serde = { version = "1", features = ["derive"], optional = true } +smallvec = "1" +static_assertions = "1.1.0" [dev-dependencies] -bitflags.workspace = true -cfg-if.workspace = true -bytemuck = { workspace = true, features = ["derive"] } -glam.workspace = true -ddsfile.workspace = true -futures-intrusive.workspace = true -env_logger.workspace = true -log.workspace = true -noise = { workspace = true } -obj.workspace = true -pollster.workspace = true -png.workspace = true -nanorand = { workspace = true, features = ["wyrand"] } -winit.workspace = true # for "halmark" example # for "halmark" example +bitflags = "1" +bytemuck = { version = "1.4", features = ["derive"] } +cfg-if = "1" +glam = "0.21.3" +ddsfile = "0.5" +futures-intrusive = "0.4" +env_logger = "0.9" +log = "0.4" +# 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" +pollster = "0.2" +png = "0.17" +nanorand = { version = "0.7", default-features = false, features = ["wyrand"] } +winit = "0.27.1" # for "halmark" example [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -async-executor.workspace = true +async-executor = "1.0" [dependencies.naga] -workspace = true +git = "https://github.com/gfx-rs/naga" +rev = "e7fc8e6" +version = "0.10" features = ["clone"] optional = true # used to test all the example shaders [dev-dependencies.naga] -workspace = true +git = "https://github.com/gfx-rs/naga" +rev = "e7fc8e6" +version = "0.10" features = ["wgsl-in"] [target.'cfg(target_arch = "wasm32")'.dependencies.naga] -workspace = true +git = "https://github.com/gfx-rs/naga" +rev = "e7fc8e6" +version = "0.10" features = ["wgsl-out"] [target.'cfg(target_arch = "wasm32")'.dependencies] -web-sys = { workspace = true, features = [ +web-sys = { version = "0.3.60", features = [ "Document", "Navigator", "Node", @@ -275,16 +292,17 @@ web-sys = { workspace = true, features = [ "WorkerGlobalScope", "WorkerNavigator" ] } -wasm-bindgen.workspace = true -js-sys.workspace = true -wasm-bindgen-futures.workspace = true -parking_lot.workspace = true +wasm-bindgen = "0.2.83" +js-sys = "0.3.60" +wasm-bindgen-futures = "0.4.33" +# parking_lot 0.12 switches from `winapi` to `windows`; permit either +parking_lot = ">=0.11,<0.13" [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -console_error_panic_hook.workspace = true -console_log.workspace = true +console_error_panic_hook = "0.1.7" +console_log = "0.2" # We need these features in the framework examples -web-sys = { workspace = true, features = [ +web-sys = { version = "0.3.60", features = [ "Location", "Blob", "RequestInit",