mirror of https://github.com/ndarilek/tts-rs.git
Make windows dependency platform-specific and add alloc feature.
This commit is contained in:
parent
119678ae55
commit
57ffbf0e4f
13
Cargo.toml
13
Cargo.toml
|
@ -20,20 +20,9 @@ thiserror = "1"
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.9"
|
env_logger = "0.9"
|
||||||
|
|
||||||
[dependencies.windows]
|
|
||||||
version = "0.27"
|
|
||||||
features = [
|
|
||||||
"alloc",
|
|
||||||
"std",
|
|
||||||
"Foundation",
|
|
||||||
"Media_Core",
|
|
||||||
"Media_Playback",
|
|
||||||
"Media_SpeechSynthesis",
|
|
||||||
"Storage_Streams",
|
|
||||||
]
|
|
||||||
|
|
||||||
[target.'cfg(windows)'.dependencies]
|
[target.'cfg(windows)'.dependencies]
|
||||||
tolk = { version = "0.5", optional = true }
|
tolk = { version = "0.5", optional = true }
|
||||||
|
windows = { version = "0.27", features = ["alloc", "std", "Foundation", "Media_Core", "Media_Playback", "Media_SpeechSynthesis", "Storage_Streams"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "linux")'.dependencies]
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
speech-dispatcher = "0.7"
|
speech-dispatcher = "0.7"
|
||||||
|
|
Loading…
Reference in New Issue