1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-12-02 13:49:37 +00:00

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]
name = "tts"
version = "0.18.2"
version = "0.18.3"
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
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",

View File

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

View File

@ -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")]