fn transform_target( target_id: &TargetId, yaml_target: Target, project_dir: PathBuf ) -> Result<(Target, Vec<TargetId>)>