You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
- Convert `Nif` to a `struct`
- Use `inventory` to register the `Nif` instances
- In `rustler::init!`, ignore the passed functions and instead use the
registered `Nif` instances
Next steps:
- See whether `linkme` is not a better option (creates the array
directly at build-time, no need to leak)
- Implement resource registration using this mechanism
- See if we can move the macros to `rustler`
0 commit comments