/development/tools/external_crates/crate_health/src/ |
D | repo_path.rs | 16 use std::path::{Path, PathBuf}; 20 root: PathBuf, 21 path: PathBuf, 31 pub fn new<P: Into<PathBuf>, Q: Into<PathBuf>>(root: P, path: Q) -> RepoPath { in new() argument 32 let root: PathBuf = root.into(); in new() 33 let path: PathBuf = path.into(); in new() 44 pub fn abs(&self) -> PathBuf { in abs() argument 50 pub fn with_same_root<P: Into<PathBuf>>(&self, path: P) -> RepoPath { in with_same_root() 64 assert_eq!(p.abs(), PathBuf::from("/foo/bar")); in test_basic()
|
D | lib.rs | 17 use std::path::{Path, PathBuf}; 65 VirtualCrate(PathBuf), 71 pub fn default_repo_root() -> Result<PathBuf> { in default_repo_root() 83 pub fn default_output_dir(filename: &str) -> PathBuf { in default_output_dir() argument 84 PathBuf::from("/google/data/rw/users") in default_output_dir()
|
D | main.rs | 15 use std::{path::PathBuf, process::Command, str::from_utf8}; 29 #[arg(long, default_value_os_t=default_repo_root().unwrap_or(PathBuf::from(".")))] 30 repo_root: PathBuf, 148 cc.add_from(&PathBuf::from("external/rust/crates").join(&crate_name))?; in main() 196 PathBuf::from("external/rust/crates").join(&crate_name), in main()
|
D | crate_type.rs | 17 path::{Path, PathBuf}, 61 pub fn new<P: Into<PathBuf>, Q: Into<PathBuf>>( in new() argument 66 let root: PathBuf = root.into(); in new() 75 pub fn from<P: Into<PathBuf>>(cargo_toml: &impl AsRef<Path>, root: P) -> Result<Crate> { in from() 76 let root: PathBuf = root.into(); in from() 297 fn write_test_manifest(temp_crate_dir: &Path, name: &str, version: &str) -> Result<PathBuf> { in write_test_manifest() argument 298 let cargo_toml: PathBuf = [temp_crate_dir, &Path::new("Cargo.toml")].iter().collect(); in write_test_manifest() 303 let lib_rs: PathBuf = [temp_crate_dir, &Path::new("src/lib.rs")].iter().collect(); in write_test_manifest()
|
D | crate_collection.rs | 19 path::{Path, PathBuf}, 36 repo_root: PathBuf, 40 pub fn new<P: Into<PathBuf>>(repo_root: P) -> CrateCollection { in new()
|
/development/tools/external_crates/crate_health/src/bin/ |
D | migration_report.rs | 15 use std::path::PathBuf; 29 #[arg(long, default_value_os_t=default_repo_root().unwrap_or(PathBuf::from(".")))] 30 repo_root: PathBuf, 34 output_path: PathBuf,
|
D | health_report.rs | 15 use std::path::PathBuf; 29 #[arg(long, default_value_os_t=default_repo_root().unwrap_or(PathBuf::from(".")))] 30 repo_root: PathBuf, 34 output_path: PathBuf,
|
/development/tools/cargo_embargo/src/ |
D | cargo.rs | 21 use std::path::PathBuf; 94 pub package_dir: PathBuf, // canonicalized 95 pub main_src: PathBuf, // relative to package_dir
|
D | main.rs | 57 use std::path::PathBuf; 129 cargo_bin: Option<PathBuf>, 132 cargo_out_dir: Option<PathBuf>, 147 config: PathBuf, 152 config: PathBuf, 154 crates: PathBuf, 160 config: PathBuf, 252 fn find_android_rust_toolchain() -> Result<PathBuf> { in find_android_rust_toolchain() 267 .collect::<PathBuf>(); in find_android_rust_toolchain() 273 fn add_to_path(extra_path: PathBuf) -> Result<()> { in add_to_path() [all …]
|
D | bp.rs | 17 use std::path::PathBuf; 207 impl From<PathBuf> for BpValue { 208 fn from(x: PathBuf) -> Self { in from()
|
D | config.rs | 33 use std::path::{Path, PathBuf}; 372 pub add_toplevel_block: Option<PathBuf>, 375 pub patch: Option<PathBuf>, 378 pub rulesmk_patch: Option<PathBuf>, 413 pub add_module_block: Option<PathBuf>, 434 pub exported_c_header_dir: Vec<PathBuf>,
|
/development/tools/cargo_embargo/src/cargo/ |
D | cargo_out.rs | 28 use std::path::PathBuf; 99 tests: BTreeMap<String, BTreeMap<PathBuf, TestContents>>, 217 PathBuf::from(main_src), in parse() 235 tests: &BTreeMap<String, BTreeMap<PathBuf, TestContents>>, in from_rustc_invocation() argument 429 fn split_src_path(src_path: &Path) -> Result<(PathBuf, PathBuf)> { in split_src_path() argument 449 fn find_cargo_toml(src_path: &Path) -> Result<PathBuf> { in find_cargo_toml() argument
|
D | metadata.rs | 22 use std::path::{Path, PathBuf}; 88 pub src_path: PathBuf, 290 fn package_dir_from_id(id: &str) -> Result<PathBuf> { in package_dir_from_id() argument 299 Ok(PathBuf::from(stripped[..idx].to_string())) in package_dir_from_id() 376 PathBuf::from("/path/to/crate") in extract_package_dir_from_id() 678 c.package_dir = PathBuf::from(format!(".../{}", &package_dir[idx..])); in parse_metadata()
|