From d9ca83ca15ccf5ecd598e5995a6cfa8750bceda6 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 11 Mar 2021 12:33:31 -0600 Subject: [PATCH] WIP: Bump dependencies. Currently broken. --- Cargo.toml | 6 +++--- winrt_bindings/Cargo.toml | 4 ++-- winrt_bindings/build.rs | 7 ++++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 258aa5f..8325028 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ env_logger = "0.8" [target.'cfg(windows)'.dependencies] tolk = { version = "0.3", optional = true } -windows = "0.2" +windows = "0.4" tts_winrt_bindings = { version = "0.3", path="winrt_bindings" } [target.'cfg(target_os = "linux")'.dependencies] @@ -38,5 +38,5 @@ wasm-bindgen = "0.2" web-sys = { version = "0.3", features = ["EventTarget", "SpeechSynthesis", "SpeechSynthesisErrorCode", "SpeechSynthesisErrorEvent", "SpeechSynthesisEvent", "SpeechSynthesisUtterance", "Window", ] } [target.'cfg(target_os="android")'.dependencies] -jni = "0.18" -ndk-glue = "0.2" \ No newline at end of file +jni = "0.19" +ndk-glue = "0.3" \ No newline at end of file diff --git a/winrt_bindings/Cargo.toml b/winrt_bindings/Cargo.toml index eaf4bb2..da14f55 100644 --- a/winrt_bindings/Cargo.toml +++ b/winrt_bindings/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" edition = "2018" [dependencies] -windows = "0.2" +windows = "0.4" [build-dependencies] -windows = "0.2" +windows = "0.4" diff --git a/winrt_bindings/build.rs b/winrt_bindings/build.rs index 654291a..6a4341e 100644 --- a/winrt_bindings/build.rs +++ b/winrt_bindings/build.rs @@ -1,7 +1,8 @@ fn main() { windows::build!( - windows::media::core::MediaSource - windows::media::playback::{MediaPlaybackState, MediaPlayer} - windows::media::speech_synthesis::SpeechSynthesizer + windows::foundation::TypedEventHandler, + windows::media::core::MediaSource, + windows::media::playback::{MediaPlaybackState, MediaPlayer, MediaPlayerAudioCategory}, + windows::media::speech_synthesis::SpeechSynthesizer, ); }