fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
2bad96d9
main
1load ( "@rules_proto//proto:defs.bzl" , "proto_library" ) 2load ( "@rules_rust_prost//:defs.bzl" , "rust_prost_library" ) 3 4# Build proto files 5# https://bazelbuild.github.io/rules_rust/rust_proto.html#rust_proto_library 6proto_library ( 7name = "proto_bindings" , 8srcs = [ 9"proto/helloworld.proto" , 10], 11) 12 13# Generate Rust bindings from the generated proto files 14# https://bazelbuild.github.io/rules_rust/rust_proto.html#rust_prost_library 15rust_prost_library ( 16name = "rust_proto" , 17proto = ":proto_bindings" , 18visibility = [ "//visibility:public" ], 19)