From 86b96b6d37a3fd0f4b89852767f8f9a33a34d551 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Nov 2023 01:40:19 +0200 Subject: [PATCH] chore(deps): update rust crate windows-sys to 0.52.0 (#23) * chore(deps): update rust crate windows-sys to 0.52.0 * fix build --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: amrbashir --- Cargo.toml | 2 +- crates/pluginapi/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 832b001..ec1e4bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT or Apache-2.0" pluginapi = { path = "./crates/pluginapi" } [workspace.dependencies.windows-sys] -version = "0.48.0" +version = "0.52.0" features = [ "Win32_Foundation", "Win32_Globalization", diff --git a/crates/pluginapi/src/lib.rs b/crates/pluginapi/src/lib.rs index 27d8031..9cb27b9 100644 --- a/crates/pluginapi/src/lib.rs +++ b/crates/pluginapi/src/lib.rs @@ -9,8 +9,9 @@ use std::{ }; use windows_sys::Win32::{ + Foundation::GlobalFree, Globalization::{lstrcpyW, lstrcpynW}, - System::Memory::{GlobalAlloc, GlobalFree, GPTR}, + System::Memory::{GlobalAlloc, GPTR}, }; static mut G_STRINGSIZE: u32 = 0;