blob: 5c5d57a6da2caf8b6d3184859c698649a977d111 [file] [log] [blame]
load("@rules_cc//cc:defs.bzl", "cc_library")
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
"rust_test",
)
rust_library(
name = "transitive",
srcs = ["transitive.rs"],
edition = "2018",
)
cc_library(
name = "direct",
srcs = ["direct.cc"],
hdrs = ["direct.h"],
deps = ["transitive"],
)
rust_test(
name = "main",
srcs = ["main.rs"],
edition = "2018",
deps = ["direct"],
)