From 7103514ae8e70aae414f81387818d6ff4c8560a5 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sat, 4 Nov 2023 12:18:55 +0100 Subject: [PATCH] Disable `default-features` for the `ndk` crate We decided to add `rwh_06` to the `default` list of features in the `ndk` to [nudge users to upgrade], but this forces `winit` to always (transitively) include `raw-window-handle 0.6` even if the user has set a different `rwh_xx` feature on the `winit` crate. `winit` already forwards the respective `rwh_xx` feaure to the `ndk` crate anyway, so this default should just be turned off. At the time of writing this is the only `default` feature of the `ndk`. Links: https://github.com/rust-mobile/ndk/pull/434#issuecomment-1752089087 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b54d37c06a..078967adc1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ softbuffer = "0.3.0" [target.'cfg(target_os = "android")'.dependencies] android-activity = "0.5.0" -ndk = "0.8.0" +ndk = { version = "0.8.0", default-features = false } ndk-sys = "0.5.0" [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]