fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
03a70796
0.7.0
1load ( "//rust:defs.bzl" , "rust_binary" ) 2 3package ( default_visibility = [ "//visibility:public" ]) 4 5rust_binary ( 6name = "hello_env" , 7srcs = [ "src/main.rs" ], 8edition = "2018" , 9rustc_env_files = [ ":generate_rustc_env_file" ], 10) 11 12genrule ( 13name = "generate_rustc_env_file" , 14outs = [ "rustc_env_file" ], 15cmd = "echo CARGO_PKG_VERSION=1.2.3 >> $@ && echo GREETING=Howdy >> $@" , 16) 17 18sh_test ( 19name = "output_test" , 20srcs = [ "output_test.sh" ], 21args = [ "$(location :hello_env)" ], 22data = [ ":hello_env" ], 23)