use napi::bindgen_prelude::*; #[napi] pub async fn async_plus_100(p: Promise) -> Result { let v = p.await?; Ok(v + 100) }