From ef0a78c745f8eebcf6e488d9d3ce4b8bc5e28a5a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 10 Mar 2022 13:46:14 -0600 Subject: [PATCH] Bump speech-dispatcher, and support building with multiple versions. --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a15c441..d94fe04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,10 @@ edition = "2021" [lib] crate-type = ["lib", "cdylib", "staticlib"] +[features] +speech_dispatcher_0_10 = ["speech-dispatcher/0_10"] +default = ["speech_dispatcher_0_10"] + [dependencies] dyn-clonable = "0.9" lazy_static = "1" @@ -26,7 +30,7 @@ tolk = { version = "0.5", optional = true } windows = { version = "0.33", features = ["alloc", "Foundation", "Media_Core", "Media_Playback", "Media_SpeechSynthesis", "Storage_Streams"] } [target.'cfg(target_os = "linux")'.dependencies] -speech-dispatcher = "0.12" +speech-dispatcher = { version = "0.13", default-features = false } [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies] cocoa-foundation = "0.1"