4 releases

0.2.0 Aug 30, 2021
0.1.2 Nov 24, 2016
0.1.1 Sep 8, 2016
0.1.0 Sep 1, 2016

#791 in Encoding

Apache-2.0

110KB
3K SLoC

erl_interface for Rust

TODO

  • improper list
  • cnode

build

  • rust: 1.54.0
  • erlang: 24.0.5
cargo build

Example

port:

rust:

$ cargo build --example port
...
$ cd examples
$ erl
Eshell V12.0.3  (abort with ^G)
1>

erlang:

1> c(port).
{ok,port}
2> {ok,P} = port:start_link().
{ok,<0.86.0>}
3> port:add(P, 1, 2).
{ok,3}
4> port:sub(P, 3, 1).
{ok,2}
5> port:mul(P, 2, 3).
{error,undef}
6> port:stop(P).
ok

License

Apache-2.0

Dependencies

~0.4–1MB
~23K SLoC