#nif #erlang #ffi

sys erlang_nif-sys

Create Erlang NIF modules in Rust using the C NIF API

12 releases

Uses old Rust 2015

0.6.5 Mar 9, 2019
0.6.4 Jun 20, 2018
0.6.3 Jan 1, 2018
0.6.2 Jun 25, 2017
0.5.3 Jul 27, 2016

#7 in #nif

Download history 1/week @ 2024-01-05 46/week @ 2024-01-12 24/week @ 2024-01-19 4/week @ 2024-01-26 18/week @ 2024-02-02 11/week @ 2024-02-09 37/week @ 2024-02-16 86/week @ 2024-02-23 24/week @ 2024-03-01 25/week @ 2024-03-08 14/week @ 2024-03-15 7/week @ 2024-03-22 36/week @ 2024-03-29 37/week @ 2024-04-05 18/week @ 2024-04-12 50/week @ 2024-04-19

142 downloads per month

MIT/Apache

69KB
943 lines

erlang_nif-sys

Docs Build Status Build status

A crate for creating Erlang NIF modules in Rust. This crate exposes the raw C NIF API which can be used directly or as a foundation for higher layer interface crates. Supported under Unix and Windows.

See the crate documention.

See examples of use:

  • rust.mk for a sample Rust NIF module.
  • rebar3_rust a rebar3 plugin inspired by rust.mk that helps integrate Rust code inside Erlang projects.
  • Rustler
  • rustfromerl a demo project showing performance differences between Erlang code and a simmilar Rust NIF implementation.

Thanks go to Radosław Szymczyszyn for bootstrapping me on this Rust FFI adventure and providing the original automatic bindings.

Dependencies