Crate hcl_primitives

source ·
Expand description

§hcl-primitives

Build Status crates.io docs.rs License: Apache 2.0 License: MIT

Primitives used by the HCL sub-languages.

It is recommended to use hcl-rs or hcl-edit instead of depending on hcl-primitives directly.

§Cargo features

The following features are available:

  • perf: enables parser performance optimizations such as inlining of small strings on the stack. This feature is disabled by default. Enabling it will pull in kstring as a dependency. The perf feature depends on the std feature and enables it automatically.
  • serde: Provides Serialize and Deserialize implementations for various types within this crate. This feature is disabled by default. Enabling it will pull in serde as a dependency.
  • std: Use the Rust Standard Library as a dependency. Disabling this feature will allow usage in #![no_std] environments. This feature is enabled by default.

§Contributing

Contributions are welcome! Please read CONTRIBUTING.md before creating a PR.

§License

The source code of hcl-primitives is licensed under either of Apache License, Version 2.0 or MIT license at your option.

Modules§

  • Primitives for the HCL expression sub-language.
  • Construct and validate HCL identifiers.
  • Primitives for the HCL template sub-language.

Structs§

  • The error type used by this crate.
  • Represents an HCL identifier.
  • An opaque string storage which inlines small strings on the stack if the perf feature is enabled.
  • Represents an HCL number.