rusterlium / rustler

Safe Rust bridge for creating Erlang NIF functions
https://docs.rs/crate/rustler
Apache License 2.0
4.32k stars 225 forks source link

Discover NIFs at startup #613

Closed filmor closed 4 months ago

filmor commented 4 months ago

This is a proof-of-concept for a mechanism that does away with the need to list all NIF functions in the rustler::init! invocation. A similar mechanism will be required and implemented for resource type registrations.

Next steps:

scrogson commented 4 months ago

Love this idea!

filmor commented 4 months ago

From my point of view, this is done and ready to merge.

filmor commented 4 months ago

I'll merge this now. We can further discuss on #620 and/or #617 whether and how to use linkme instead.