1 stable release
1.0.0 | Dec 31, 2021 |
---|
#87 in #extensible
16KB
609 lines
eon-rs
eon-rs is a Rust library for parsing EON.
Installation
Add eon-rs = "1.0.0"
to your Cargo.toml
file.
Usage
use eon_rs;
// Read EON from file
let mut object = eon_rs::load("/path/to/your/eon/file")
.unwrap();
// Parse EON string
let value = eon_rs::parse("3.14159")
.unwrap();
// Manipulate EON objects
object.set(
String::from("foo"),
EonValue::Bool(true),
);
let foo = object.get("foo").unwrap();
object.remove("foo");
// Serialize EON
let serialized = object.to_string();
Contributing
Contributions welcome. Make issues for any bugs, missing features, or large changes.