pub fn flatten(project: Project, target_path: &Path) -> Result<String>
Expand description
Flattens the given target of the project. Falls back to the old flattening implementation if the target cannot be compiled successfully. This would be the case if the target has invalid syntax. (e.g. Solang)