fn write_toolchain_metadata( path: &Path, python: &PythonInfo, selection_source: &str, codegen_bin: Option<&Path>, rust_root: &Path, input_fingerprint: &str, ) -> Result<()>