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
1 changed files with 1 additions and 12 deletions

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"