Crates.io | ohos-hilogs-binding |
lib.rs | ohos-hilogs-binding |
version | 0.0.2 |
source | src |
created_at | 2024-06-04 01:37:42.831205 |
updated_at | 2024-06-04 01:37:42.831205 |
description | hilog binding for rust |
homepage | |
repository | |
max_upload_size | |
id | 1260616 |
size | 4,669 |
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
}