Crate steam_vdf_parser

Crate steam_vdf_parser 

Source
Expand description

Blazing fast VDF (Valve Data Format) parser.

This library provides parsers for both text and binary VDF formats used by Steam and other Valve Software products.

§Features

  • no_std compatible — works without the standard library, requires only alloc
  • Zero-copy parsing for text format when possible (no escape sequences)
  • Binary format support for Steam’s appinfo.vdf, shortcuts.vdf, and packageinfo.vdf
  • Winnow-powered text parser for maximum performance

§Example

use steam_vdf_parser::parse_text;

let input = r#""root"
{
    "key" "value"
    "nested"
    {
        "subkey" "subvalue"
    }
}"#;

let vdf = parse_text(input).unwrap();

Re-exports§

pub use error::Error;
pub use error::Result;
pub use value::Obj;
pub use value::Value;
pub use value::Vdf;
pub use text::parse_text;

Modules§

binary
Binary VDF format parser.
error
Error types for VDF parsing.
text
Text VDF format parser.
value
Core data structures for VDF representation.

Functions§

parse_appinfo
Parse an appinfo.vdf format binary file.
parse_binary
Parse VDF from binary format (autodetects shortcuts or appinfo format).
parse_packageinfo
Parse a packageinfo.vdf format binary file.
parse_shortcuts
Parse a shortcuts.vdf format binary file.