mirror of
https://github.com/hexedtech/codemp.git
synced 2025-03-31 16:41:33 +02:00
12 lines
203 B
Rust
12 lines
203 B
Rust
use napi_derive::napi;
|
|
|
|
|
|
#[napi(js_name = "hash")]
|
|
pub fn js_hash(data: String) -> i64 {
|
|
crate::ext::hash(data)
|
|
}
|
|
|
|
#[napi(js_name = "version")]
|
|
pub fn js_version() -> String {
|
|
crate::version()
|
|
}
|