Serde Serializer and Deserializer for Rustler NIFs.
This repo contains the following:
serde_rustler
: Rust crate providing the Serializer and Deserializer; meant to be used within your NIF libraries.serde_rustler_tests
: NIF written for testing and benchmarkingserde_rustler
- see the repo README for installation instructions, a simple example of usage, and data model conversion table.
- check out the tests in
readme_test.exs
for the README example orserde_rustler_tests_test.exs
to see the Elixir-end of the types and tests, orserde_rustler_tests/src/test.rs
andserde_rustler_tests/src/types.rs
to see the NIF tests and Rust native types. - see
json.rs
for the implementation of the JSON encoding/decoding benchmark functions, orbenchmarks.exs
for the benchmarks themselves, or justencode.md
ordecode.md
to skip to the results.