I looked into it. The current workaround would be use different struct for main and worker threads. Making NAPI-RS supporting generic could reduce the maintain overhead. @Brooooooklyn
Originally posted by @hyf0 in #985 (comment)
This issue is currently blocked by macros of NAPI-RS doesn't support struct with generics. We encourage contributors to have experiences of writting proc macros to help of NAPI-RS: napi-rs/napi-rs#2071
--
Solve this issues will fixes: