ei

Crates.ioei
lib.rsei
version0.2.0
sourcesrc
created_at2016-09-01 03:09:27.813578
updated_at2021-08-30 12:16:17.331767
descriptionerl_interface for rust
homepage
repositoryhttps://github.com/tomaon/ei
max_upload_size
id6203
size115,880
Tomohiko AONO (tomaon)

documentation

README

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

Commit count: 13

cargo fmt