mirror of https://github.com/ndarilek/tts-rs.git
Update to windows 0.27 and bump version.
This commit is contained in:
parent
d5bdb9f498
commit
119678ae55
|
@ -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",
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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")]
|
||||||
|
|
Loading…
Reference in New Issue