/third_party/rust/crates/glob/tests/ |
D | glob-std.rs | 21 use std::path::PathBuf; 34 fn glob_vec(pattern: &str) -> Vec<PathBuf> { in main() argument 85 PathBuf::from("r/another"), in main() 86 PathBuf::from("r/one"), in main() 87 PathBuf::from("r/one/another"), in main() 88 PathBuf::from("r/one/another/deep"), in main() 89 PathBuf::from("r/three"), in main() 90 PathBuf::from("r/two") in main() 98 PathBuf::from("r/another"), in main() 99 PathBuf::from("r/one"), in main() [all …]
|
/third_party/rust/crates/which-rs/src/ |
D | finder.rs | 15 use std::path::{Path, PathBuf}; 24 fn to_absolute<P>(self, cwd: P) -> PathBuf in to_absolute() 29 impl PathExt for PathBuf { implementation 34 fn to_absolute<P>(self, cwd: P) -> PathBuf in to_absolute() 41 let mut new_path = PathBuf::from(cwd.as_ref()); in to_absolute() 61 ) -> Result<impl Iterator<Item = PathBuf>> in find() 67 let path = PathBuf::from(&binary_name); in find() 94 ) -> Result<impl Iterator<Item = PathBuf>> in find_re() 122 fn cwd_search_candidates<C>(binary_name: PathBuf, cwd: C) -> impl IntoIterator<Item = PathBuf> in cwd_search_candidates() argument 132 binary_name: PathBuf, in path_search_candidates() argument [all …]
|
D | lib.rs | 56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which() argument 80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global() argument 85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all() 98 ) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all_global() 144 pub fn which_re(regex: impl Borrow<Regex>) -> Result<impl Iterator<Item = path::PathBuf>> { in which_re() 149 pub fn which_in<T, U, V>(binary_name: T, paths: Option<U>, cwd: V) -> Result<path::PathBuf> in which_in() 186 ) -> Result<impl Iterator<Item = path::PathBuf>> in which_re_in() 202 ) -> Result<impl Iterator<Item = path::PathBuf>> in which_in_all() 219 ) -> Result<impl Iterator<Item = path::PathBuf>> in which_in_global() 239 cwd: Option<either::Either<bool, path::PathBuf>>, [all …]
|
D | helper.rs | 17 use std::path::PathBuf; 23 PathBuf::from("foo.exe"), in test_extension_in_extension_vector() 28 PathBuf::from("foo.CMD"), in test_extension_in_extension_vector() 36 PathBuf::from("foo.bar"), in test_extension_not_in_extension_vector()
|
/third_party/rust/crates/clap/tests/derive/ |
D | custom_string_parsers.rs | 18 use std::path::PathBuf; 23 path: PathBuf, 26 default_path: PathBuf, 29 vector_path: Vec<PathBuf>, 32 option_path_1: Option<PathBuf>, 35 option_path_2: Option<PathBuf>, 42 path: PathBuf::from("/usr/bin"), in test_path_opt_simple() 43 default_path: PathBuf::from("../"), in test_path_opt_simple() 45 PathBuf::from("/a/b/c"), in test_path_opt_simple() 46 PathBuf::from("/d/e/f"), in test_path_opt_simple() [all …]
|
D | default_value.rs | 1 use std::path::PathBuf; 113 #[arg(default_value_os_t = PathBuf::from("abc.def"))] in default_value_os_t() 114 arg: PathBuf, in default_value_os_t() 118 arg: PathBuf::from("abc.def") in default_value_os_t() 124 arg: PathBuf::from("ghi") in default_value_os_t() 138 default_values_os_t = vec![PathBuf::from("abc.def"), PathBuf::from("123.foo")] in default_values_os_t() 140 arg1: Vec<PathBuf>, in default_values_os_t() 144 default_values_os_t = [PathBuf::from("bar.baz")] in default_values_os_t() 146 arg2: Vec<PathBuf>, in default_values_os_t() 150 arg1: vec![PathBuf::from("abc.def"), PathBuf::from("123.foo")], in default_values_os_t() [all …]
|
/third_party/rust/crates/cxx/gen/build/src/ |
D | paths.rs | 4 use std::path::{Component, Path, PathBuf}; 6 pub(crate) fn manifest_dir() -> Result<PathBuf> { in manifest_dir() 7 crate::env_os("CARGO_MANIFEST_DIR").map(PathBuf::from) in manifest_dir() 10 pub(crate) fn out_dir() -> Result<PathBuf> { in out_dir() 11 crate::env_os("OUT_DIR").map(PathBuf::from) in out_dir() 18 pub(crate) fn local_relative_path(path: &Path) -> PathBuf { in local_relative_path() argument 19 let mut rel_path = PathBuf::new(); in local_relative_path() 31 fn with_appended_extension(&self, suffix: impl AsRef<OsStr>) -> PathBuf; in with_appended_extension() argument 35 fn with_appended_extension(&self, suffix: impl AsRef<OsStr>) -> PathBuf { in with_appended_extension() argument
|
D | deps.rs | 4 use std::path::PathBuf; 8 pub include_prefix: Option<PathBuf>, 15 pub path: PathBuf, 43 let mut exported_header_dirs: BTreeMap<String, Vec<(usize, PathBuf)>> = BTreeMap::new(); in direct_dependencies() 68 crates.entry(k).or_default().include_prefix = Some(PathBuf::from(v)); in direct_dependencies() 91 .push((sort_key, PathBuf::from(v))); in direct_dependencies()
|
D | target.rs | 3 use std::path::{Path, PathBuf}; 6 Path(PathBuf), 12 let target_dir = PathBuf::from(target_dir); in find_target_dir()
|
D | lib.rs | 110 use std::path::{Path, PathBuf}; 145 include_prefix: PathBuf, 146 manifest_dir: PathBuf, 150 out_dir: PathBuf, 163 shared_dir: PathBuf, 296 path: PathBuf::from(exported_dir), in make_this_crate() 365 fn make_crate_dir(prj: &Project) -> PathBuf { in make_crate_dir() argument 384 fn make_include_dir(prj: &Project) -> Result<PathBuf> { in make_include_dir() argument
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_03_relations.rs | 1 use std::path::PathBuf; 23 .value_parser(value_parser!(PathBuf)) in main() 28 .value_parser(value_parser!(PathBuf)) in main() 35 .value_parser(value_parser!(PathBuf)) in main() 69 .get_one::<PathBuf>("INPUT_FILE") in main() 70 .unwrap_or_else(|| matches.get_one::<PathBuf>("spec-in").unwrap()) in main() 75 matches.get_one::<PathBuf>("config").unwrap().display() in main()
|
D | 04_04_custom.rs | 1 use std::path::PathBuf; 16 .arg(arg!([INPUT_FILE] "some regular input").value_parser(value_parser!(PathBuf))) in main() 19 .value_parser(value_parser!(PathBuf)), in main() 23 .arg(arg!(config: -c <CONFIG>).value_parser(value_parser!(PathBuf))); in main() 68 .get_one::<PathBuf>("INPUT_FILE") in main() 69 .or_else(|| matches.get_one::<PathBuf>("spec-in")) in main() 81 matches.get_one::<PathBuf>("config").unwrap().display() in main()
|
D | 01_quick.rs | 1 use std::path::PathBuf; 14 .value_parser(value_parser!(PathBuf)), in main() 31 if let Some(config_path) = matches.get_one::<PathBuf>("config") { in main()
|
/third_party/rust/crates/rust-openssl/openssl-sys/build/ |
D | run_bindgen.rs | 6 use std::path::PathBuf; 65 pub fn run(include_dirs: &[PathBuf]) { in run() argument 66 let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap()); in run() 112 pub fn run_boringssl(include_dirs: &[PathBuf]) { in run_boringssl() argument 113 let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap()); in run_boringssl() 162 pub fn run_boringssl(include_dirs: &[PathBuf]) { in run_boringssl() argument 163 let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap()); in run_boringssl()
|
D | find_normal.rs | 2 use std::path::{Path, PathBuf}; 7 pub fn get_openssl(target: &str) -> (Vec<PathBuf>, PathBuf) { in get_openssl() argument 8 let lib_dir = env("OPENSSL_LIB_DIR").map(PathBuf::from); in get_openssl() 9 let include_dir = env("OPENSSL_INCLUDE_DIR").map(PathBuf::from); in get_openssl() 34 fn resolve_with_wellknown_homebrew_location(dir: &str) -> Option<PathBuf> { in resolve_with_wellknown_homebrew_location() argument 62 fn resolve_with_wellknown_location(dir: &str) -> Option<PathBuf> { in resolve_with_wellknown_location() argument
|
D | find_vendored.rs | 2 use std::path::PathBuf; 4 pub fn get_openssl(_target: &str) -> (Vec<PathBuf>, PathBuf) { in get_openssl() argument
|
D | main.rs | 12 use std::path::{Path, PathBuf}; 47 fn find_openssl(target: &str) -> (Vec<PathBuf>, PathBuf) { in find_openssl() argument 127 fn postprocess(include_dirs: &[PathBuf]) -> Version { in postprocess() 142 fn validate_headers(include_dirs: &[PathBuf]) -> Version { in validate_headers() 351 fn determine_mode(libdirs: &[PathBuf], libs: &[&str]) -> &'static str { in determine_mode() argument
|
/third_party/rust/crates/clap/clap_complete/examples/ |
D | completion-derive.rs | 19 use std::path::PathBuf; 45 path: Option<PathBuf>, 47 file: Option<PathBuf>, 49 dir: Option<PathBuf>, 51 exe: Option<PathBuf>,
|
/third_party/rust/crates/which-rs/tests/ |
D | basic.rs | 8 use std::path::{Path, PathBuf}; 18 pub bins: Vec<PathBuf>, 25 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() argument 36 fn touch(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in touch() argument 42 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() argument 82 pub fn touch(&self, path: &str, extension: &str) -> io::Result<PathBuf> { in touch() argument 86 pub fn mk_bin(&self, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() argument 141 let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths)) in test_which_re_in_with_matches() 160 let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths)) in test_which_re_in_without_matches() 165 assert_eq!(result, Vec::<PathBuf>::new()) in test_which_re_in_without_matches() [all …]
|
/third_party/rust/crates/syn/codegen/src/ |
D | workspace_path.rs | 1 use std::path::{Path, PathBuf}; 3 pub fn get(relative_to_workspace_root: impl AsRef<Path>) -> PathBuf { in get() argument 4 let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in get()
|
/third_party/rust/crates/aho-corasick/aho-corasick-debug/ |
D | main.rs | 3 use std::path::PathBuf; 44 dictionary: PathBuf, 45 haystack: PathBuf, 94 PathBuf::from(parsed.value_of_os("dictionary").unwrap()); in parse() 95 let haystack = PathBuf::from(parsed.value_of_os("haystack").unwrap()); in parse()
|
/third_party/rust/crates/autocfg/src/ |
D | lib.rs | 66 use std::path::{Path, PathBuf}; 84 out_dir: PathBuf, 85 rustc: PathBuf, 155 pub fn with_dir<T: Into<PathBuf>>(dir: T) -> Result<Self, Error> { in with_dir() 157 let rustc: PathBuf = rustc.into(); in with_dir() 402 .map(PathBuf::from) in dir_contains_target() 403 .unwrap_or_else(|| PathBuf::from("target")); in dir_contains_target()
|
/third_party/rust/crates/clang-sys/src/ |
D | support.rs | 5 use std::path::{Path, PathBuf}; 23 pub path: PathBuf, 28 pub c_search_paths: Option<Vec<PathBuf>>, 31 pub cpp_search_paths: Option<Vec<PathBuf>>, 136 fn find(directory: &Path, patterns: &[&str]) -> Option<PathBuf> { in find() argument 222 fn parse_search_paths(path: &Path, language: &str, args: &[String]) -> Option<Vec<PathBuf>> { in parse_search_paths() argument
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/ |
D | main.rs | 5 use std::path::PathBuf; 156 pub fn build_dir() -> PathBuf { in build_dir() 165 pub fn target_dir() -> PathBuf { in target_dir() 170 pub fn project_dir() -> PathBuf { in project_dir() 175 pub fn data_dir() -> PathBuf { in data_dir()
|
/third_party/rust/crates/bindgen/bindgen-tests/ |
D | build.rs | 6 use std::path::{Path, PathBuf}; 9 let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); in main() 12 let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); in main()
|