Clean up generated rust-project.json files am: 353405d9fb am: e1c6783bc1

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1790960

Change-Id: Ia0fd7c07cc3181dfdf5e638b95bc4890444ae532
This commit is contained in:
Chris Wailes
2021-08-10 01:53:32 +00:00
committed by Automerger Merge Worker

View File

@@ -54,7 +54,7 @@ type rustProjectCrate struct {
}
type rustProjectJson struct {
Roots []string `json:"roots"`
// Roots []string `json:"roots"`
Crates []rustProjectCrate `json:"crates"`
}
@@ -250,7 +250,7 @@ func (singleton *projectGeneratorSingleton) addCrate(ctx android.SingletonContex
singleton.project.Crates = append(singleton.project.Crates, crate)
// rust-analyzer requires that all crates belong to at least one root:
// https://github.com/rust-analyzer/rust-analyzer/issues/4735.
singleton.project.Roots = append(singleton.project.Roots, path.Dir(crate.RootModule))
// singleton.project.Roots = append(singleton.project.Roots, path.Dir(crate.RootModule))
return idx, true
}