From 119678ae559e03a9728497fc273ebee6b502aab3 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 16 Nov 2021 11:13:31 -0600 Subject: [PATCH] Update to windows 0.27 and bump version. --- Cargo.toml | 5 +++-- src/backends/winrt.rs | 4 ++-- src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3eac5e1..db2b561 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tts" -version = "0.18.2" +version = "0.18.3" authors = ["Nolan Darilek "] repository = "https://github.com/ndarilek/tts-rs" description = "High-level Text-To-Speech (TTS) interface" @@ -21,8 +21,9 @@ thiserror = "1" env_logger = "0.9" [dependencies.windows] -version = "0.26" +version = "0.27" features = [ + "alloc", "std", "Foundation", "Media_Core", diff --git a/src/backends/winrt.rs b/src/backends/winrt.rs index 00ccc51..e7c8634 100644 --- a/src/backends/winrt.rs +++ b/src/backends/winrt.rs @@ -15,8 +15,8 @@ use windows::{ use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS}; -impl From for Error { - fn from(e: windows::runtime::Error) -> Self { +impl From for Error { + fn from(e: windows::core::Error) -> Self { Error::WinRt(e) } } diff --git a/src/lib.rs b/src/lib.rs index f91ceac..4247435 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -117,7 +117,7 @@ pub enum Error { JavaScriptError(wasm_bindgen::JsValue), #[cfg(windows)] #[error("WinRT error")] - WinRt(windows::runtime::Error), + WinRt(windows::core::Error), #[error("Unsupported feature")] UnsupportedFeature, #[error("Out of range")]