-
Notifications
You must be signed in to change notification settings - Fork 230
cargo-rustler #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
cargo-rustler #614
Conversation
56a3340
to
2366e44
Compare
An alternate approach here might be to serialize the configuration and embed it in the binary as a symbol. We could then just read it directly from the binary, without having to load it. I think this would have a few advantages:
|
Any example of what you are thinking of? With the NIF discovery merged, the NIF collection will only be known when loading the library (which is how NIF linraries work on general). |
f845501
to
cd4ca76
Compare
Initial PoC for a tool that takes a compiled NIF library and reads back its information. This could be used to automatically generate a matching Erlang (
rebar3_cargo
) or Elixir (Rustler
) module. Could be a dead end, but I don't like the current ergonomics of the wrapper modules.