load("@rules_rust//rust:defs.bzl", "rust_library", "rust_library_group", "rust_test") | |
rust_library( | |
name = "dep1", | |
srcs = ["dep1.rs"], | |
edition = "2021", | |
) | |
rust_library( | |
name = "dep2", | |
srcs = ["dep2.rs"], | |
edition = "2021", | |
) | |
rust_library_group( | |
name = "dep1_and_2", | |
deps = [ | |
":dep1", | |
":dep2", | |
], | |
) | |
rust_library( | |
name = "library", | |
srcs = ["lib.rs"], | |
edition = "2021", | |
deps = [":dep1_and_2"], | |
) | |
rust_test( | |
name = "test", | |
srcs = ["test.rs"], | |
edition = "2021", | |
deps = [":dep1_and_2"], | |
) |