Home
last modified time | relevance | path

Searched refs:repo_root (Results 1 – 6 of 6) sorted by relevance

/development/tools/external_crates/crate_health/src/
Dcrate_collection.rs36 repo_root: PathBuf, field
40 pub fn new<P: Into<PathBuf>>(repo_root: P) -> CrateCollection { in new()
41 CrateCollection { crates: BTreeMap::new(), repo_root: repo_root.into() } in new()
44 for entry_or_err in WalkDir::new(self.repo_root.join(path)) { in add_from()
47 match Crate::from(&entry.path(), &self.repo_root.as_path()) { in add_from()
61 pub fn repo_root(&self) -> &Path { in repo_root() method
62 self.repo_root.as_path() in repo_root()
Dmain.rs30 repo_root: PathBuf, field
131 maybe_build_cargo_embargo(&args.repo_root, args.rebuild_cargo_embargo)?; in main()
136 .repo_root in main()
147 let mut cc = CrateCollection::new(&args.repo_root); in main()
195 args.repo_root.clone(), in main()
198 RepoPath::new(args.repo_root.clone(), &"out/rust-crate-migration-report"), in main()
239 .current_dir(&args.repo_root) in main()
254 .current_dir(&args.repo_root) in main()
Dandroid_bp.rs89 pub fn maybe_build_cargo_embargo(repo_root: &impl AsRef<Path>, force_rebuild: bool) -> Result<()> { in maybe_build_cargo_embargo()
91 && repo_root.as_ref().join("out/host/linux-x86/bin/cargo_embargo").exists() in maybe_build_cargo_embargo()
92 && repo_root.as_ref().join("out/host/linux-x86/bin/bpfmt").exists() in maybe_build_cargo_embargo()
97 build_cargo_embargo(repo_root) in maybe_build_cargo_embargo()
101 pub fn build_cargo_embargo(repo_root: &impl AsRef<Path>) -> Result<()> { in build_cargo_embargo()
104 ….current_dir(repo_root).spawn().context("Failed to spawn build of cargo embargo and bpfmt")?.wait(… in build_cargo_embargo()
Dmigration.rs115 let mut dest = CrateCollection::new(source.repo_root()); in migrate()
/development/tools/external_crates/crate_health/src/bin/
Dmigration_report.rs30 repo_root: PathBuf, field
40 maybe_build_cargo_embargo(&args.repo_root, false)?; in main()
43 RepoPath::new(args.repo_root.clone(), &"external/rust/crates"), in main()
44 RepoPath::new(args.repo_root.clone(), &"out/rust-crate-migration-report"), in main()
Dhealth_report.rs30 repo_root: PathBuf, field
40 maybe_build_cargo_embargo(&args.repo_root, false)?; in main()
42 let mut cc = CrateCollection::new(args.repo_root); in main()