Expand description
§hcl-primitives
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 inkstring
as a dependency. Theperf
feature depends on thestd
feature and enables it automatically.serde
: ProvidesSerialize
andDeserialize
implementations for various types within this crate. This feature is disabled by default. Enabling it will pull inserde
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.