#hcl #primitive #parser #serde #sub-languages

no-std hcl-primitives

Primitives used by the HCL sub-languages

9 releases

0.1.5 May 16, 2024
0.1.4 Apr 13, 2024
0.1.2 Jan 4, 2024
0.1.1 Jun 15, 2023
0.0.2 Mar 16, 2023

#1547 in Encoding

Download history 710/week @ 2024-03-14 835/week @ 2024-03-21 1069/week @ 2024-03-28 937/week @ 2024-04-04 1127/week @ 2024-04-11 1811/week @ 2024-04-18 1857/week @ 2024-04-25 1952/week @ 2024-05-02 1934/week @ 2024-05-09 3040/week @ 2024-05-16 2026/week @ 2024-05-23 2778/week @ 2024-05-30 2030/week @ 2024-06-06 1590/week @ 2024-06-13 1973/week @ 2024-06-20 1152/week @ 2024-06-27

7,318 downloads per month
Used in 28 crates (2 directly)

MIT/Apache

48KB
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

~49–290KB