{"id":13648511,"url":"https://github.com/martinohmann/hcl-rs","last_synced_at":"2026-02-28T01:49:57.283Z","repository":{"id":37992458,"uuid":"460095848","full_name":"martinohmann/hcl-rs","owner":"martinohmann","description":"HCL parsing and encoding libraries for rust with serde support","archived":false,"fork":false,"pushed_at":"2026-02-25T06:19:00.000Z","size":1637,"stargazers_count":172,"open_issues_count":6,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-25T11:52:47.596Z","etag":null,"topics":["hcl","parser","rust","serde"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martinohmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"martinohmann"}},"created_at":"2022-02-16T16:56:20.000Z","updated_at":"2026-02-25T06:18:30.000Z","dependencies_parsed_at":"2025-05-01T00:23:14.164Z","dependency_job_id":"e237524f-113c-4ba6-a573-bb3fffcd0464","html_url":"https://github.com/martinohmann/hcl-rs","commit_stats":{"total_commits":353,"total_committers":5,"mean_commits":70.6,"dds":"0.21246458923512745","last_synced_commit":"9324a485d196c4e2a51bb10cb2ffbec4e17b353b"},"previous_names":[],"tags_count":199,"template":false,"template_full_name":null,"purl":"pkg:github/martinohmann/hcl-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fhcl-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fhcl-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fhcl-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fhcl-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martinohmann","download_url":"https://codeload.github.com/martinohmann/hcl-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martinohmann%2Fhcl-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29922398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hcl","parser","rust","serde"],"created_at":"2024-08-02T01:04:19.067Z","updated_at":"2026-02-28T01:49:57.275Z","avatar_url":"https://github.com/martinohmann.png","language":"Rust","funding_links":["https://github.com/sponsors/martinohmann"],"categories":["Rust","Libraries","Recently Updated"],"sub_categories":["IDE","[Feb 10, 2025](/content/2025/02/10/README.md)"],"readme":"# hcl-rs\n\n[![Build Status](https://github.com/martinohmann/hcl-rs/workflows/ci/badge.svg)](https://github.com/martinohmann/hcl-rs/actions?query=workflow%3Aci)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis repository contains the following rust crates around the Hashicorp\nConfiguration Language (HCL):\n\n- [`hcl-rs`](https://github.com/martinohmann/hcl-rs/blob/main/crates/hcl-rs):\n  HCL library with `serde` and expression evaluation support.\n- [`hcl-edit`](https://github.com/martinohmann/hcl-rs/blob/main/crates/hcl-edit):\n  Parse and modify HCL documents while preserving whitespace and comments.\n- [`hcl-primitives`](https://github.com/martinohmann/hcl-rs/blob/main/crates/hcl-primitives):\n  Primitives used by the HCL sub-languages.\n- [`hcl2json`](https://github.com/martinohmann/hcl-rs/blob/main/crates/hcl2json):\n  CLI program for converting HCL to JSON.\n\n## Feature parity with the go-hcl implementation\n\nThe crates in this repository try to closely follow these specifications that\nare part of the Hashicorp's [HCL Go\nimplementation](https://github.com/hashicorp/hcl):\n\n- [HCL Syntax-Agnostic Information Model](https://github.com/hashicorp/hcl/blob/main/spec.md)\n- [HCL Native Syntax Specification](https://github.com/hashicorp/hcl/blob/main/hclsyntax/spec.md)\n- [HCL JSON Syntax Specification](https://github.com/hashicorp/hcl/blob/main/json/spec.md)\n\nAt the parser level it should support all features that go-hcl does today.\nHowever, the implementations for formatting and expression evaluation in `hcl-rs`\nare relatively basic at the moment. There are plans to move formatting and\nexpression evaluation capabilities into `hcl-edit` (which is used by `hcl-rs` under\nthe hood and also contains the parser implementation) and to make them more\npowerful.\n\nAnother thing that is not included (yet), is the support for HCL schemas in\norder to validate that a parsed HCL document only contains an allowed set of\nblocks with expected attributes (e.g. to enable validation that a given\nterraform configuration only contains well-formed `resource` and `data` blocks\netc.).\n\nAdditionally, schema support can help to make it easier to encode more complex\nconfigurations using custom types. These configurations are currently\ncumbersome to assemble because of limitations of the `serde` model.\n\n## Contributing\n\nContributions are welcome! Please read\n[`CONTRIBUTING.md`](https://github.com/martinohmann/hcl-rs/blob/main/CONTRIBUTING.md)\nbefore creating a PR.\n\n## License\n\nIf not stated otherwise, the source code inside this repository is licensed\nunder either of [Apache License, Version\n2.0](https://github.com/martinohmann/hcl-rs/blob/main/LICENSE-APACHE) or [MIT\nlicense](https://github.com/martinohmann/hcl-rs/blob/main/LICENSE-MIT) at your\noption.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinohmann%2Fhcl-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinohmann%2Fhcl-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinohmann%2Fhcl-rs/lists"}