Cargo Features
HiTrace has no features set by default.
[dependencies]
hitrace = { version = "0.1.6", features = ["max_level_off", "api-19", "tracing-rs"] }
- max_level_off
-
Completely disable tracing at compile time when selected.
- api-19
-
Enables api-19 of hitrace-sys
hitrace-sys:
Enables bindings for OpenHarmony API-level 19. (No changes)
Affects
hitrace::api_19,hitrace::start_trace_ex… - tracing-rs = tracing-core
-
Enable interop with tracing-rs log-level types
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.