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

Test proc macro errors #1030

Open kjvalencik opened 5 months ago

kjvalencik commented 5 months ago

An important part of good proc macros is giving good error messages when they are misused. https://github.com/neon-bindings/neon/pull/1025 introduced the #[neon::export] macro and makes an effort to catch some common traps.

However, these are un-tested. We should add a "compile error" test suite.