# Tests specific to upb kernel. # # Only add tests that are cpp kernel specific and it is not possible to make them work for upb ( # for example tests exercising ABI compatibility with other UPB-based Protobuf implementations). # # All the tests under this package should ignore # `//rust:rust_proto_library_kernel` flag and should always select `upb`. # # To do that use: # * `rust_upb_proto_library` instead of `rust_proto_library`. # * `//rust:protobuf_upb_export` instead of # `//rust:protobuf`. load("@rules_rust//rust:defs.bzl", "rust_test") # TODO: Enable this for the cpp kernel and move these tests to shared. rust_test( name = "string_ctypes_test_upb_test", srcs = ["string_ctypes_test.rs"], aliases = { "//rust:protobuf_upb_export": "protobuf", }, deps = [ "//rust:protobuf_upb_export", "//rust/test:unittest_proto3_upb_rust_proto", "@crate_index//:googletest", ], )