blob: 6f1e952849e4d1d5da3456ce6c0cd1a319220112 [file] [log] [blame]
load("//rust:defs.bzl", "rust_doc_test", "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"],
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",
)
rust_doc_test(
name = "mod3_doc_test",
crate = ":mod3",
)