Crates.io | hcl-edit |
lib.rs | hcl-edit |
version | 0.8.3 |
source | src |
created_at | 2023-03-24 21:47:09.160432 |
updated_at | 2024-10-04 11:16:30.420971 |
description | Parse and modify HCL while preserving comments and whitespace |
homepage | |
repository | https://github.com/martinohmann/hcl-rs |
max_upload_size | |
id | 819726 |
size | 335,266 |
Parse and modify HCL documents while preserving whitespace and comments. This
crate is to HCL what toml_edit
is to TOML. In
fact, its API is heavily inspired by toml_edit
.
The documentation as well as usage examples are scarce. There's still a lot of planned functionality missing and some APIs might even be cumbersome to use at the moment.
This will improve over time as this project evolves.
Expect breaking changes at any time until the biggest issues are fleshed out.
The visit
module
allows traversal of language items within a HCL document. Mutable document
traversal is supported via the
visit_mut
module.
See the respective module's documentation for more.
Contributions are welcome! Please read
CONTRIBUTING.md
before creating a PR.
The source code of hcl-edit is licensed under either of Apache License, Version 2.0 or MIT license at your option.