1 2 3 4 5 6 7 8 9 10 11 12 13
use napi_derive::napi; /// Hash function #[napi(js_name = "hash")] pub fn js_hash(data: String) -> i64 { crate::ext::hash(data) } /// Get the current version of the client #[napi(js_name = "version")] pub fn js_version() -> &'static str { crate::version() }