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:
parent
d5bdb9f498
commit
119678ae55
|
@ -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…
Reference in New Issue
Block a user