Skip to content

Commit 821c36d

Browse files
authored
ndk: Remove "irrelevant" hardware_buffer/trace feature in favour of API level (#320)
Thus far feature flags have been used specifically in `ndk-sys` to control what native libraries are linked to, for content that is provided outside of the standard linked `libandroid.so`: https://github.com/rust-windowing/android-ndk-rs/blob/d104d01f116b537babdc94d8c9889581f8d63a02/ndk-sys/src/lib.rs#L43-L53 However, `hardware_buffer` and `trace` are available in `libandroid.so` directly making these features only guard our Rust bindings. This is unnecessarily tedious and inconsistent with the rest of the NDK wrappers which are only guarded by their minimum API level.
1 parent a5775d8 commit 821c36d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
jni = "0.19"
1010
libc = "0.2"
1111
log = "0.4.14"
12-
ndk = { path = "../ndk", features = ["trace"] }
12+
ndk = { path = "../ndk", features = ["api-level-23"] }
1313
ndk-context = { path = "../ndk-context" }
1414
ndk-glue = { path = "../ndk-glue", features = ["logger"] }
1515

0 commit comments

Comments
 (0)