eso_addon_manifest

A simple ESO AddOn Manifest.txt file parser and validator written in Rust

1 unstable release

0.1.1 Jun 1, 2023
0.1.0 Jun 1, 2023

MIT license

21KB
457 lines

codecov

eso-addon-manifest

A simple ESO AddOn Manifest.txt file parser and validator written in Rust


lib.rs:

A simple ESO AddOn Manifest.txt file parser and validator

Usage

use eso_addon_manifest::{AddonManifestParser, AddonManifest};

// let's say you have some addon with the patrial manifest:
// ## Title: AddonName
// ## APIVersion: 101037
// [...]

let parser = AddonManifestParser::default();
let result: AddonManifest = parser.parse("resources/test/AddonName.txt", None).unwrap();
assert_eq!("AddonName".to_string(), result.title);
assert_eq!(101037, result.api_version);

Dependencies

~2.5–4MB
~71K SLoC