README.md (435B)
1 # NIF for Elixir.Tree 2 3 ## To build the NIF module: 4 5 - Your NIF will now build along with your project. 6 7 ## To load the NIF: 8 9 ```elixir 10 defmodule Tree do 11 use Rustler, otp_app: :genetic, crate: "tree" 12 13 # When your NIF is loaded, it will override this function. 14 def add(_a, _b), do: :erlang.nif_error(:nif_not_loaded) 15 end 16 ``` 17 18 ## Examples 19 20 [This](https://github.com/rusterlium/NifIo) is a complete example of a NIF written in Rust.