Lines Matching full:path
8 use std::path::{Path, PathBuf};
122 fn process_semver_file<W: Write, P: AsRef<Path>>(output: &mut W, path: &mut PathBuf, file: P) {
123 // NOTE: `path` is reused between calls, so always remove the file again.
124 path.push(file);
125 path.set_extension("txt");
127 println!("cargo:rerun-if-changed={}", path.display());
128 let input_file = match File::open(&*path) {
131 path.pop();
138 write!(output, "// Source: {}.\n", path.display()).unwrap();
153 path.pop();
4173 // is sized as the _POSIX_MAX_PATH, so that path names will fit in