Closed ranile closed 1 year ago
Thanks for reporting. Unless this is causing you issues, I'm going to close this issue for a couple of reasons:
register_module
has been deprecated in favor of the main
proc macro for a long timeregister_module
has been deleted on main
Let me know if this is an issue you can't workaround and I can re-open. Cheers!
The following code should compile just fine but it fails:
Error message
``` error: cannot find macro `register_module` in this scope --> src/lib.rs:65:9 | 65 | / neon::register_module!(mut m, { 66 | | m.export_function("make_num_77", make_num_77)?; 67 | | }); | |__________^ | = help: consider importing one of these items: crate::tests::register_module neon::register_module = note: this error originates in the macro `neon::register_module` (in Nightly builds, run with -Z macro-backtrace for more info) ```This is because the macro assumes itself to be in scope, which isn't the case if a qualified path is used. See https://docs.rs/neon/latest/src/neon/lib.rs.html#121