blob: e7dc187ffa51e9687efb7044cd833b164ed84a5b [file] [log] [blame]
load("//rust:defs.bzl", "rust_library", "rust_test")
rust_library(
name = "mod1",
srcs = ["mod1.rs"],
edition = "2018",
)
rust_library(
name = "mod2",
srcs = ["mod2.rs"],
edition = "2018",
deps = [":mod1"],
)
rust_library(
name = "mod3",
srcs = ["mod3.rs"],
aliases = {
":mod1": "alias_a",
":mod2": "alias_b",
},
edition = "2018",
deps = [
":mod1",
":mod2",
],
)
rust_test(
name = "mod1_test",
crate = ":mod1",
edition = "2018",
)
rust_test(
name = "mod2_test",
crate = ":mod2",
edition = "2018",
)
rust_test(
name = "mod3_test",
aliases = {
":mod1": "alias_a",
":mod2": "alias_b",
},
crate = ":mod3",
edition = "2018",
)