We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6b9399 commit 2fe4ea7Copy full SHA for 2fe4ea7
crate_universe/extensions.bzl
@@ -1153,7 +1153,7 @@ def _crate_impl(module_ctx):
1153
manifests = {str(module_ctx.path(m)): str(m) for m in cfg.manifests}
1154
1155
packages = {
1156
- p.package: _package_to_json(p)
+ p.package_alias or p.package: _package_to_json(p)
1157
for p in common_specs + repo_specific_specs.get(cfg.name, [])
1158
}
1159
@@ -1409,6 +1409,9 @@ _spec = tag_class(
1409
doc = "The explicit name of the package.",
1410
mandatory = True,
1411
),
1412
+ "package_alias": attr.string(
1413
+ doc = "Alias for the package.",
1414
+ ),
1415
"path": attr.string(
1416
doc = "The local path of the remote crate. Cannot be used with `version` or `git`.",
1417
0 commit comments