Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leopoldarkham/molten
[WIP] Molten - Style-preserving TOML parser.
https://github.com/leopoldarkham/molten
parser rust style-preserving toml
Last synced: about 1 month ago
JSON representation
[WIP] Molten - Style-preserving TOML parser.
- Host: GitHub
- URL: https://github.com/leopoldarkham/molten
- Owner: LeopoldArkham
- License: apache-2.0
- Created: 2017-02-26T20:22:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T13:16:54.000Z (over 6 years ago)
- Last Synced: 2023-04-10T02:16:52.885Z (almost 2 years ago)
- Topics: parser, rust, style-preserving, toml
- Language: Rust
- Homepage:
- Size: 317 KB
- Stars: 40
- Watchers: 6
- Forks: 7
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Molten
[![Build Status](https://travis-ci.org/LeopoldArkham/Molten.svg?branch=master)](https://travis-ci.org/LeopoldArkham/Molten)
[![Windows build status](https://ci.appveyor.com/api/projects/status/github/LeopoldArkham/Molten?svg=true)](https://ci.appveyor.com/project/LeopoldArkham/Molten)## [WIP] Molten - Style-preserving TOML parser
Molten is a WIP lossless [TOML](https://github.com/toml-lang/toml) parser that preserves all
comments, indentations, whitespace and internal element ordering, and makes all of these fully
editable via an easy API. It is written with the intent of replacing the current TOML parser
used in [cargo-edit](https://github.com/killercup/cargo-edit), and, eventually, adding that
functionality to Cargo itself.### Goals
- Speed: Molten is a one-pass parser which avoids allocation.
- Unopinionated: Molten respects the way you wrote your document, to the letter.
- Fully addressable: All TOML elements can be edited, created, or deleted via the API.
- Strong API: The API does not let you create an invalid TOML file.### Non-Goals
- Error recovery: Molten does not try to correct recoverable errors.
- Serde support: See [toml-rs](https://github.com/alexcrichton/toml-rs) for this.## License
This project is licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
- MIT license ([LICENSE-MIT](LICENSE-MIT))at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in Molten by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.