A Rust node implemented based on the Erlang distributed protocol.
cd crates/server/examples to run the following example.
Running server or client depends on the epmd, so we need to start epmd first. Find the path where epmd is located, then run the following command:
${epmd_path} -daemoneg:
/usr/lib64/erlang/erts-14.1.1/bin/epmd -daemonPlease follow the steps below.
Open a terminal run the following command to start a rust node.
cargo run --example serverfor TLS
cargo run --example server --features rustlsOpen a terminal run the following command to connect the rust node.
iex --sname a --cookie aaa client.exsfor TLS
iex --sname a --cookie aaa --erl "-proto_dist inet_tls -ssl_dist_optfile `pwd`/ssl-rust.conf" client.exsPlease follow the steps below.
Open a terminal run the following command to start a elixir node.
iex --sname a --cookie aaa server.exsfor TLS
iex --sname a --cookie aaa --erl "-proto_dist inet_tls -ssl_dist_optfile `pwd`/ssl-rust.conf" server.exsOpen a terminal run the following command to connect the elixir node.
cargo run --example clientfor TLS
cargo run --example client --features rustls