From 57ffbf0e4fa17de7810168894e1088d90e26991a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 16 Nov 2021 11:36:24 -0600 Subject: [PATCH] Make windows dependency platform-specific and add alloc feature. --- Cargo.toml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index db2b561..c2542a9 100644 --- a/Cargo.toml +++ b/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"