load( | |
"@rules_rust//rust:defs.bzl", | |
"rust_library", | |
"rust_test", | |
) | |
cc_library( | |
name = "two", | |
hdrs = ["two.h"], | |
) | |
cc_library( | |
name = "three", | |
hdrs = ["three.h"], | |
) | |
rust_library( | |
name = "math", | |
srcs = ["math.rs"], | |
cc_deps = [ | |
":three", | |
":two", | |
], | |
proc_macro_deps = [ | |
"//cc_import", | |
], | |
) | |
rust_test( | |
name = "math_test", | |
crate = ":math", | |
) |