rusterlium / rustler

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

Fix atoms module name generated by the `NifStruct` derive macro #585

Closed philss closed 5 months ago

philss commented 6 months ago

This is related to https://github.com/rusterlium/rustler/pull/573, but now the macro is given a warning even with the annotation to ignore.

image

So this is a fix that turns the atoms module name generated by the macro into a snake case name.