Crates.io | ei |
lib.rs | ei |
version | 0.2.0 |
source | src |
created_at | 2016-09-01 03:09:27.813578 |
updated_at | 2021-08-30 12:16:17.331767 |
description | erl_interface for rust |
homepage | |
repository | https://github.com/tomaon/ei |
max_upload_size | |
id | 6203 |
size | 115,880 |
cargo build
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
Apache-2.0