Bump winit from 0.27.5 to 0.28.0 (#3950)

* Bump winit from 0.27.5 to 0.28.0

Bumps [winit](https://github.com/rust-windowing/winit) from 0.27.5 to 0.28.0.
- [Release notes](https://github.com/rust-windowing/winit/releases)
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-windowing/winit/compare/v0.27.5...v0.28.0)

---
updated-dependencies:
- dependency-name: winit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* no longer check samples for emscripten target

* set native activity for Android

* fix using workspace for wgpu-hal

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
dependabot[bot] 2023-07-23 22:43:11 +00:00 committed by GitHub
parent 2a77bbd80d
commit b9ecc8cd02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 263 additions and 31 deletions

View File

@ -155,11 +155,7 @@ jobs:
# build for Emscripten # build for Emscripten
cargo clippy --target ${{ matrix.target }} -p wgpu -p wgpu-hal --no-default-features cargo clippy --target ${{ matrix.target }} -p wgpu -p wgpu-hal --no-default-features
# build cube example # Don't check samples since we use winit in our samples which has dropped support for Emscripten.
cargo clippy --target ${{ matrix.target }} --bin cube
# build raw-gles example
cargo clippy --target ${{ matrix.target }} --example raw-gles
# all features # all features
cargo clippy --target ${{ matrix.target }} -p wgpu-hal --all-features cargo clippy --target ${{ matrix.target }} -p wgpu-hal --all-features

284
Cargo.lock generated
View File

@ -2,6 +2,22 @@
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3 version = 3
[[package]]
name = "ab_glyph"
version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5110f1c78cf582855d895ecd0746b653db010cec6d9f5575293f27934d980a39"
dependencies = [
"ab_glyph_rasterizer",
"owned_ttf_parser",
]
[[package]]
name = "ab_glyph_rasterizer"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c71b1793ee61086797f5c80b6efa2b8ffa6d5dd703f118545808a7f2e27f7046"
[[package]] [[package]]
name = "addr2line" name = "addr2line"
version = "0.20.0" version = "0.20.0"
@ -37,6 +53,30 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "android-activity"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40bc1575e653f158cbdc6ebcd917b9564e66321c5325c232c3591269c257be69"
dependencies = [
"android-properties",
"bitflags 1.3.2",
"cc",
"jni-sys",
"libc",
"log",
"ndk",
"ndk-context",
"ndk-sys",
"num_enum 0.6.1",
]
[[package]]
name = "android-properties"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
[[package]] [[package]]
name = "android_system_properties" name = "android_system_properties"
version = "0.1.5" version = "0.1.5"
@ -195,6 +235,25 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
[[package]]
name = "block-sys"
version = "0.1.0-beta.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fa55741ee90902547802152aaf3f8e5248aab7e21468089560d4c8840561146"
dependencies = [
"objc-sys",
]
[[package]]
name = "block2"
version = "0.2.0-alpha.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8dd9e63c1744f755c2f60332b88de39d341e5e86239014ad839bd71c106dec42"
dependencies = [
"block-sys",
"objc2-encode",
]
[[package]] [[package]]
name = "bumpalo" name = "bumpalo"
version = "3.13.0" version = "3.13.0"
@ -252,6 +311,9 @@ name = "cc"
version = "1.0.79" version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"
dependencies = [
"jobserver",
]
[[package]] [[package]]
name = "cfg-if" name = "cfg-if"
@ -259,6 +321,12 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]] [[package]]
name = "cgl" name = "cgl"
version = "0.3.2" version = "0.3.2"
@ -1098,7 +1166,7 @@ dependencies = [
"wayland-client", "wayland-client",
"wayland-egl", "wayland-egl",
"winapi", "winapi",
"winit", "winit 0.27.5",
] ]
[[package]] [[package]]
@ -1332,6 +1400,15 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "jobserver"
version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2"
dependencies = [
"libc",
]
[[package]] [[package]]
name = "js-sys" name = "js-sys"
version = "0.3.64" version = "0.3.64"
@ -1560,7 +1637,7 @@ dependencies = [
"bitflags 1.3.2", "bitflags 1.3.2",
"jni-sys", "jni-sys",
"ndk-sys", "ndk-sys",
"num_enum", "num_enum 0.5.11",
"raw-window-handle 0.5.2", "raw-window-handle 0.5.2",
"thiserror", "thiserror",
] ]
@ -1722,7 +1799,16 @@ version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9" checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"
dependencies = [ dependencies = [
"num_enum_derive", "num_enum_derive 0.5.11",
]
[[package]]
name = "num_enum"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a015b430d3c108a207fd776d2e2196aaf8b1cf8cf93253e3a097ff3085076a1"
dependencies = [
"num_enum_derive 0.6.1",
] ]
[[package]] [[package]]
@ -1737,6 +1823,18 @@ dependencies = [
"syn 1.0.109", "syn 1.0.109",
] ]
[[package]]
name = "num_enum_derive"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96667db765a921f7b295ffee8b60472b686a51d4f21c2ee4ffdb94c7013b65a6"
dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
"syn 2.0.26",
]
[[package]] [[package]]
name = "nv-flip" name = "nv-flip"
version = "0.1.2" version = "0.1.2"
@ -1771,6 +1869,32 @@ dependencies = [
"objc_exception", "objc_exception",
] ]
[[package]]
name = "objc-sys"
version = "0.2.0-beta.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b9834c1e95694a05a828b59f55fa2afec6288359cda67146126b3f90a55d7"
[[package]]
name = "objc2"
version = "0.3.0-beta.3.patch-leaks.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e01640f9f2cb1220bbe80325e179e532cb3379ebcd1bf2279d703c19fe3a468"
dependencies = [
"block2",
"objc-sys",
"objc2-encode",
]
[[package]]
name = "objc2-encode"
version = "2.0.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abfcac41015b00a120608fdaa6938c44cb983fee294351cc4bac7638b4e50512"
dependencies = [
"objc-sys",
]
[[package]] [[package]]
name = "objc_exception" name = "objc_exception"
version = "0.1.2" version = "0.1.2"
@ -1795,6 +1919,15 @@ version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "orbclient"
version = "0.3.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "221d488cd70617f1bd599ed8ceb659df2147d9393717954d82a0f5e8032a6ab1"
dependencies = [
"redox_syscall",
]
[[package]] [[package]]
name = "osmesa-sys" name = "osmesa-sys"
version = "0.1.2" version = "0.1.2"
@ -1810,6 +1943,15 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a"
[[package]]
name = "owned_ttf_parser"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "706de7e2214113d63a8238d1910463cfce781129a6f263d13fdb09ff64355ba4"
dependencies = [
"ttf-parser",
]
[[package]] [[package]]
name = "parking" name = "parking"
version = "2.1.0" version = "2.1.0"
@ -1916,7 +2058,7 @@ dependencies = [
"serde", "serde",
"wgpu-core", "wgpu-core",
"wgpu-types", "wgpu-types",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -2218,7 +2360,20 @@ dependencies = [
"crossfont", "crossfont",
"log", "log",
"smithay-client-toolkit", "smithay-client-toolkit",
"tiny-skia", "tiny-skia 0.7.0",
]
[[package]]
name = "sctk-adwaita"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cda4e97be1fd174ccc2aae81c8b694e803fa99b34e8fd0f057a9d70698e3ed09"
dependencies = [
"ab_glyph",
"log",
"memmap2",
"smithay-client-toolkit",
"tiny-skia 0.8.4",
] ]
[[package]] [[package]]
@ -2441,6 +2596,12 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "strict-num"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
[[package]] [[package]]
name = "strsim" name = "strsim"
version = "0.10.0" version = "0.10.0"
@ -2510,7 +2671,21 @@ dependencies = [
"cfg-if", "cfg-if",
"png", "png",
"safe_arch", "safe_arch",
"tiny-skia-path", "tiny-skia-path 0.7.0",
]
[[package]]
name = "tiny-skia"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df8493a203431061e901613751931f047d1971337153f96d0e5e363d6dbf6a67"
dependencies = [
"arrayref",
"arrayvec 0.7.4",
"bytemuck",
"cfg-if",
"png",
"tiny-skia-path 0.8.4",
] ]
[[package]] [[package]]
@ -2523,6 +2698,17 @@ dependencies = [
"bytemuck", "bytemuck",
] ]
[[package]]
name = "tiny-skia-path"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adbfb5d3f3dd57a0e11d12f4f13d4ebbbc1b5c15b7ab0a156d030b21da5f677c"
dependencies = [
"arrayref",
"bytemuck",
"strict-num",
]
[[package]] [[package]]
name = "tinyvec" name = "tinyvec"
version = "1.6.0" version = "1.6.0"
@ -2586,6 +2772,12 @@ dependencies = [
"winnow", "winnow",
] ]
[[package]]
name = "ttf-parser"
version = "0.19.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a464a4b34948a5f67fddd2b823c62d9d92e44be75058b99939eae6c5b6960b33"
[[package]] [[package]]
name = "unic-char-property" name = "unic-char-property"
version = "0.9.0" version = "0.9.0"
@ -2965,7 +3157,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -2980,7 +3172,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -2998,7 +3190,7 @@ dependencies = [
"wasm-bindgen-test", "wasm-bindgen-test",
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3009,7 +3201,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3045,7 +3237,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3066,7 +3258,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-hal", "wgpu-hal",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3109,7 +3301,7 @@ dependencies = [
"web-sys", "web-sys",
"wgpu-types", "wgpu-types",
"winapi", "winapi",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3127,7 +3319,7 @@ dependencies = [
"wasm-bindgen-test", "wasm-bindgen-test",
"wgpu", "wgpu",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3157,7 +3349,7 @@ dependencies = [
"wasm-bindgen-futures", "wasm-bindgen-futures",
"web-sys", "web-sys",
"wgpu", "wgpu",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3169,7 +3361,7 @@ dependencies = [
"env_logger", "env_logger",
"pollster", "pollster",
"wgpu", "wgpu",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3196,7 +3388,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3210,7 +3402,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3223,7 +3415,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3239,7 +3431,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3251,7 +3443,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3288,7 +3480,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3314,7 +3506,7 @@ dependencies = [
"wgpu", "wgpu",
"wgpu-example", "wgpu-example",
"wgpu-test", "wgpu-test",
"winit", "winit 0.28.6",
] ]
[[package]] [[package]]
@ -3387,6 +3579,15 @@ dependencies = [
"windows_x86_64_msvc 0.36.1", "windows_x86_64_msvc 0.36.1",
] ]
[[package]]
name = "windows-sys"
version = "0.45.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
dependencies = [
"windows-targets 0.42.2",
]
[[package]] [[package]]
name = "windows-sys" name = "windows-sys"
version = "0.48.0" version = "0.48.0"
@ -3563,7 +3764,7 @@ dependencies = [
"percent-encoding", "percent-encoding",
"raw-window-handle 0.4.3", "raw-window-handle 0.4.3",
"raw-window-handle 0.5.2", "raw-window-handle 0.5.2",
"sctk-adwaita", "sctk-adwaita 0.4.3",
"smithay-client-toolkit", "smithay-client-toolkit",
"wasm-bindgen", "wasm-bindgen",
"wayland-client", "wayland-client",
@ -3573,6 +3774,41 @@ dependencies = [
"x11-dl", "x11-dl",
] ]
[[package]]
name = "winit"
version = "0.28.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "866db3f712fffba75d31bf0cdecf357c8aeafd158c5b7ab51dba2a2b2d47f196"
dependencies = [
"android-activity",
"bitflags 1.3.2",
"cfg_aliases",
"core-foundation",
"core-graphics",
"dispatch",
"instant",
"libc",
"log",
"mio",
"ndk",
"objc2",
"once_cell",
"orbclient",
"percent-encoding",
"raw-window-handle 0.5.2",
"redox_syscall",
"sctk-adwaita 0.5.4",
"smithay-client-toolkit",
"wasm-bindgen",
"wayland-client",
"wayland-commons",
"wayland-protocols",
"wayland-scanner",
"web-sys",
"windows-sys 0.45.0",
"x11-dl",
]
[[package]] [[package]]
name = "winnow" name = "winnow"
version = "0.5.0" version = "0.5.0"

View File

@ -98,7 +98,7 @@ wgpu-core = { version = "0.17.0", path = "./wgpu-core" }
wgpu-example = { version = "0.17.0", path = "./examples/common" } wgpu-example = { version = "0.17.0", path = "./examples/common" }
wgpu-test = { version = "0.17", path = "./tests"} wgpu-test = { version = "0.17", path = "./tests"}
wgpu-types = { version = "0.17.0", path = "./wgpu-types" } wgpu-types = { version = "0.17.0", path = "./wgpu-types" }
winit = "0.27.1" winit = { version = "0.28.6", features = [ "android-native-activity" ] }
# Metal dependencies # Metal dependencies
block = "0.1" block = "0.1"

View File

@ -134,7 +134,7 @@ features = ["wgsl-in"]
[dev-dependencies] [dev-dependencies]
cfg-if = "1" cfg-if = "1"
env_logger = "0.10" env_logger = "0.10"
winit = "0.27.1" # for "halmark" example winit = { version = "0.28.6", features = [ "android-native-activity" ] } # for "halmark" example
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
glutin = "0.29.1" # for "gles" example glutin = "0.29.1" # for "gles" example