Skip to content

Commit 98aef99

Browse files
authored
Disable ndk default features to remove raw-window-handle 0.6 (#142)
The `ndk` crate enables `raw-window-handle 0.6` by default (because of rust-mobile/ndk#434 (comment)) which might not be used by consumers of the `android-activity` crate at all, or might (still) be a mismatching version. Even if the `rwh_0x` features are additive, figuring that out leads to cryptic errors and it is best to turn off these defaults completely and leave it to the user to turn it back on in their own `[dependencies]` section if desired.
1 parent a7114c8 commit 98aef99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android-activity/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jni-sys = "0.3"
3434
cesu8 = "1"
3535
jni = "0.21"
3636
ndk-sys = "0.5.0"
37-
ndk = "0.8.0"
37+
ndk = { version = "0.8.0", default-features = false }
3838
ndk-context = "0.1"
3939
android-properties = "0.2"
4040
num_enum = "0.7"
@@ -54,3 +54,6 @@ targets = [
5454
]
5555

5656
rustdoc-args = ["--cfg", "docsrs"]
57+
58+
[dev-dependencies]
59+
ndk = "0.8.0"

0 commit comments

Comments
 (0)