2 unstable releases

Uses old Rust 2015

0.2.0 May 1, 2016
0.1.0 Apr 30, 2016

#13 in #vdf

Download history 259/week @ 2024-11-19 126/week @ 2024-11-26 232/week @ 2024-12-03 238/week @ 2024-12-10 131/week @ 2024-12-17 37/week @ 2024-12-24 104/week @ 2024-12-31 168/week @ 2025-01-07 233/week @ 2025-01-14 195/week @ 2025-01-21 99/week @ 2025-01-28 214/week @ 2025-02-04 155/week @ 2025-02-11 101/week @ 2025-02-18 157/week @ 2025-02-25 73/week @ 2025-03-04

522 downloads per month
Used in 9 crates (via vdf-serde)

WTFPL license

16KB
530 lines

Steam config file parser

Rust library to parse and process VDF files.

Example

"controller_mappings"
{
	"version"		"2"
	"group"
	{
		"mode"		"four_buttons"
	}
	"group"
	{
		"settings"
		{
			"requires_click"		"0"
		}
	}
}
extern crate steamy_vdf as vdf;

fn main() {
	let config = vdf::load("tests/desktop.vdf").unwrap();

	assert_eq!(2.0,
		config.lookup("controller_mappings.version").unwrap()
		.to::<f32>().unwrap());

	assert_eq!("four_buttons",
		config.lookup("controller_mappings.group.0.mode").unwrap()
		.as_str().unwrap());

	assert_eq!(false,
		config.lookup("controller_mappings.group.1.settings.requires_click").unwrap()
		.to::<bool>().unwrap());
}

Dependencies

~655KB
~13K SLoC