docs.rs failed to build rust_erl_ext-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Rust Erl Ext
Erlang external term format parser/serializer for Rust.
Examples
Decoding
extern crate erl_ext;
use Decoder;
Encoding
extern crate erl_ext;
use ;
More examples are in examples
directory.
Types (all Erlang 17.1 types are supported):
- SmallInteger (u8) :
0..255
- Integer (i32) :
integer()
- Float (f64) :
float()
- Atom (String) :
atom()
- Reference :
reference()
erlang:make_ref/0
- Port :
port()
eg, socket or raw file orerlang:open_port/2
- Pid :
pid()
- Tuple (
Vec<Eterm>
) :{ any() }
- Map (
Vec<(Eterm, Eterm)>
) :#{any() := any()}
- Nil :
[]
- String (
Vec<u8>
) :[0..255]
- List (
Vec<Eterm>
) :[ any() ]
- Binary (
Vec<u8>
) :binary()
- BigNum (
BigInt
) :integer() > i32
- Fun :
fun(..) -> ... end.
- deprecated variant - NewFun :
fun(..) -> ... end.
- Export :
fun my_mod:my_fun/1
- BitBinary :
<<128, 128:4>>
TODO
serialize::Decoder
andserialize::Encoder
implementations (not so easy for containers)- Quick-Check - like tests (feed pseudo-random bytes to decoder, feed random Eterm's to encoder)
Keywords
- Rust
- Erlang
- BERT
- External term format
- term_to_binary, binary_to_term
- parser, serializer