Files
macros/06_workshop_solution/src/main.rs
T
2026-04-14 03:44:59 +02:00

12 lines
283 B
Rust

use workshop_macro::from_schema;
from_schema!("https://download.huizinga.dev/workshop/schema.json");
fn main() {
let content = std::fs::read_to_string("./users.json").unwrap();
let users: Vec<User> = serde_json::from_str(&content).unwrap();
println!("{users:#?}");
}