#vdf #steam

steamy-vdf

VDF file format handling

2 unstable releases

Uses old Rust 2015

0.2.0 May 1, 2016
0.1.0 Apr 30, 2016

#726 in Configuration

Download history 386/week @ 2023-10-24 361/week @ 2023-10-31 369/week @ 2023-11-07 305/week @ 2023-11-14 259/week @ 2023-11-21 256/week @ 2023-11-28 225/week @ 2023-12-05 282/week @ 2023-12-12 348/week @ 2023-12-19 259/week @ 2023-12-26 481/week @ 2024-01-02 470/week @ 2024-01-09 592/week @ 2024-01-16 298/week @ 2024-01-23 303/week @ 2024-01-30 361/week @ 2024-02-06

1,653 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

~535KB
~10K SLoC