blob: 37b2c4ae04a58d71bc5b34a429f0de973bed110c [file]
"""End-to-end test for constructors."""
load("@rules_rust//rust:defs.bzl", "rust_test")
licenses(["notice"])
cc_library(
name = "constructors",
srcs = ["constructors.cc"],
hdrs = ["constructors.h"],
)
cc_library(
name = "no_elided_lifetimes",
srcs = ["no_elided_lifetimes.cc"],
hdrs = ["no_elided_lifetimes.h"],
)
rust_test(
name = "main",
srcs = ["test.rs"],
cc_deps = [
":constructors",
":no_elided_lifetimes",
],
deps = [
"//rs_bindings_from_cc/support:ctor",
"@crate_index//:static_assertions",
],
)