Crates.io | hilog-binding |
lib.rs | hilog-binding |
version | 0.0.4 |
source | src |
created_at | 2024-01-11 03:40:41.231884 |
updated_at | 2024-03-07 06:44:35.143954 |
description | hilog binding for rust |
homepage | |
repository | |
max_upload_size | |
id | 1095824 |
size | 4,394 |
cargo add hilog_binding
use hilog_binding::hilog_debug;
use napi_derive_ohos::napi;
#[napi]
pub fn add(left: u32, right: u32) -> u32 {
hilog_debug!("hello world");
hilog_debug!(
"test",
LogOptions {
tag: Some("testTag"),
domain: None
}
);
left + right
}