fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
a1dbd31e
0.8.0
1load ( "//rust:defs.bzl" , "rust_binary" , "rust_test" ) 2 3rust_binary ( 4name = "hello-world" , 5srcs = [ "src/main.rs" ], 6edition = "2018" , 7) 8 9filegroup ( 10name = "hello_world_main" , 11srcs = [ "src/main.rs" ], 12) 13 14rust_test ( 15name = "test" , 16srcs = [ "tests/run.rs" ], 17data = [ 18":hello-world" , 19":hello_world_main" , 20], 21edition = "2018" , 22env = { 23"FERRIS_SAYS" : "Hello fellow Rustaceans!" , 24"HELLO_WORLD_BIN" : "$(rootpath :hello-world)" , 25"HELLO_WORLD_SRC" : "$(rootpath :hello_world_main)" , 26}, 27)