"""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",
)
load("//common:crubit_wrapper_macros_oss.bzl", "crubit_cc_test")

package(default_applicable_licenses = ["//:license"])

licenses(["notice"])

rust_library(
    name = "copy",
    testonly = 1,
    srcs = ["copy.rs"],
    edition = "2024",
)

cc_bindings_from_rust(
    name = "copy_cc_api",
    testonly = 1,
    crate = ":copy",
)

crubit_cc_test(
    name = "copy_test",
    srcs = ["copy_test.cc"],
    platforms = [
        "android",
        "ios",
    ],
    deps = [
        ":copy_cc_api",
        "//testing/base/public:gunit_main",
    ],
)
