#primitive #hcl

no-std hcl-primitives

Primitives used by the HCL sub-languages

15 releases

0.1.11 Oct 4, 2025
0.1.9 Jun 28, 2025
0.1.8 Jan 10, 2025
0.1.7 Oct 4, 2024
0.0.2 Mar 16, 2023

#1719 in Encoding

Download history 5121/week @ 2025-09-22 4826/week @ 2025-09-29 5058/week @ 2025-10-06 5932/week @ 2025-10-13 4438/week @ 2025-10-20 5263/week @ 2025-10-27 5871/week @ 2025-11-03 4948/week @ 2025-11-10 6300/week @ 2025-11-17 5317/week @ 2025-11-24 7657/week @ 2025-12-01 6733/week @ 2025-12-08 7185/week @ 2025-12-15 3906/week @ 2025-12-22 6271/week @ 2025-12-29 26176/week @ 2026-01-05

43,913 downloads per month
Used in 78 crates (3 directly)

MIT/Apache

49KB
1K SLoC

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.

Dependencies

~77–295KB