We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af24d27 commit 5060e25Copy full SHA for 5060e25
crate_universe/extensions.bzl
@@ -1160,7 +1160,7 @@ def _crate_impl(module_ctx):
1160
manifests = {str(module_ctx.path(m)): str(m) for m in cfg.manifests}
1161
1162
packages = {
1163
- p.package: _package_to_json(p)
+ p.package_alias or p.package: _package_to_json(p)
1164
for p in common_specs + repo_specific_specs.get(cfg.name, [])
1165
}
1166
@@ -1427,6 +1427,9 @@ _spec = tag_class(
1427
doc = "The explicit name of the package.",
1428
mandatory = True,
1429
),
1430
+ "package_alias": attr.string(
1431
+ doc = "Alias for the package.",
1432
+ ),
1433
"path": attr.string(
1434
doc = "The local path of the remote crate. Cannot be used with `version` or `git`.",
1435
0 commit comments