Cargo Features
[dependencies]
hitrace-sys = { version = "0.1.4", default-features = false, features = ["api-10", "api-11", "api-12", "api-13"] }
- default = api-10
-
The
api-10
feature is set by default wheneverhitrace-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 bindings for OpenHarmony API-level 11 (No additions)
- api-12 api-13? = api-11
-
Enables bindings for OpenHarmony API-level 12
Affects
hitrace_ffi::HiTraceId_Valid
,hitrace_ffi::HiTrace_Version
,hitrace_ffi::HiTrace_Flag
,hitrace_ffi::HiTrace_Tracepoint_Type
,hitrace_ffi::HiTrace_Communication_Mode
,hitrace_ffi::HiTraceId
,hitrace_ffi::OH_HiTrace_BeginChain
,hitrace_ffi::OH_HiTrace_EndChain
,hitrace_ffi::OH_HiTrace_GetId
,hitrace_ffi::OH_HiTrace_SetId
,hitrace_ffi::OH_HiTrace_ClearId
,hitrace_ffi::OH_HiTrace_CreateSpan
,hitrace_ffi::OH_HiTrace_Tracepoint
,hitrace_ffi::OH_HiTrace_InitId
,hitrace_ffi::OH_HiTrace_IdFromBytes
,hitrace_ffi::OH_HiTrace_IsIdValid
… - api-13 = api-12
-
Enables bindings for OpenHarmony API-level 13 (No changes)