| "@io_bazel_rules_rust//rust:rust.bzl", |
| load("@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script") |
| outs = ["generated.data"], |
| # we should be able to read non-generated source/data files |
| # and generated files as well |
| # we should also be able to access external binaries |
| "@com_google_protobuf//:protoc", |
| # both execpath and location should work |
| "SOURCE_FILE": "$(execpath source.file)", |
| "GENERATED_DATA": "$(location generated.data)", |
| "SOME_TOOL": "$(execpath @com_google_protobuf//:protoc)", |
| "SOURCE_FILE": "$(rootpath source.file)", |
| "GENERATED_DATA": "$(rootpath generated.data)", |
| "SOME_TOOL": "$(rootpath @com_google_protobuf//:protoc)", |