neon-bindings / neon

Rust bindings for writing safe and fast native Node.js modules.
https://www.neon-bindings.com/
Apache License 2.0
7.98k stars 282 forks source link

Update most tests to use `neon::export` #1029

Open kjvalencik opened 5 months ago

kjvalencik commented 5 months ago

https://github.com/neon-bindings/neon/pull/1025 introduced #[neon::export], simplifying the process of exporting functions. Most of our tests can be simplified with this macro.

It is valuable to do this conversion since tests frequently act as examples for users.