pub fn write_rust_module<W: Write>(w: W, f: &File, source: &Path) -> Result<()>