blob: 86a2f0c6c6f8356bc30f119f4163499a52d07d14 [file] [log] [blame]
"""End-to-end tests of `cc_bindings_from_rs`, focusing on the `Copy` trait"""
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
load(
"//cc_bindings_from_rs/bazel_support:cc_bindings_from_rust_rule.bzl",
"cc_bindings_from_rust",
)
package(default_applicable_licenses = ["//:license"])
licenses(["notice"])
rust_library(
name = "copy",
testonly = 1,
srcs = ["copy.rs"],
deps = [
"//common:rust_allocator_shims",
],
)
cc_bindings_from_rust(
name = "copy_cc_api",
testonly = 1,
crate = ":copy",
)
cc_test(
name = "copy_test",
srcs = ["copy_test.cc"],
deps = [
":copy_cc_api",
"@com_google_googletest//:gtest_main",
],
)