autofix-rust-dep
Fixes Rust 'can't find crate' errors by adding dependencies to Cargo.toml or rustlibs.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Fixes Rust 'can't find crate' errors by adding dependencies to Cargo.toml or rustlibs.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Comprehensive build error repair tool for C++, Rust, and Java projects using Soong, GN, Make, or CMake. Automatically fixes 30+ types of errors including headers, linking, APIs, and config.
Fixes function call errors with wrong number or type of arguments.
Fixes type mismatch errors by adding appropriate casts or conversions.
Fixes syntax errors in Android.bp files.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
| name | autofix-rust-dep |
| description | Fixes Rust 'can't find crate' errors by adding dependencies to Cargo.toml or rustlibs. |
Fixes Rust compilation errors related to missing crates.
can't find crate for 'X'unresolved import 'X'could not find 'X' in 'Y'From: can't find crate for 'serde'
Crate: serde
Cargo.toml:
[dependencies]
serde = "1.0"
Android.bp (AOSP):
rust_library {
rustlibs: [
"libserde",
],
}
| Crate | Android.bp name |
|---|---|
serde | libserde |
log | liblog_rust |
libc | liblibc |