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.exsfor the README example orserde_rustler_tests_test.exsto see the Elixir-end of the types and tests, orserde_rustler_tests/src/test.rsandserde_rustler_tests/src/types.rsto see the NIF tests and Rust native types. - see
json.rsfor the implementation of the JSON encoding/decoding benchmark functions, orbenchmarks.exsfor the benchmarks themselves, or justencode.mdordecode.mdto skip to the results.