"""End-to-end example of using type aliases to fully-instantiated templates."""

load("//common:crubit_wrapper_macros_oss.bzl", "crubit_rust_test")
load("//rs_bindings_from_cc/test:test_bindings.bzl", "crubit_test_cc_library")

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

crubit_test_cc_library(
    name = "extern_definition",
    hdrs = ["extern_definition.h"],
    aspect_hints = ["//features:experimental"],
    deps = ["//support:annotations"],
)

crubit_test_cc_library(
    name = "actual_instantiation",
    hdrs = ["actual_instantiation.h"],
    aspect_hints = ["//features:experimental"],
    deps = [":extern_definition"],
)

crubit_rust_test(
    name = "main",
    srcs = ["test.rs"],
    cc_deps = [
        ":actual_instantiation",
        ":extern_definition",
    ],
    deps = [
        "//support:cref",
        "@crate_index//:googletest",
    ],
)
