#[derive(Serialize, Deserialize)]
struct TestInteger {
a: i32,
}
let test = TestInteger {
a: 42,
};
let ser = libconfig_rs::to_string(&test).unwrap();
let der = libconfig_rs::from_str(&ser).unwrap();
assert_eq!(test, der);
let config = "config : { test : [1, 2, 3]; }";
let res = libconfig_rs::Value::from_str(config).unwrap();
println!("{:#?}", res);
forked from JoNil/libconfig-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Parser for libconfig
License
nicolas-s/libconfig-rs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Parser for libconfig
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Rust 100.0%