#[cfg(feature = "serde")] fn main() { let args = std::env::args().collect::>(); if args.len() < 2 { eprintln!("Usage: cargo run --example parse_dump_json -- "); return; } let parts = fontconfig_parser::parse_config_parts(&std::fs::read_to_string(&args[1]).unwrap()).unwrap(); serde_json::to_writer(std::io::stdout(), &parts).unwrap(); } #[cfg(not(feature = "serde"))] fn main() {}