Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crate_universe/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ def _crate_impl(module_ctx):
manifests = {str(module_ctx.path(m)): str(m) for m in cfg.manifests}

packages = {
p.package: _package_to_json(p)
p.package_alias or p.package: _package_to_json(p)
for p in common_specs + repo_specific_specs.get(cfg.name, [])
}

Expand Down Expand Up @@ -1409,6 +1409,9 @@ _spec = tag_class(
doc = "The explicit name of the package.",
mandatory = True,
),
"package_alias": attr.string(
doc = "Alias for the package.",
),
"path": attr.string(
doc = "The local path of the remote crate. Cannot be used with `version` or `git`.",
),
Expand Down