Cargo Features
[dependencies]
ohos-sys = { version = "0.4.0", default-features = false, features = ["deviceinfo", "drawing", "hilog", "hitrace", "inputmethod", "napi", "native_buffer", "native_image", "native_window", "vsync", "xcomponent", "all-components", "api-10", "api-11", "api-12", "document-features"] }
- default = api-10
-
The
api-10
feature is set by default wheneverohos-sys
is added without
somewhere in the dependency tree.default-features = false - deviceinfo all-components?
-
Enables bindings to
deviceinfo.h
. Re-exportsohos-deviceinfo-sys
Enables ohos-deviceinfo-sys
- drawing all-components?
-
Enables bindings to
native_drawing
. Re-exportsohos-drawing-sys
.Enables ohos-drawing-sys
- hilog all-components?
-
Enables bindings to
hilog
Enables hilog-sys
- hitrace all-components?
-
Enables bindings to
hitrace
Enables hitrace-sys
- inputmethod all-components?
-
Enables bindings to
inputmethod
from the IME-Kit. Empty if API-level < 12.Enables ohos-ime-sys
- napi all-components?
-
Enables bindings to
napi
Affects
ohos-sys::napi
… - native_buffer all-components? native_window? = native_window
-
Enables bindings to
native_buffer
Affects
ohos-sys::native_buffer
… - native_image all-components? = native_window
-
Enables bindings to
native_image
Affects
ohos-sys::native_image
… - native_window all-components? native_buffer? native_image? = native_buffer
-
Enables bindings to
native_window
Affects
ohos-sys::native_window
… - vsync all-components?
-
Enables bindings to
native_vsync
Affects
ohos-sys::vsync
… - xcomponent all-components?
-
Enables bindings to
native_xcomponent
Enables xcomponent-sys
- all-components = deviceinfo, drawing, hilog, hitrace, inputmethod, napi, native_buffer, native_image, native_window, vsync, xcomponent
-
Enables all components listed above. Orthogonal to
api-XX
features. - api-10 default api-11?
-
OpenHarmony API level
This crate by default exposes bindings for API-level 10. Optionally enable one of the
api-*
features to get access to bindings for newer OpenHarmony versions.No effect. API-10 bindings can't be deselected. The feature exists for internal purposes.
- api-11 api-12? = api-10
-
Enables bindings for OpenHarmony API-level 11
Enables api-11 of optional hilog-sys, optional hitrace-sys, optional ohos-deviceinfo-sys, optional ohos-drawing-sys, and optional xcomponent-sys
- api-12 = api-11
-
**EXPERIMENTAL**: Enables bindings for OpenHarmony API-level 12 (beta-1).
Will stabilize once the final version has been released.Enables api-12 of optional hilog-sys, optional hitrace-sys, optional ohos-deviceinfo-sys, optional ohos-drawing-sys, optional ohos-ime-sys, and optional xcomponent-sys
- document-features
-
Document available features when building the documentation
Enables document-features