Update to windows 0.27 and bump version.

This commit is contained in:
Nolan Darilek 2021-11-16 11:13:31 -06:00
parent d5bdb9f498
commit 119678ae55
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tts" name = "tts"
version = "0.18.2" version = "0.18.3"
authors = ["Nolan Darilek <nolan@thewordnerd.info>"] authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
repository = "https://github.com/ndarilek/tts-rs" repository = "https://github.com/ndarilek/tts-rs"
description = "High-level Text-To-Speech (TTS) interface" description = "High-level Text-To-Speech (TTS) interface"
@ -21,8 +21,9 @@ thiserror = "1"
env_logger = "0.9" env_logger = "0.9"
[dependencies.windows] [dependencies.windows]
version = "0.26" version = "0.27"
features = [ features = [
"alloc",
"std", "std",
"Foundation", "Foundation",
"Media_Core", "Media_Core",

View File

@ -15,8 +15,8 @@ use windows::{
use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS}; use crate::{Backend, BackendId, Error, Features, UtteranceId, CALLBACKS};
impl From<windows::runtime::Error> for Error { impl From<windows::core::Error> for Error {
fn from(e: windows::runtime::Error) -> Self { fn from(e: windows::core::Error) -> Self {
Error::WinRt(e) Error::WinRt(e)
} }
} }

View File

@ -117,7 +117,7 @@ pub enum Error {
JavaScriptError(wasm_bindgen::JsValue), JavaScriptError(wasm_bindgen::JsValue),
#[cfg(windows)] #[cfg(windows)]
#[error("WinRT error")] #[error("WinRT error")]
WinRt(windows::runtime::Error), WinRt(windows::core::Error),
#[error("Unsupported feature")] #[error("Unsupported feature")]
UnsupportedFeature, UnsupportedFeature,
#[error("Out of range")] #[error("Out of range")]