use serde::Deserialize; use std::collections::HashMap; #[derive(Debug, Clone, Deserialize)] #[serde(deny_unknown_fields)] pub struct ParsedTarget { pub outfile: Option, pub compiler: Option, pub compiler_flags: Option>, pub linker: Option, pub linker_flags: Option>, pub linker_libs: Option>, pub sources: Option>, pub opts: Option, } #[derive(Debug, Clone, Deserialize)] #[serde(deny_unknown_fields)] pub struct ParsedTargetOptions { pub inherit: Option, pub inherit_from: Option, pub default: Option, } #[derive(Debug, Clone, Deserialize)] #[serde(deny_unknown_fields)] pub struct ParsedConfigTable { pub build_dir: Option, pub compile_commands: Option, pub compile_commands_target: Option, } #[derive(Debug, Clone, Deserialize)] #[serde(deny_unknown_fields)] pub struct NgenToml { pub config: Option, pub targets: Option>, }