mirror of https://github.com/ndarilek/tts-rs.git
Make module imports more consistent.
This commit is contained in:
parent
69af3465b3
commit
06eb32b6d4
|
@ -5,7 +5,7 @@ mod speech_dispatcher;
|
||||||
mod tolk;
|
mod tolk;
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
pub(crate) mod winrt;
|
mod winrt;
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
mod web;
|
mod web;
|
||||||
|
@ -25,8 +25,11 @@ pub(crate) use self::speech_dispatcher::*;
|
||||||
#[cfg(all(windows, feature = "use_tolk"))]
|
#[cfg(all(windows, feature = "use_tolk"))]
|
||||||
pub(crate) use self::tolk::*;
|
pub(crate) use self::tolk::*;
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
pub(crate) use self::winrt::*;
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
pub use self::web::*;
|
pub(crate) use self::web::*;
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
pub(crate) use self::appkit::*;
|
pub(crate) use self::appkit::*;
|
||||||
|
|
|
@ -198,7 +198,7 @@ impl TTS {
|
||||||
}
|
}
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
Backends::WinRT => {
|
Backends::WinRT => {
|
||||||
let tts = backends::winrt::WinRT::new()?;
|
let tts = backends::WinRT::new()?;
|
||||||
Ok(TTS(Box::new(tts)))
|
Ok(TTS(Box::new(tts)))
|
||||||
}
|
}
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
|
Loading…
Reference in New Issue