yaml2lua 0.1.1

Convert YAML to Lua table
Documentation

yaml2lua

Convert YAML to Lua table

Example:

use yaml2lua::parse;

let yaml = r#"
string: yaml2lua
int: 420
bool: true

array:
  - abc
  - 123
"#;

let lua = parse(yaml).unwrap();
// Output:
// {
//   ["string"] = "yaml2lua",
//   ["int"] = 420,
//   ["bool"] = true,
//   ["array"] = {
//      "abc",
//      123,
//   },
// }

Notes

  • Mappings only support String, Number and Bool keys
  • Tagged values are not supported yet