2 unstable releases

Uses old Rust 2015

0.2.0 May 1, 2016
0.1.0 Apr 30, 2016

#8 in #vdf

Download history 82/week @ 2022-03-10 40/week @ 2022-03-17 40/week @ 2022-03-24 62/week @ 2022-03-31 57/week @ 2022-04-07 60/week @ 2022-04-14 82/week @ 2022-04-21 101/week @ 2022-04-28 95/week @ 2022-05-05 75/week @ 2022-05-12 115/week @ 2022-05-19 71/week @ 2022-05-26 94/week @ 2022-06-02 47/week @ 2022-06-09 51/week @ 2022-06-16 57/week @ 2022-06-23

257 downloads per month
Used in 3 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

~525KB
~10K SLoC