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:
parent
119678ae55
commit
57ffbf0e4f
13
Cargo.toml
13
Cargo.toml
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user