load("@rules_python//python:defs.bzl", "py_binary") py_binary( name = "metadata_generator", srcs = ["metadata_generator.py"], data = [ "@rules_rust//rust/toolchain:current_cargo_files", "@rules_rust//rust/toolchain:current_rustc_files", ], env = { "CARGO": "$(rootpath @rules_rust//rust/toolchain:current_cargo_files)", "RUSTC": "$(rootpath @rules_rust//rust/toolchain:current_rustc_files)", }, )