kv2 0.1.0

kv2 (keyvalues 2) format parser with serde support
Documentation

CI Crates.io Version docs.rs

kv2

A Rust crate for parsing Valve's KeyValues2 (KV2) format.

Overview

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

Features

  • Parsing: Parsing KV2 Format.
  • Deserialization: Deserialization Serde Support for the KV2 parsing.
  • Serialization: TODO.
  • 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 kv2 to your Cargo.toml dependencies:

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