• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1def buildscript_args(
2        name: str.type,
3        package_name: str.type,
4        buildscript_rule: str.type,
5        outfile: str.type,
6        version: str.type,
7        cfgs: [str.type] = [],
8        features: [str.type] = []):
9    _ = package_name
10    _ = version
11    _ = cfgs
12    _ = features
13    native.genrule(
14        name = name,
15        out = outfile,
16        cmd = "env RUSTC=rustc TARGET= $(exe %s) | sed -n s/^cargo:rustc-cfg=/--cfg=/p > ${OUT}" % buildscript_rule,
17    )
18