fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
cd44b367
0.6.0
1load ( "@rules_pkg//:pkg.bzl" , "pkg_tar" ) 2 3pkg_tar ( 4name = "rules_rust" , 5srcs = [ "//:distro" ], 6extension = "tar.gz" , 7mode = "0444" , 8# Make it owned by root so it does not have the uid of the CI robot. 9owner = "0.0" , 10package_dir = "." , 11strip_prefix = "." , 12visibility = [ "//:__subpackages__" ], 13) 14 15# This filegroup allows the tar file to appear in runfiles 16# https://github.com/bazelbuild/bazel/issues/12348 17filegroup ( 18name = "distro" , 19srcs = [ ":rules_rust" ], 20visibility = [ "//:__subpackages__" ], 21) 22 23sh_binary ( 24name = "publish" , 25srcs = [ "publisher.sh" ], 26data = [ ":distro" ], 27env = { "ARCHIVE" : "$(rootpath :distro)" }, 28target_compatible_with = select ({ 29"@platforms//os:linux" : [], 30"@platforms//os:macos" : [], 31"//conditions:default" : [ "@platforms//:incompatible" ], 32}), 33)