2 unstable releases

Uses old Rust 2015

0.2.0 May 1, 2016
0.1.0 Apr 30, 2016

#11 in #vdf

Download history 564/week @ 2024-01-06 565/week @ 2024-01-13 311/week @ 2024-01-20 304/week @ 2024-01-27 259/week @ 2024-02-03 587/week @ 2024-02-10 414/week @ 2024-02-17 307/week @ 2024-02-24 350/week @ 2024-03-02 229/week @ 2024-03-09 277/week @ 2024-03-16 298/week @ 2024-03-23 353/week @ 2024-03-30 276/week @ 2024-04-06 372/week @ 2024-04-13 207/week @ 2024-04-20

1,252 downloads per month
Used in 9 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