yaml2lua 0.1.0

Convert YAML to Lua table
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 20.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 194.21 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DervexDev

yaml2lua

Convert YAML to Lua table

Example:

use yaml2lua::parse;

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

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