pub fn write_generated<F>(
    absolute_path: &Path,
    new_source: &str,
    postprocess: Option<F>
) -> Result<()>where
    F: FnOnce() -> Result<()>,