From 3432aabab158b2183d4eb2b6f58b74639acad2f3 Mon Sep 17 00:00:00 2001 From: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> Date: Thu, 20 Apr 2023 19:28:57 +0200 Subject: [PATCH] Bump libloading (#3711) * bump libloading in Cargo.toml * bump libloading in wgpu-hal/Cargo.toml --- Cargo.toml | 3 ++- wgpu-hal/Cargo.toml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a32517524..ac351a52b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,8 @@ futures-intrusive = "0.4" rustc-hash = "1.1.0" glam = "0.21.3" image = { version = "0.24", default-features = false, features = ["png"] } -libloading = "0.7" +# libloading 0.8 switches from `winapi` to `windows-sys`; permit either +libloading = ">=0.7,<0.9" libc = "0.2" log = "0.4" nanorand = { version = "0.7", default-features = false } diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index c79336472..495c241c6 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -79,13 +79,13 @@ gpu-descriptor = { version = "0.2", optional = true } smallvec = { version = "1", optional = true, features = ["union"] } khronos-egl = { version = "4.1", features = ["dynamic"], optional = true } -libloading = { version = "0.7", optional = true } +libloading = { version = ">=0.7,<0.9", optional = true } renderdoc-sys = { version = "1.0.0", optional = true } [target.'cfg(target_os = "emscripten")'.dependencies] 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 = { version = "0.7", optional = true } +libloading = { version = ">=0.7,<0.9", optional = true } [target.'cfg(windows)'.dependencies] # backend: Dx12