diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c94989..91d3013 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - run: | choco install -qy llvm - cargo build --all-features --release + cargo build --features tolk --features tts/tolk --release move target windows - uses: actions/upload-artifact@v1 with: diff --git a/Cargo.toml b/Cargo.toml index 5db0b2d..c605b3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,14 +7,10 @@ edition = "2018" [lib] crate-type = ["staticlib", "cdylib"] -[features] - -use_tolk = ["tolk", "tts/use_tolk"] - [dependencies] env_logger = "0.8" gdnative = "0.9" -tts = "0.13" +tts = "0.14" [target.'cfg(windows)'.dependencies] tolk = { version = "0.3", optional = true } diff --git a/src/lib.rs b/src/lib.rs index ba47c57..8e193e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,13 +127,13 @@ impl TTS { .done(); builder .add_property("can_detect_screen_reader") - .with_getter(|_: &TTS, _| cfg!(all(windows, features = "use_tolk"))) + .with_getter(|_: &TTS, _| cfg!(all(windows, features = "tolk"))) .done(); #[allow(unreachable_code)] builder .add_property("has_screen_reader") .with_getter(|_: &TTS, _| { - #[cfg(all(windows, features = "use_tolk"))] + #[cfg(all(windows, features = "tolk"))] { let tolk = tolk::Tolk::new(); return tolk.detect_screen_reader().is_some();