From 8f7bde5864123a5fa368ba3958f30ceec3f141b7 Mon Sep 17 00:00:00 2001 From: alexlapa Date: Fri, 9 Aug 2024 17:30:04 +0300 Subject: [PATCH] meh --- Cargo.lock | 41 ++++++++++++++++++------------------ crates/native/Cargo.toml | 1 - crates/native/src/devices.rs | 6 +++--- 3 files changed, 23 insertions(+), 25 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9acda7abe6..db961157ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -120,9 +120,9 @@ checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" [[package]] name = "cc" -version = "1.1.8" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "504bdec147f2cc13c8b57ed9401fd8a147cc66b67ad5cb241394244f2c947549" +checksum = "e9e8aabfac534be767c909e0690571677d49f41bd8465ae876fe043d52ba5292" [[package]] name = "cfg-if" @@ -158,9 +158,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" @@ -220,7 +220,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] @@ -237,7 +237,7 @@ checksum = "4b2c1c1776b986979be68bb2285da855f8d8a35851a769fca8740df7c3d07877" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] @@ -280,7 +280,7 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", "unicode-xid", ] @@ -807,7 +807,6 @@ dependencies = [ "once_cell", "threadpool", "windows", - "windows-core", "xxhash-rust", ] @@ -941,7 +940,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] @@ -1008,7 +1007,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] @@ -1235,22 +1234,22 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.205" +version = "1.0.206" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33aedb1a7135da52b7c21791455563facbbcc43d0f0f66165b42c21b3dfb150" +checksum = "5b3e4cd94123dd520a128bcd11e34d9e9e423e7e3e50425cb1b4b1e3549d0284" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.205" +version = "1.0.206" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "692d6f5ac90220161d6774db30c662202721e64aed9058d2c394f451261420c1" +checksum = "fabfb6138d2383ea8208cf98ccf69cdfb1aff4088460681d84189aa259762f97" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] @@ -1338,9 +1337,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.72" +version = "2.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" +checksum = "837a7e8026c6ce912ff01cefbe8cafc2f8010ac49682e2a3d9decc3bce1ecaaf" dependencies = [ "proc-macro2", "quote", @@ -1646,7 +1645,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", "wasm-bindgen-shared", ] @@ -1680,7 +1679,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -1763,7 +1762,7 @@ checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] @@ -1774,7 +1773,7 @@ checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.73", ] [[package]] diff --git a/crates/native/Cargo.toml b/crates/native/Cargo.toml index 903a5f80f9..1f16898a72 100644 --- a/crates/native/Cargo.toml +++ b/crates/native/Cargo.toml @@ -28,7 +28,6 @@ pulse = { version = "2.28", package = "libpulse-binding" } [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.58", features = ["implement", "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Media_Audio", "Win32_System_Com", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] } -windows-core = "0.58" [build-dependencies] anyhow = "1.0" diff --git a/crates/native/src/devices.rs b/crates/native/src/devices.rs index 1c302c0c3a..1b9c970267 100644 --- a/crates/native/src/devices.rs +++ b/crates/native/src/devices.rs @@ -566,7 +566,7 @@ mod win_default_device_callback { }; use windows::{ - core::{Result, PCWSTR}, + core::{implement, Result, PCWSTR}, Win32::{ Media::Audio::{ EDataFlow, ERole, IMMDeviceEnumerator, IMMNotificationClient, @@ -589,11 +589,11 @@ mod win_default_device_callback { /// Implementation of an [`IMMNotificationClient`] used for detecting /// default audio output device changes. - #[windows::core::implement(IMMNotificationClient)] + #[implement(IMMNotificationClient)] struct AudioEndpointCallback; #[allow(non_snake_case)] - impl IMMNotificationClient_Impl for AudioEndpointCallback { + impl IMMNotificationClient_Impl for AudioEndpointCallback_Impl { fn OnDeviceStateChanged( &self, _: &PCWSTR,