def _foo_impl(ctx): pass foo_binary = rule( implementation = _foo_impl, )