Lines Matching refs:path
44 //! $ cxxbridge src/main.rs --header > path/to/mybridge.h
45 //! $ cxxbridge src/main.rs > path/to/mybridge.cc
110 use std::path::{Path, PathBuf};
129 /// let source_files = vec!["src/main.rs", "src/path/to/other.rs"];
153 // This is *not* used for an #include path, only as a debugging convenience.
179 TargetDir::Unknown => scratch::path("cxxbridge"),
211 // The crate/ and include/ directories are placed on the #include path for the
223 for path in rust_source_files {
224 generate_bridge(prj, &mut build, path.as_ref())?;
228 eprintln!("\nCXX include path:");
230 build.include(&header_dir.path);
232 eprintln!(" {}", header_dir.path.display());
234 eprintln!(" {} (private)", header_dir.path.display());
280 // crate_dir on the include line so that `#include "path/to/file.rs"` from
285 path: include_dir,
290 path: crate_dir,
296 path: PathBuf::from(exported_dir),
330 match header_dirs_index.entry(dir.path.clone()) {
335 path: dir.path,
448 let src = entry.path();
456 let src = entry.path();