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

no-std hcl-primitives

Primitives used by the HCL sub-languages

8 releases

new 0.1.4 Apr 13, 2024
0.1.3 Apr 8, 2024
0.1.2 Jan 4, 2024
0.1.1 Jun 15, 2023
0.0.2 Mar 16, 2023

#1063 in Encoding

Download history 495/week @ 2023-12-22 1180/week @ 2023-12-29 656/week @ 2024-01-05 599/week @ 2024-01-12 843/week @ 2024-01-19 724/week @ 2024-01-26 959/week @ 2024-02-02 541/week @ 2024-02-09 870/week @ 2024-02-16 593/week @ 2024-02-23 770/week @ 2024-03-01 683/week @ 2024-03-08 695/week @ 2024-03-15 902/week @ 2024-03-22 1034/week @ 2024-03-29 909/week @ 2024-04-05

3,647 downloads per month
Used in 23 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–295KB