4 releases

0.2.1 May 28, 2024
0.2.0 May 28, 2024
0.1.1 May 26, 2024
0.1.0 May 26, 2024

#702 in Parser implementations

Download history 130/week @ 2024-05-20 204/week @ 2024-05-27 10/week @ 2024-06-03 4/week @ 2024-06-10

348 downloads per month

MIT license

34KB
446 lines

ensan

Crates.io Version Crates.io License

A corrosive expression engine for a corroded language.

Extended (Dynamic) Evaluation Engine for hcl-rs.

This crate aims to provide an extended evaluation engine for hcl-rs. It simplifies the usage of hcl-rs by re-implementing features in hcldec library. It includes advanced DAG graph building and evaluation features, allowing evaluation of references in the current document without needing additional variables in the context, similar to Terraform's behavior.

Features

  • Re-implementations of the HCL2 built-in functions from Terraform, Packer, and other HashiCorp tools.
  • Out-of-the-box support for evaluating references in the current document.
  • Simple API for evaluating entire documents with serde serialization support.

For usage, see the documentation for the engine module.

Dependencies

~8–17MB
~257K SLoC