You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use bevy::utils::HashMap;
|
|
use serde::Deserialize;
|
|
use toml::Table;
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
enum Val {
|
|
A(String),
|
|
B(usize),
|
|
C(bool),
|
|
}
|
|
|
|
fn main() {
|
|
let s = r#"val = "asdf"
|
|
other = 123
|
|
final = false
|
|
"#;
|
|
let v = toml::from_str::<Table>(s).unwrap();
|
|
println!("{:?}", v);
|
|
}
|