#yaml #easy-yaml

easy_yaml

Easy work with Yaml files

2 releases

0.1.1 Apr 14, 2024
0.1.0 Apr 14, 2024

#2078 in Encoding

MIT/Apache

6KB

Easy Yaml

Easy work with Yaml files

Dependency

cargo add easy_yaml

Usage

use easy_yaml::*;

let yaml = EasyYaml::new("tests/test.yaml");
let result = yaml.get("key2.key3.key4");

match result {
    Some(v) => match v {
        String(s) => assert_eq!("value2".to_string(), s),
        _ => panic!("Value: {:?}", v),
    },
    None => panic!("-_-"),
}

Dependencies

~12–23MB
~325K SLoC