Automatically generate rust tests and doctests
Change-Id: I685d6905d8861aa3368c46eda0e783497e88b581
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/build_tests/BUILD b/build_tests/BUILD
index f0ff94d..282365e 100644
--- a/build_tests/BUILD
+++ b/build_tests/BUILD
@@ -4,7 +4,7 @@
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_go_library", "flatbuffer_py_library")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//tools/build_rules:apache.bzl", "apache_wrapper")
-load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
load("//tools/build_rules:autocxx.bzl", "autocxx_library")
cc_test(
@@ -153,12 +153,6 @@
target_compatible_with = ["//tools/platforms/rust:has_support"],
)
-rust_test(
- name = "hello_lib_test",
- crate = ":hello_lib",
- target_compatible_with = ["//tools/platforms/rust:has_support"],
-)
-
rust_binary(
name = "rust_hello",
srcs = ["rust_hello.rs"],
@@ -199,15 +193,6 @@
target_compatible_with = ["//tools/platforms/rust:has_support"],
)
-rust_test(
- name = "hello_autocxx_test",
- crate = ":hello_autocxx",
- # TODO: Make Rust play happy with pic vs nopic. Details at:
- # https://github.com/bazelbuild/rules_rust/issues/118
- rustc_flags = ["-Crelocation-model=static"],
- target_compatible_with = ["//tools/platforms/rust:has_support"],
-)
-
py_test(
name = "upstream_python_test",
srcs = [