Skip to content

Rust library for connecting to Erlang nodes via EI (Erlang Interface).

Notifications You must be signed in to change notification settings

treere/beam_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beam_node

Rust library for connecting to Erlang nodes via EI (Erlang Interface).

Overview

beam_node provides a Rust interface to Erlang's EI library, enabling Rust applications to communicate with Erlang nodes. It allows sending and receiving Erlang terms, connecting to remote nodes, and working with Erlang processes.

Usage

use beam_node::{Node, Term};

let mut node = Node::new("mynode@hostname", "cookie")?;
let mut conn = node.connect("server@hostname")?;

conn.send(&pid, "hello")?;

let msg: Term = conn.receive()?;

Features

  • Connect to Erlang nodes
  • Send and receive Erlang terms
  • Support for PID handling
  • Configurable timeouts for receive operations

Requirements

  • Erlang/OTP development libraries (ei)
  • Rust 2021 edition

Installation

Ensure you have Erlang installed, then build the project:

cargo build

License

MIT

About

Rust library for connecting to Erlang nodes via EI (Erlang Interface).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages