Cargo Features
[dependencies]
ohos-deviceinfo-sys = { version = "0.1.2", default-features = false, features = ["api-10", "api-11", "api-12", "api-13", "document-features"] }
- default = api-10
-
The
api-10
feature is set by default wheneverohos-deviceinfo-sys
is added without
somewhere in the dependency tree.default-features = false - 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 API-11. No changes or additions compared to API-10
- api-12 api-13? = api-11
-
Enables API-12. No changes or additions compared to API-11
- api-13 = api-12
-
Enables API-13. No changes or additions compared to API-12
- document-features
-
Document available features when building the documentation
Enables document-features