Home
last modified time | relevance | path

Searched refs:krate (Results 1 – 8 of 8) sorted by relevance

/development/tools/external_crates/crate_health/src/
Dreports.rs79 for krate in crates { in table()
81 &linkify(&krate.name(), &krate.crates_io_url()), in table()
82 &krate.version().to_string(), in table()
83 &krate in table()
85 .map_or(format!("{}", krate.path()), |url| linkify(&krate.path(), &url)), in table()
102 for krate in crates { in health_table()
104 &linkify(&krate.name(), &krate.crates_io_url()), in health_table()
105 &krate.version().to_string(), in health_table()
106 &krate in health_table()
108 .map_or(format!("{}", krate.path()), |url| linkify(&krate.path(), &url)), in health_table()
[all …]
Dmain.rs149 cc.map_field_mut().retain(|_nv, krate| krate.is_crates_io()); in main()
162 let krate = cc.map_field().values().next().unwrap(); in main() localVariable
163 println!("Found {} v{} in {}", krate.name(), krate.version(), krate.path()); in main()
165 if !krate.is_android_bp_healthy() { in main()
166 if krate.is_migration_denied() { in main()
169 if !krate.android_bp().abs().exists() { in main()
170 println!("There is no Android.bp file in {}", krate.path()); in main()
172 if !krate.cargo_embargo_json().abs().exists() { in main()
173 println!("There is no cargo_embargo.json file in {}", krate.path()); in main()
174 } else if !krate.generate_android_bp_success() { in main()
[all …]
Dcrate_collection.rs48 Ok(krate) => self.crates.insert_or_error( in add_from()
49 NameAndVersion::new(krate.name().to_string(), krate.version().clone()), in add_from()
50 krate, in add_from()
65 for krate in self.crates.values() { in print()
66 krate.print()? in print()
71 for krate in self.crates.values() { in stage_crates()
72 krate.stage_crate()? in stage_crates()
86 for krate in self.crates.values_mut() { in diff_android_bps()
87 krate.diff_android_bp()?; in diff_android_bps()
Dpseudo_crate.rs58 for krate in crates { in init()
62 if krate.name() != "libsqlite3-sys" { in init()
64 name: krate.name().to_string(), in init()
65 version: if krate.name() == "remove_dir_all" in init()
66 && krate.version().to_string() == "0.7.1" in init()
70 krate.version().to_string() in init()
92 pub fn add(&self, krate: &impl NamedAndVersioned) -> Result<()> { in add()
94 .args(["add", format!("{}@={}", krate.name(), krate.version()).as_str()]) in add()
101 return Err(anyhow!("Failed to run 'cargo add {}@{}'", krate.name(), krate.version())); in add()
Dmigration.rs101 source.map_field_mut().retain(|_nv, krate| krate.is_crates_io()); in migrate()
111 .filter(|(_nv, krate)| krate.is_migration_eligible()) in migrate()
112 .map(|(_nv, krate)| krate), in migrate()
Dandroid_bp.rs36 for krate in crates { in generate_android_bps()
39 let crate_name = krate.name().to_string(); in generate_android_bps()
40 let crate_version = krate.version().clone(); in generate_android_bps()
41 let staging_path = krate.staging_path(); in generate_android_bps()
Dcrate_type.rs313 let krate = Crate::from(&cargo_toml, &"/")?; in test_from_and_properties() localVariable
314 assert_eq!(krate.name(), "foo"); in test_from_and_properties()
315 assert_eq!(krate.version().to_string(), "1.2.0"); in test_from_and_properties()
316 assert!(krate.is_crates_io()); in test_from_and_properties()
317 assert_eq!(krate.android_bp().abs(), temp_crate_dir.path().join("Android.bp")); in test_from_and_properties()
319 krate.cargo_embargo_json().abs(), in test_from_and_properties()
/development/tools/external_crates/crate_health/src/bin/
Dhealth_report.rs44 cc.map_field_mut().retain(|_nv, krate| krate.is_crates_io()); in main()