blob: 79c2e710c5be44768cf2dcb99c3ea10674e8aef7 [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",
crate = ":mod3",
edition = "2018",
)