#erlang

eetf

Library for encoding/decoding Erlang External Term Format

18 releases (11 breaking)

Uses new Rust 2024

0.12.0 Apr 29, 2026
0.11.0 Sep 6, 2025
0.10.0 Mar 16, 2025
0.9.0 Sep 23, 2023
0.3.3 Jun 3, 2016

#439 in Encoding

Download history 3759/week @ 2026-02-22 3743/week @ 2026-03-01 3414/week @ 2026-03-08 2458/week @ 2026-03-15 1319/week @ 2026-03-22 1585/week @ 2026-03-29 1552/week @ 2026-04-05 2111/week @ 2026-04-12 2677/week @ 2026-04-19 2163/week @ 2026-04-26 1643/week @ 2026-05-03 1596/week @ 2026-05-10 1762/week @ 2026-05-17 1940/week @ 2026-05-24 714/week @ 2026-05-31 1740/week @ 2026-06-07

6,280 downloads per month
Used in 12 crates (7 directly)

MIT license

87KB
2.5K SLoC

Library for encoding/decoding Erlang External Term Format.

Examples

Decodes an atom:

use std::io::Cursor;
use eetf::{Term, Atom};

let bytes = vec![131, 119, 3, 102, 111, 111];
let term = Term::decode(Cursor::new(&bytes)).unwrap();
assert_eq!(term, Term::from(Atom::from("foo")));

Encodes an atom:

use eetf::{Term, Atom};

let mut buf = Vec::new();
let term = Term::from(Atom::from("foo"));
term.encode(&mut buf).unwrap();
assert_eq!(vec![131, 119, 3, 102, 111, 111], buf);

Reference


eetf

eetf Documentation Actions Status License: MIT

A Rust implementation of Erlang External Term Format.

Documentation

See RustDoc Documentation.

The documentation includes some examples.

Dependencies

~600KB
~13K SLoC