Skip to content

Commit

Permalink
Unpin proc-macro-hack, roll Rust deps
Browse files Browse the repository at this point in the history
With bazelbuild/rules_rust#2663 we no longer need to manually specify
the proc-macro-hack version to manage Windows path length constraints.
  • Loading branch information
fhanau committed Jun 11, 2024
1 parent 6d46942 commit 0d4b282
Show file tree
Hide file tree
Showing 29 changed files with 120 additions and 120 deletions.
2 changes: 2 additions & 0 deletions rust-deps/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ crates_vendor(
render_config = render_config(generate_target_compatible_with = False),
)

# TODO(cleanup): Switching to rust_library() would reduce the overhead of this by not creating a
# crate-of-crates but this previously broke the Windows build.
rust_static_library(
name = "rust-deps",
srcs = ["src/lib.rs"],
Expand Down
5 changes: 3 additions & 2 deletions rust-deps/crates/BUILD.ahash-0.8.11.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ rust_library(
)

cargo_build_script(
name = "ahash_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -87,6 +87,7 @@ cargo_build_script(
],
),
edition = "2018",
pkg_name = "ahash",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -106,6 +107,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = ":ahash_bs",
actual = ":_bs",
tags = ["manual"],
)
5 changes: 3 additions & 2 deletions rust-deps/crates/BUILD.anyhow-1.0.86.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ rust_library(
)

cargo_build_script(
name = "anyhow_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -76,6 +76,7 @@ cargo_build_script(
],
),
edition = "2018",
pkg_name = "anyhow",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -92,6 +93,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = ":anyhow_bs",
actual = ":_bs",
tags = ["manual"],
)
10 changes: 2 additions & 8 deletions rust-deps/crates/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ alias(

alias(
name = "clang-ast",
actual = "@crates_vendor__clang-ast-0.1.23//:clang_ast",
actual = "@crates_vendor__clang-ast-0.1.24//:clang_ast",
tags = ["manual"],
)

Expand All @@ -61,15 +61,9 @@ alias(
tags = ["manual"],
)

alias(
name = "proc-macro-hack",
actual = "@crates_vendor__proc-macro-hack-0.5.19//:proc_macro_hack",
tags = ["manual"],
)

alias(
name = "serde",
actual = "@crates_vendor__serde-1.0.202//:serde",
actual = "@crates_vendor__serde-1.0.203//:serde",
tags = ["manual"],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.98",
version = "1.0.99",
)
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.1.23",
version = "0.1.24",
deps = [
"@crates_vendor__rustc-hash-1.1.0//:rustc_hash",
"@crates_vendor__serde-1.0.202//:serde",
"@crates_vendor__serde-1.0.203//:serde",
],
)
9 changes: 5 additions & 4 deletions rust-deps/crates/BUILD.cssparser-0.27.2.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rust_library(
version = "0.27.2",
deps = [
"@crates_vendor__cssparser-0.27.2//:build_script_build",
"@crates_vendor__dtoa-short-0.3.4//:dtoa_short",
"@crates_vendor__dtoa-short-0.3.5//:dtoa_short",
"@crates_vendor__itoa-0.4.8//:itoa",
"@crates_vendor__matches-0.1.10//:matches",
"@crates_vendor__phf-0.8.0//:phf",
Expand All @@ -56,7 +56,7 @@ rust_library(
)

cargo_build_script(
name = "cssparser_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -76,6 +76,7 @@ cargo_build_script(
],
),
edition = "2018",
pkg_name = "cssparser",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -89,14 +90,14 @@ cargo_build_script(
version = "0.27.2",
visibility = ["//visibility:private"],
deps = [
"@crates_vendor__proc-macro2-1.0.83//:proc_macro2",
"@crates_vendor__proc-macro2-1.0.85//:proc_macro2",
"@crates_vendor__quote-1.0.36//:quote",
"@crates_vendor__syn-1.0.109//:syn",
],
)

alias(
name = "build_script_build",
actual = ":cssparser_bs",
actual = ":_bs",
tags = ["manual"],
)
2 changes: 1 addition & 1 deletion rust-deps/crates/BUILD.cssparser-macros-0.6.1.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ rust_proc_macro(
version = "0.6.1",
deps = [
"@crates_vendor__quote-1.0.36//:quote",
"@crates_vendor__syn-2.0.65//:syn",
"@crates_vendor__syn-2.0.66//:syn",
],
)
2 changes: 1 addition & 1 deletion rust-deps/crates/BUILD.derive_more-0.99.17.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ rust_proc_macro(
version = "0.99.17",
deps = [
"@crates_vendor__convert_case-0.4.0//:convert_case",
"@crates_vendor__proc-macro2-1.0.83//:proc_macro2",
"@crates_vendor__proc-macro2-1.0.85//:proc_macro2",
"@crates_vendor__quote-1.0.36//:quote",
"@crates_vendor__syn-1.0.109//:syn",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.3.4",
version = "0.3.5",
deps = [
"@crates_vendor__dtoa-1.0.9//:dtoa",
],
Expand Down
5 changes: 3 additions & 2 deletions rust-deps/crates/BUILD.getrandom-0.1.16.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ rust_library(
)

cargo_build_script(
name = "getrandom_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -89,6 +89,7 @@ cargo_build_script(
],
),
edition = "2018",
pkg_name = "getrandom",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -105,6 +106,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = ":getrandom_bs",
actual = ":_bs",
tags = ["manual"],
)
5 changes: 3 additions & 2 deletions rust-deps/crates/BUILD.libc-0.2.155.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ rust_library(
)

cargo_build_script(
name = "libc_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -76,6 +76,7 @@ cargo_build_script(
],
),
edition = "2015",
pkg_name = "libc",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -92,6 +93,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = ":libc_bs",
actual = ":_bs",
tags = ["manual"],
)
2 changes: 1 addition & 1 deletion rust-deps/crates/BUILD.phf-0.8.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ rust_library(
edition = "2018",
proc_macro_deps = [
"@crates_vendor__phf_macros-0.8.0//:phf_macros",
"@crates_vendor__proc-macro-hack-0.5.19//:proc_macro_hack",
"@crates_vendor__proc-macro-hack-0.5.20-deprecated//:proc_macro_hack",
],
rustc_flags = [
"--cap-lints=allow",
Expand Down
4 changes: 2 additions & 2 deletions rust-deps/crates/BUILD.phf_macros-0.8.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rust_proc_macro(
crate_root = "src/lib.rs",
edition = "2018",
proc_macro_deps = [
"@crates_vendor__proc-macro-hack-0.5.19//:proc_macro_hack",
"@crates_vendor__proc-macro-hack-0.5.20-deprecated//:proc_macro_hack",
],
rustc_flags = [
"--cap-lints=allow",
Expand All @@ -47,7 +47,7 @@ rust_proc_macro(
deps = [
"@crates_vendor__phf_generator-0.8.0//:phf_generator",
"@crates_vendor__phf_shared-0.8.0//:phf_shared",
"@crates_vendor__proc-macro2-1.0.83//:proc_macro2",
"@crates_vendor__proc-macro2-1.0.85//:proc_macro2",
"@crates_vendor__quote-1.0.36//:quote",
"@crates_vendor__syn-1.0.109//:syn",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ rust_proc_macro(
"noclippy",
"norustfmt",
],
version = "0.5.19",
version = "0.5.20+deprecated",
deps = [
"@crates_vendor__proc-macro-hack-0.5.19//:build_script_build",
"@crates_vendor__proc-macro-hack-0.5.20-deprecated//:build_script_build",
],
)

cargo_build_script(
name = "proc-macro-hack_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -68,6 +68,7 @@ cargo_build_script(
],
),
edition = "2018",
pkg_name = "proc-macro-hack",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -78,12 +79,12 @@ cargo_build_script(
"noclippy",
"norustfmt",
],
version = "0.5.19",
version = "0.5.20+deprecated",
visibility = ["//visibility:private"],
)

alias(
name = "build_script_build",
actual = ":proc-macro-hack_bs",
actual = ":_bs",
tags = ["manual"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.83",
version = "1.0.85",
deps = [
"@crates_vendor__proc-macro2-1.0.83//:build_script_build",
"@crates_vendor__proc-macro2-1.0.85//:build_script_build",
"@crates_vendor__unicode-ident-1.0.12//:unicode_ident",
],
)

cargo_build_script(
name = "proc-macro2_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -77,6 +77,7 @@ cargo_build_script(
],
),
edition = "2021",
pkg_name = "proc-macro2",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -87,12 +88,12 @@ cargo_build_script(
"noclippy",
"norustfmt",
],
version = "1.0.83",
version = "1.0.85",
visibility = ["//visibility:private"],
)

alias(
name = "build_script_build",
actual = ":proc-macro2_bs",
actual = ":_bs",
tags = ["manual"],
)
2 changes: 1 addition & 1 deletion rust-deps/crates/BUILD.quote-1.0.36.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ rust_library(
],
version = "1.0.36",
deps = [
"@crates_vendor__proc-macro2-1.0.83//:proc_macro2",
"@crates_vendor__proc-macro2-1.0.85//:proc_macro2",
],
)
5 changes: 3 additions & 2 deletions rust-deps/crates/BUILD.selectors-0.22.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rust_library(
)

cargo_build_script(
name = "selectors_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -81,6 +81,7 @@ cargo_build_script(
],
),
edition = "2015",
pkg_name = "selectors",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -100,6 +101,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = ":selectors_bs",
actual = ":_bs",
tags = ["manual"],
)
5 changes: 3 additions & 2 deletions rust-deps/crates/BUILD.semver-1.0.23.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ rust_library(
)

cargo_build_script(
name = "semver_bs",
name = "_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
Expand All @@ -76,6 +76,7 @@ cargo_build_script(
],
),
edition = "2018",
pkg_name = "semver",
rustc_flags = [
"--cap-lints=allow",
],
Expand All @@ -92,6 +93,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = ":semver_bs",
actual = ":_bs",
tags = ["manual"],
)
Loading

0 comments on commit 0d4b282

Please sign in to comment.