18 lines
447 B
Rust
18 lines
447 B
Rust
use crate::data::Ingredient;
|
|
|
|
mod data;
|
|
|
|
fn main() {
|
|
println!("Hello, world!");
|
|
|
|
dbg!(data::INGREDIENTS
|
|
.into_iter()
|
|
.filter(|i| i.key == "banana")
|
|
.collect::<Vec<data::Ingredient>>());
|
|
|
|
// let cfg: config::Main = toml::from_str(include_str!("../data/ingredients/fruit.toml")).unwrap();
|
|
// let cfg: config::Main = toml::from_str(include_str!("../data/recipes/pizza.toml")).unwrap();
|
|
|
|
// dbg!(cfg);
|
|
}
|