summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
author Jeff Vander Stoep <jeffv@google.com> 2023-04-24 11:28:25 +0200
committer Jeff Vander Stoep <jeffv@google.com> 2023-04-24 11:33:50 +0200
commitc1490ec25edd5a8d60915d2e2a5810983b2a70f0 (patch)
tree09798a98938678037545757d2e468c9b3a1b26ff /rust/testing.go
parent0933fd59d7bddcface4fddbb1b61d42c4a0a39cd (diff)
Add option to use protobuf3
Users of the rust_protobuf module can use the 'use_protobuf3' option to select version 3 of the protobuf crate instead of the current default of version 2. This unblocks teams that would like to use protobuf 3 immediately and provides a mechanism for us to incrementally migrate users of protobuf 2 to protobuf 3. Test: Adds tests that are executed during every build. Bug: 270895633 Change-Id: Ib6a18b77cfa7dc3cc604cea05269004b3712bbb6
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/testing.go b/rust/testing.go
index a33d948db..0a6a870d8 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -127,6 +127,12 @@ func GatherRequiredDepsForTest() string {
min_sdk_version: "29",
}
rust_library {
+ name: "libprotobuf",
+ crate_name: "protobuf",
+ srcs: ["foo.rs"],
+ host_supported: true,
+ }
+ rust_library {
name: "libprotobuf_deprecated",
crate_name: "protobuf",
srcs: ["foo.rs"],