| Crates.io | eon-rs |
| lib.rs | eon-rs |
| version | 1.0.0 |
| created_at | 2021-12-31 05:51:48.199761+00 |
| updated_at | 2021-12-31 05:51:48.199761+00 |
| description | A reference parser for EON (Extensible Object Notation) |
| homepage | https://github.com/TheArchitect4855/eon-rs |
| repository | https://github.com/TheArchitect4855/eon-rs |
| max_upload_size | |
| id | 505690 |
| size | 16,897 |
eon-rs is a Rust library for parsing EON.
Add eon-rs = "1.0.0"
to your Cargo.toml file.
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();
Contributions welcome. Make issues for any bugs, missing features, or large changes.