mirror of https://github.com/kdl-org/kdl-rs.git
* Add From impls for KdlNodeValue Most clients probably don't need to create these directly, but we may as well make it easy for them. * Add TryFrom impls to convert from KdlNodeValue to underlying types This includes converting from borrowed values, which will produce `&str` instead of `String`. * Add test for parsing examples/ci.kdl This tests that the file can parse, and that its contents match what we expect. This test currently fails as the file cannot be parsed. I may have gone a little overboard in the macro I wrote in order to generate the expected nodes. * Add test for parsing examples/cargo.kdl * Add test for examples/nuget.kdl Unlike the others, this one just validates that it parses, as the file is sufficiently large that I don't want to copy its contents into the test. |
||
|---|---|---|
| .github | ||
| examples | ||
| src | ||
| tests | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| Cargo.toml | ||
| LICENSE.md | ||
| README.md | ||
README.md
kdl - Kat's Document Language
kdl is a document language, mostly based on SDLang, with xml-like semantics that looks like you're invoking a bunch of CLI commands!
It's meant to be used both as a serialization format and a configuration language, and is relatively light on syntax compared to XML.
This repository is the official/reference implementation in Rust, and corresponds to the kdl crate
Design and Discussion
kdl is still extremely new, and discussion about the format should happen over on the spec repo's discussions page. Feel free to jump in and give us your 2 cents!
License
The code in this repository is covered by the Parity License, a strong copyleft license. That means that you can only use this project if you're working on an open source-licensed product (MIT/Apache projects are ok!)