kv3 0.1.1

kv3 (keyvalues 3) format parser with serde support
Documentation
  • Coverage
  • 14.29%
    2 out of 14 items documented2 out of 5 items with examples
  • Size
  • Source code size: 70.58 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dxshie/kv3
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dxshie

CI Crates.io Version docs.rs

kv3

A Rust crate for parsing Valve's KeyValues3 (KV3) format.

Overview

kv3 is a Rust library for parsing and serializing the KeyValues3 (KV3) format used by Valve in their games and tools. It allows you to read KV3 files and access their data in a structured way.

Features

  • Parsing: Parsing KV3 Format.
  • Deserialization: Deserialization Serde Support for the KV3 parsing.
  • Serialization: TODO.
  • Support for Header Metadata: TODO.
  • Support for Comments: Handles single-line (//), multi-line (/* ... */), and XML-style (<!-- ... -->) comments.
  • Support for Multiline Strings: Parses multiline strings enclosed in triple double-quotes (""").
  • Handles Various Data Types: Supports booleans, integers, floats, strings, arrays, hex arrays(binary blobs), objects, and null values.
  • Customizable Parsing: Built using the nom parser combinator library for flexibility.

Installation

Add kv3 to your Cargo.toml dependencies:

[dependencies]
kv3 = { version = "0.1.0", features = ["serde"] }