You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
338 B

def buildscript_args(
name,
package_name,
buildscript_rule,
cfgs,
features,
outfile,
version):
native.genrule(
name = name,
out = outfile,
cmd = "env RUSTC=rustc TARGET= $(exe %s) | sed -n s/^cargo:rustc-cfg=/--cfg=/p > ${OUT}" % buildscript_rule,
)