pub fn generate(source_file: &str, target_dir: &str) -> String