2 unstable releases

Uses old Rust 2015

0.2.0 May 1, 2016
0.1.0 Apr 30, 2016

#12 in #vdf

Download history 208/week @ 2024-08-29 164/week @ 2024-09-05 118/week @ 2024-09-12 127/week @ 2024-09-19 190/week @ 2024-09-26 185/week @ 2024-10-03 190/week @ 2024-10-10 121/week @ 2024-10-17 195/week @ 2024-10-24 206/week @ 2024-10-31 193/week @ 2024-11-07 265/week @ 2024-11-14 218/week @ 2024-11-21 121/week @ 2024-11-28 228/week @ 2024-12-05 243/week @ 2024-12-12

871 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