{"id":16271089,"url":"https://github.com/semanser/terraform-parser","last_synced_at":"2025-10-04T04:32:18.840Z","repository":{"id":62438016,"uuid":"479537433","full_name":"semanser/terraform-parser","owner":"semanser","description":"Terraform State and Plan parser written in Rust","archived":false,"fork":false,"pushed_at":"2022-04-10T19:13:18.000Z","size":7,"stargazers_count":59,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-19T17:09:29.925Z","etag":null,"topics":["parser","rust","rust-crate","serde","serde-json","terraform"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/semanser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-08T21:02:31.000Z","updated_at":"2024-07-30T11:53:17.000Z","dependencies_parsed_at":"2022-11-01T21:45:52.191Z","dependency_job_id":null,"html_url":"https://github.com/semanser/terraform-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semanser%2Fterraform-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semanser%2Fterraform-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semanser%2Fterraform-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semanser%2Fterraform-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semanser","download_url":"https://codeload.github.com/semanser/terraform-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235217936,"owners_count":18954526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["parser","rust","rust-crate","serde","serde-json","terraform"],"created_at":"2024-10-10T18:12:23.069Z","updated_at":"2025-10-04T04:32:18.512Z","avatar_url":"https://github.com/semanser.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-parser\n[![docs.rs](https://img.shields.io/docsrs/terraform-parser)](https://docs.rs/terraform-parser/0.1.0/terraform_parser)\n[![Crates.io](https://img.shields.io/crates/d/terraform-parser)](https://crates.io/crates/terraform-parser)\n![Crates.io](https://img.shields.io/crates/l/terraform-parser)\n\nIncredibly fast, strongly typed Terraform [JSON Output Format](https://www.terraform.io/internals/json-format) parser written in Rust. Based on [serde](https://github.com/serde-rs/serde).\n\n# Usage\n\n```rust\nuse std::fs;\nuse terraform_parser::TerraformParser;\n\nfn main() {\n  let state =\n    fs::read_to_string(\"./state.json\").expect(\"Something went wrong reading the state file\");\n\n  let plan =\n    fs::read_to_string(\"./plan.json\").expect(\"Something went wrong reading the plan file\");\n\n  let parsed_state = TerraformParser::parse_state(\u0026state);\n  let parsed_plan = TerraformParser::parse_plan(\u0026plan);\n\n  println!(\"{}\", parsed_state.unwrap().terraform_version);\n  println!(\"{}\", parsed_plan.unwrap().format_version);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemanser%2Fterraform-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemanser%2Fterraform-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemanser%2Fterraform-parser/lists"}