mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
- also refactor the enum codegen, now we will not emit #[derive(Copy, Clone)] for the original enums. - also refacotr the fn codegen, now #[napi] fn can accept env: &Env as argument, this is useful when the return type contains lifetime
napi-derive-backend
Take care the ast parsing from napi-derive and generate "bridge" runtime code for both nodejs and rust.