From 2ae0513a8e4f226c2161fb89e85ef997b0881278 Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Tue, 23 Jun 2020 14:28:53 -0700 Subject: rust: Change default variants rust_library now produces only rlib and dylib variants. rust_library_foreign now produces static and shared variants. This change was made because both are common cases, but all four together essentially never happens. This allows us to have fewer repeat module definitions. Bug: 143217452 Test: cd external/rust; mma Change-Id: Iaf69e8da38f7c12710331c51464699cf7cbbb656 --- rust/rust_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/rust_test.go') diff --git a/rust/rust_test.go b/rust/rust_test.go index 280c22a7e..08bc8ca48 100644 --- a/rust/rust_test.go +++ b/rust/rust_test.go @@ -164,12 +164,12 @@ func TestLinkPathFromFilePath(t *testing.T) { // Test to make sure dependencies are being picked up correctly. func TestDepsTracking(t *testing.T) { ctx := testRust(t, ` - rust_library_host_static { + rust_ffi_host_static { name: "libstatic", srcs: ["foo.rs"], crate_name: "static", } - rust_library_host_shared { + rust_ffi_host_shared { name: "libshared", srcs: ["foo.rs"], crate_name: "shared", -- cgit v1.2.3-59-g8ed1b