codemp/src/ffi/js/ext.rs

13 lines
203 B
Rust
Raw Normal View History

2024-08-27 16:09:44 +02:00
use napi_derive::napi;
#[napi(js_name = "hash")]
pub fn js_hash(data: String) -> i64 {
crate::ext::hash(data)
2024-08-27 16:09:44 +02:00
}
#[napi(js_name = "version")]
pub fn js_version() -> String {
crate::version()
}