Update to windows 0.27 and bump version.

pull/16/head
Nolan Darilek 1 year ago
parent d5bdb9f498
commit 119678ae55
  1. 5
      Cargo.toml
  2. 4
      src/backends/winrt.rs
  3. 2
      src/lib.rs

@ -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",

@ -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)
}
}

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

Loading…
Cancel
Save