fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
456788df
main
1"""Test utiltiies for ensuring bzlmod and workspace versions match""" 2 3load ( "//rust:defs.bzl" , "rust_test" ) 4 5def bzl_ext_version_test ( name , module_bazel , ** kwargs ): 6"""A test for ensuring a rules_rust extension bzlmod repo is in sync with the core rules_rust version. 7 8Args: 9name (str): The name of the test 10module_bazel (label): The label of a `MODULE.bazel` file. 11**kwargs (dict): Additional keyword arguments. 12""" 13 14rust_test ( 15name = name , 16srcs = [ Label ( "//test/bzl_version:bzl_ext_version_test.rs" )], 17data = [ 18module_bazel , 19Label ( "@rules_rust//:MODULE.bazel" ), 20], 21edition = "2021" , 22env = { 23"CORE_MODULE_BAZEL" : "$(rlocationpath @rules_rust//:MODULE.bazel)" , 24"MODULE_BAZEL" : "$(rlocationpath {})" . format ( module_bazel ), 25}, 26deps = [ 27Label ( "//tools/runfiles" ), 28], 29** kwargs 30)