#hcl #primitive

no-std hcl-primitives

Primitives used by the HCL sub-languages

11 releases

0.1.7 Oct 4, 2024
0.1.5 May 16, 2024
0.1.2 Jan 4, 2024
0.1.1 Jun 15, 2023
0.0.2 Mar 16, 2023

#880 in Encoding

Download history 2502/week @ 2024-07-21 3360/week @ 2024-07-28 1625/week @ 2024-08-04 2319/week @ 2024-08-11 2086/week @ 2024-08-18 2119/week @ 2024-08-25 1623/week @ 2024-09-01 2009/week @ 2024-09-08 1880/week @ 2024-09-15 1873/week @ 2024-09-22 2571/week @ 2024-09-29 1283/week @ 2024-10-06 1834/week @ 2024-10-13 2061/week @ 2024-10-20 2189/week @ 2024-10-27 2405/week @ 2024-11-03

8,519 downloads per month
Used in 39 crates (2 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

~47–275KB