INNER CODE UNIT · Rust
Some
metatypedev/metatype · src/metagen/src/lib.rs:249
if let Some((src, _)) = out.get(&path) {
anyhow::bail!("generators \"{src}\" and \"{gen_name}\" clashed at \"{path:?}\"");
}
out.insert(path, (gen_name.clone(), buf));
}
}
let out: IndexMap<PathBuf, GeneratedFile> = out
.into_iter()
.map(|(path, (_, buf))| (path, buf))
.collect();
Ok(GeneratorOutput(out))
}
pub fn generate_target_sync(
config: &config::Config,
target_name: &str,
workspace_path: PathBuf,
resolver: impl InputResolverSync + Send + Sync + Clone + 'static,