2 unstable releases

Uses old Rust 2015

0.2.0 May 1, 2016
0.1.0 Apr 30, 2016

#12 in #vdf

Download history 218/week @ 2024-07-21 308/week @ 2024-07-28 273/week @ 2024-08-04 317/week @ 2024-08-11 203/week @ 2024-08-18 208/week @ 2024-08-25 160/week @ 2024-09-01 147/week @ 2024-09-08 111/week @ 2024-09-15 133/week @ 2024-09-22 262/week @ 2024-09-29 211/week @ 2024-10-06 95/week @ 2024-10-13 146/week @ 2024-10-20 211/week @ 2024-10-27 183/week @ 2024-11-03

650 downloads per month
Used in 10 crates (2 directly)

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

~660KB
~13K SLoC