#hcl #primitive #hcl-primitives #sub-languages

no-std hcl-primitives

Primitives used by the HCL sub-languages

12 releases

0.1.8 Jan 10, 2025
0.1.7 Oct 4, 2024
0.1.6 Sep 25, 2024
0.1.5 May 16, 2024
0.0.2 Mar 16, 2023

#987 in Encoding

Download history 2535/week @ 2025-01-24 2894/week @ 2025-01-31 2966/week @ 2025-02-07 2853/week @ 2025-02-14 3436/week @ 2025-02-21 3916/week @ 2025-02-28 2447/week @ 2025-03-07 3788/week @ 2025-03-14 3045/week @ 2025-03-21 3369/week @ 2025-03-28 3285/week @ 2025-04-04 2788/week @ 2025-04-11 3211/week @ 2025-04-18 3375/week @ 2025-04-25 4213/week @ 2025-05-02 2921/week @ 2025-05-09

14,264 downloads per month
Used in 58 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

~45–260KB