Packages

Elixir library for extracting text and metadata from various document formats using the Extractous Rust library

Current section

Files

Jump to
extractous_ex native extractousex_native README.md
Raw

native/extractousex_native/README.md

# NIF for ExtractousEx.Native
## To build the NIF module:
- Your NIF will now build along with your project.
## To load the NIF:
```elixir
defmodule ExtractousEx.Native do
use Rustler, otp_app: :extractous_ex, crate: "extractousex_native"
# When your NIF is loaded, it will override this function.
def add(_a, _b), do: :erlang.nif_error(:nif_not_loaded)
end
```
## Examples
[This](https://github.com/rusterlium/NifIo) is a complete example of a NIF written in Rust.