Skip to content

Commit dd23528

Browse files
authored
Merge branch 'main' into coverage-rbe
2 parents 93f995a + e226874 commit dd23528

50 files changed

Lines changed: 555 additions & 1080 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- main
88
paths:
9+
- crate_universe/tools/cross_installer/**
910
- version.bzl
1011
- .github/workflows/release.yaml
1112
push:

crate_universe/extensions.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def _crate_impl(module_ctx):
11611161
manifests = {str(module_ctx.path(m)): str(m) for m in cfg.manifests}
11621162

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

@@ -1431,6 +1431,9 @@ _spec = tag_class(
14311431
doc = "The explicit name of the package.",
14321432
mandatory = True,
14331433
),
1434+
"package_alias": attr.string(
1435+
doc = "Alias for the package.",
1436+
),
14341437
"path": attr.string(
14351438
doc = "The local path of the remote crate. Cannot be used with `version` or `git`.",
14361439
),

crate_universe/private/crates_repository.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ def _crates_repository_impl(repository_ctx):
139139
# Determine the set of reproducible values
140140
attrs = {attr: getattr(repository_ctx.attr, attr) for attr in dir(repository_ctx.attr)}
141141
exclude = ["to_json", "to_proto"]
142-
for attr in exclude:
143-
attrs.pop(attr, None)
142+
for attr in list(attrs.keys()):
143+
if attr in exclude or attr.startswith("_"):
144+
attrs.pop(attr, None)
144145

145146
# Note that this is only scoped to the current host platform. Users should
146147
# ensure they provide all the values necessary for the host environments

crate_universe/tools/cross_installer/cross_installer_deps.bzl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ def cross_installer_deps(**kwargs):
2323
http_archive,
2424
name = "cross_rs",
2525
# v0.2.5+
26-
urls = ["https://github.com/cross-rs/cross/archive/4090beca3cfffa44371a5bba524de3a578aa46c3.zip"],
27-
strip_prefix = "cross-4090beca3cfffa44371a5bba524de3a578aa46c3",
28-
integrity = "sha256-9lo/wRsDWdaTzt3kVSBWRfNp+DXeDZqrG3Z+10mE+fo=",
26+
urls = ["https://github.com/cross-rs/cross/archive/588b3c99db52b5a9c5906fab96cfadcf1bde7863.zip"],
27+
strip_prefix = "cross-588b3c99db52b5a9c5906fab96cfadcf1bde7863",
28+
integrity = "sha256-5LqzALSHMZGDtTLMk94fGa6oexMfoi3YjlbivVstMXU=",
2929
build_file_content = """exports_files(["Cargo.toml", "Cargo.lock"], visibility = ["//visibility:public"])""",
30-
patch_args = ["-p1"],
31-
patches = [
32-
Label("//crate_universe/tools/cross_installer/patches:cross_rs.static_mut_refs.patch"),
33-
],
3430
)
3531

3632
direct_deps.append(struct(

crate_universe/tools/cross_installer/patches/BUILD.bazel

Whitespace-only changes.

crate_universe/tools/cross_installer/patches/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

crate_universe/tools/cross_installer/patches/cross_rs.static_mut_refs.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

examples/crate_universe/MODULE.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,13 @@ no_cargo.spec(
515515
repositories = ["no_cargo"],
516516
version = "0.4",
517517
)
518+
no_cargo.spec(
519+
features = ["util"],
520+
package = "tower",
521+
package_alias = "tower_new", # used in package_alias test
522+
repositories = ["no_cargo"],
523+
version = "0.5.3",
524+
)
518525
no_cargo.spec(
519526
features = ["trace"],
520527
package = "tower-http",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
alias(
2+
name = "tower-new",
3+
actual = "@no_cargo//:tower_new", # ensures the package_alias works
4+
)

extensions/pyo3/3rdparty/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ crates_vendor(
5353
"extension-module",
5454
"experimental-inspect",
5555
],
56-
version = "0.26.0",
56+
version = "0.28.2",
5757
),
5858
"pyo3-ffi": crate.spec(
59-
version = "0.26.0",
59+
version = "0.28.2",
6060
),
6161
"pyo3-introspection": crate.spec(
62-
version = "0.26.0",
62+
version = "0.28.2",
6363
),
6464
},
6565
# Name is short to avoid windows paths being too long

0 commit comments

Comments
 (0)