hcl.cr

Featured

hcl.cr general-purpose HCL2 (Hashicorp Configuration Language) parser written in Crystal. It does not make any domain assumptions and aims to be spec-compliant and compatible with the Go implementation.

HCL2 support is more-or-less considered feature-complete. However, it does not yet run against the spec test suite, so there may be situations in which some documents do not work as they should or as they work in the go reference implementation. An hcldec implementation is being developed to test against the spec test suite.

It does not yet have full support for some of the more "dynamic" uses supported by the Go implementation, such as certain types of partial evaluation and unknown/dynamic types. i.e. you probably could not build Terraform on top of it, but you could build a nice configuration system for your program.

Copyright © 2009-2026 Max Fierke