fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
bab14a47
0.9.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" : "$(rootpath :hello-world)" , 25}, 26)