platform_build_soong/rust/Android.bp
Thiébaud Weksteen e4d12a0468 Add rust-project.json generator
Because we are not relying on Cargo.toml for our crate dependencies,
we need to provide a structured file to rust-analyzer which describes
the locations of the crates. Add a generator for that purpose, similarly
to cc/compdb and cc/ccdeps.

Bug: 156395307
Test: SOONG_GEN_RUST_PROJECT=1 m nothing && \
      cat ${ANDROID_BUILD_TOP}/out/soong/rust-project.json
Change-Id: I46efe0adeddae281eaf86707504c3aa15b5e80b8
2020-06-11 11:22:31 +02:00

34 lines
713 B
Text

bootstrap_go_package {
name: "soong-rust",
pkgPath: "android/soong/rust",
deps: [
"soong",
"soong-android",
"soong-cc",
"soong-rust-config",
],
srcs: [
"androidmk.go",
"compiler.go",
"coverage.go",
"binary.go",
"builder.go",
"library.go",
"prebuilt.go",
"proc_macro.go",
"project_json.go",
"rust.go",
"test.go",
"testing.go",
],
testSrcs: [
"binary_test.go",
"compiler_test.go",
"coverage_test.go",
"library_test.go",
"project_json_test.go",
"rust_test.go",
"test_test.go",
],
pluginFor: ["soong_build"],
}