Hi there, I’m trying to create a NIF for the onvif-rf library in rust, I’m getting this error:
== Compilation error in file lib/onvifphx/OnvifrsNif.ex ==
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom
(elixir 1.14.3) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir 1.14.3) lib/enum.ex:166: Enumerable.reduce/3
(elixir 1.14.3) lib/enum.ex:4307: Enum.filter/2
(rustler 0.27.0) lib/rustler/compiler/config.ex:121: Rustler.Compiler.Config.gather_local_crates/4
(rustler 0.27.0) lib/rustler/compiler/config.ex:99: Rustler.Compiler.Config.external_resources/3
(rustler 0.27.0) lib/rustler/compiler/config.ex:70: Rustler.Compiler.Config.build/1
(rustler 0.27.0) lib/rustler/compiler.ex:9: Rustler.Compiler.compile_crate/2
lib/onvifphx/OnvifrsNif.ex:4: (module)
I tried to load the onvif lib from onvif-rs in dependencies as it follow:
[dependencies]
onvif= { path =“./src/onvifrsmain/onvif/”}
Thanks!