Refactor: migrate to `napi-rs`
I'm enjoying https://github.com/napi-rs/napi-rs very much recently at https://github.com/unrs/unrs-resolver, so I'm proposing to refactor the WASM part into napi-rs.
cc @tamasfe @panekj
What for?
Prefer native napi bindings over WASM when available.
I don't see a reason to remove WASM just to make "native" bindings
I don't see a reason to remove WASM just to make "native" bindings
@napi-rs also compiles WASM, for example https://www.npmjs.com/package/@unrs/resolver-binding-wasm32-wasi, it just "prefer" native bindings which always has better performance.