eon-rs

Crates.ioeon-rs
lib.rseon-rs
version1.0.0
sourcesrc
created_at2021-12-31 05:51:48.199761
updated_at2021-12-31 05:51:48.199761
descriptionA reference parser for EON (Extensible Object Notation)
homepagehttps://github.com/TheArchitect4855/eon-rs
repositoryhttps://github.com/TheArchitect4855/eon-rs
max_upload_size
id505690
size16,897
Kurtis Knodel (TheArchitect4855)

documentation

README

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.

License

MIT

Commit count: 9

cargo fmt