[package]
edition = "2021"
name = "hitrace"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe bindings to the HiTrace tracing system of OpenHarmony"
readme = "README.md"
keywords = [
"OpenHarmony",
"HarmonyOS",
"hitrace",
"tracing",
]
license = "Apache-2.0"
repository = "https://github.com/huawei-drc/hitrace"
[features]
api-19 = ["hitrace-sys/api-19"]
max_level_off = []
tracing-rs = ["tracing-core"]
[lib]
name = "hitrace"
path = "src/lib.rs"
[[test]]
name = "ohos_trace_api19"
path = "tests/ohos_trace_api19.rs"
[[test]]
name = "ohos_trace_basic"
path = "tests/ohos_trace_basic.rs"
[[test]]
name = "ohos_trace_macro"
path = "tests/ohos_trace_macro.rs"
[[test]]
name = "ohos_trace_scoped"
path = "tests/ohos_trace_scoped.rs"
[dependencies.tracing-core]
version = "0.1.36"
optional = true
[dev-dependencies.static_assertions]
version = "1.1.0"
[target.'cfg(target_env = "ohos")'.dependencies.hitrace-sys]
version = "0.1.9"