1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 13:09:37 +00:00

Make windows dependency platform-specific and add alloc feature.

This commit is contained in:
Nolan Darilek 2021-11-16 11:36:24 -06:00
parent 119678ae55
commit 57ffbf0e4f

View File

@ -20,20 +20,9 @@ thiserror = "1"
[dev-dependencies]
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]
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]
speech-dispatcher = "0.7"