Cargo Features

[dependencies]
ndk = { version = "0.9.0", default-features = false, features = ["all", "audio", "bitmap", "media", "nativewindow", "sync", "api-level-23", "api-level-24", "api-level-25", "api-level-26", "api-level-27", "api-level-28", "api-level-29", "api-level-30", "api-level-31", "api-level-32", "api-level-33", "test"] }
default = rwh_06

The rwh_06 feature is set by default whenever ndk is added without default-features = false somewhere in the dependency tree.

all test? = api-level-33, audio, bitmap, media, nativewindow, rwh_04, rwh_05, rwh_06, sync
audio all? = api-level-26

Enables audio of ndk-sys

bitmap all?

Enables bitmap of ndk-sys

media all?

Enables media of ndk-sys

nativewindow all?

Enables nativewindow of ndk-sys

Affects native_window::FrameRateCompatibility, native_window::ChangeFrameRateStrategy

sync all? = api-level-26

Enables sync of ndk-sys

api-level-23 api-level-24?
api-level-24 api-level-25? = api-level-23
api-level-25 api-level-26? = api-level-24
api-level-26 api-level-27? audio? sync? = api-level-25

Affects image_reader::BufferRemovedListener

api-level-27 api-level-28? = api-level-26
api-level-28 api-level-29? = api-level-27

Affects audio::AudioContentType, audio::AudioInputPreset, audio::AudioUsage

api-level-29 api-level-30? = api-level-28

Affects audio::AudioAllowedCapturePolicy, trace::Cookie, trace::AsyncSection, trace::Counter

api-level-30 api-level-31? = api-level-29

Affects bitmap::BitmapInfoFlagsAlpha, bitmap::BitmapInfoFlags, bitmap::BitmapCompressFormat, bitmap::BitmapCompressError, native_window::FrameRateCompatibility

api-level-31 api-level-32? = api-level-30

Affects event::InputEventJava, native_window::ChangeFrameRateStrategy

api-level-32 api-level-33? = api-level-31
api-level-33 all? = api-level-32
test = all, jni

Enables test of ndk-sys

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rwh_04 all?

Enables raw-window-handle ^0.4

rwh_05 all?

Enables raw-window-handle ^0.5

rwh_06 default all?

Enables raw-window-handle

jni test?