mirror of https://github.com/status-im/NimYAML.git
YAML implementation for Nim
https://nimyaml.org
ad18db5113
* needed for JS backend |
||
---|---|---|
bench | ||
doc | ||
private | ||
server | ||
test | ||
.gitignore | ||
CHANGELOG.md | ||
README.md | ||
config.nims | ||
copying.txt | ||
nimdoc.cfg | ||
yaml.nim | ||
yaml.nimble |
README.md
NimYAML - YAML implementation for Nim
NimYAML is a pure Nim YAML implementation without any dependencies other than Nim's standard library. It enables you to serialize Nim objects to a YAML stream and back. It also provides a low-level event-based API, and a document object model which you do not want to use because serializing to native types is much more awesome.
Documentation, examples and an online demo are available here. Releases are available as tags in this repository and can be fetched via nimble:
nimble install yaml
Features that may come in the future
- Serialization:
- Support for more standard library types
- Support for polymorphism
- Support for generic objects
- Support for transient fields (i.e. object fields that will not be (de-)serialized
Developers
nim tests # runs unit tests (serialization, dom, json)
# for parser tests, see yamlTestSuite
nim serializationTests # runs serialization tests
nim documentation # builds documentation to folder docout
nim server # builds the REST server used for the testing ground
nim bench # runs benchmarks, requires libyaml
nim clean # guess
nim build # build a library
nim yamlTestSuite # execute YAML test suite (git-clones yaml-dev-kit)
NimYAML needs at least Nim 0.14.0 in order to compile.