Skip to content

Commit

Permalink
[rust] update rust dependencies (#2989)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea authored Oct 23, 2024
1 parent 17f653c commit ad1140a
Show file tree
Hide file tree
Showing 70 changed files with 3,964 additions and 161 deletions.
423 changes: 397 additions & 26 deletions deps/rust/Cargo.lock

Large diffs are not rendered by default.

47 changes: 17 additions & 30 deletions deps/rust/cargo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,21 @@

load("@rules_rust//crate_universe:defs.bzl", "crate")

RTTI_PACKAGES = {
# Crates used for RTTI parameter extraction
"anyhow": crate.spec(
version = "1",
),
"clang-ast": crate.spec(
version = "0.1",
),
"flate2": crate.spec(
version = "1.0",
),
"serde": crate.spec(
version = "1.0",
features = ["derive"],
),
"serde_json": crate.spec(
version = "1.0",
),
"pico-args": crate.spec(
version = "0.5",
),
}

PACKAGES = RTTI_PACKAGES | {
"lolhtml": crate.spec(
git = "https://github.com/cloudflare/lol-html.git",
rev = "4f8becea13a0021c8b71abd2dcc5899384973b66",
),
"capnp": crate.spec(version = "0.20"),
"capnpc": crate.spec(version = "0.20"),
# We prefer single-digit dependencies to stay up to date as much as possible
PACKAGES = {
"anyhow": crate.spec(version = "1"),
"capnp": crate.spec(version = "0"),
"capnpc": crate.spec(version = "0"),
"clang-ast": crate.spec(version = "0"),
# our own cxx fork
"cxx": crate.spec(git = "https://github.com/cloudflare/workerd-cxx.git"),
"cxxbridge-cmd": crate.spec(git = "https://github.com/cloudflare/workerd-cxx.git"),
"flate2": crate.spec(version = "1"),
"lolhtml": crate.spec(git = "https://github.com/cloudflare/lol-html.git", rev = "4f8becea13a0021c8b71abd2dcc5899384973b66"),
"nix": crate.spec(version = "0"),
"pico-args": crate.spec(version = "0"),
"serde_json": crate.spec(version = "1"),
"serde": crate.spec(version = "1", features = ["derive"]),
"tokio": crate.spec(version = "1", features = ["net", "process", "signal", "rt", "rt-multi-thread", "time"]),
"tracing": crate.spec(version = "0"),
}
88 changes: 88 additions & 0 deletions deps/rust/crates/BUILD.addr2line-0.24.2.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run @//deps/rust:crates_vendor
###############################################################################

load(
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
)

package(default_visibility = ["//visibility:public"])

rust_library(
name = "addr2line",
srcs = glob(
include = ["**/*.rs"],
allow_empty = True,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=addr2line",
"manual",
"noclippy",
"norustfmt",
],
version = "0.24.2",
deps = [
"@crates_vendor__gimli-0.31.1//:gimli",
],
)

rust_binary(
name = "addr2line__bin",
srcs = glob(
include = ["**/*.rs"],
allow_empty = True,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_root = "src/bin/addr2line.rs",
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=addr2line",
"manual",
"noclippy",
"norustfmt",
],
version = "0.24.2",
deps = [
":addr2line",
"@crates_vendor__gimli-0.31.1//:gimli",
],
)
48 changes: 48 additions & 0 deletions deps/rust/crates/BUILD.anstyle-1.0.8.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run @//deps/rust:crates_vendor
###############################################################################

load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//visibility:public"])

rust_library(
name = "anstyle",
srcs = glob(
include = ["**/*.rs"],
allow_empty = True,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_features = [
"default",
"std",
],
crate_root = "src/lib.rs",
edition = "2021",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=anstyle",
"manual",
"noclippy",
"norustfmt",
],
version = "1.0.8",
)
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.89",
version = "1.0.91",
deps = [
"@crates_vendor__anyhow-1.0.89//:build_script_build",
"@crates_vendor__anyhow-1.0.91//:build_script_build",
],
)

Expand Down Expand Up @@ -100,7 +100,7 @@ cargo_build_script(
"noclippy",
"norustfmt",
],
version = "1.0.89",
version = "1.0.91",
visibility = ["//visibility:private"],
)

Expand Down
77 changes: 77 additions & 0 deletions deps/rust/crates/BUILD.backtrace-0.3.74.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run @//deps/rust:crates_vendor
###############################################################################

load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//visibility:public"])

rust_library(
name = "backtrace",
srcs = glob(
include = ["**/*.rs"],
allow_empty = True,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_root = "src/lib.rs",
edition = "2021",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=backtrace",
"manual",
"noclippy",
"norustfmt",
],
version = "0.3.74",
deps = [
"@crates_vendor__cfg-if-1.0.0//:cfg_if",
"@crates_vendor__rustc-demangle-0.1.24//:rustc_demangle",
] + select({
"@rules_rust//rust/platform:aarch64-apple-darwin": [
"@crates_vendor__addr2line-0.24.2//:addr2line", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__libc-0.2.161//:libc", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__miniz_oxide-0.8.0//:miniz_oxide", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__object-0.36.5//:object", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
],
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
"@crates_vendor__addr2line-0.24.2//:addr2line", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__libc-0.2.161//:libc", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__miniz_oxide-0.8.0//:miniz_oxide", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__object-0.36.5//:object", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
],
"@rules_rust//rust/platform:x86_64-apple-darwin": [
"@crates_vendor__addr2line-0.24.2//:addr2line", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__libc-0.2.161//:libc", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__miniz_oxide-0.8.0//:miniz_oxide", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__object-0.36.5//:object", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
],
"@rules_rust//rust/platform:x86_64-pc-windows-msvc": [
"@crates_vendor__windows-targets-0.52.6//:windows_targets", # cfg(windows)
],
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
"@crates_vendor__addr2line-0.24.2//:addr2line", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__libc-0.2.161//:libc", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__miniz_oxide-0.8.0//:miniz_oxide", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
"@crates_vendor__object-0.36.5//:object", # cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))
],
"//conditions:default": [],
}),
)
62 changes: 58 additions & 4 deletions deps/rust/crates/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ filegroup(
# Workspace Member Dependencies
alias(
name = "anyhow",
actual = "@crates_vendor__anyhow-1.0.89//:anyhow",
actual = "@crates_vendor__anyhow-1.0.91//:anyhow",
tags = ["manual"],
)

alias(
name = "capnp",
actual = "@crates_vendor__capnp-0.20.2//:capnp",
actual = "@crates_vendor__capnp-0.20.3//:capnp",
tags = ["manual"],
)

Expand All @@ -55,6 +55,24 @@ alias(
tags = ["manual"],
)

alias(
name = "cxx",
actual = "@crates_vendor__cxx-1.0.128//:cxx",
tags = ["manual"],
)

alias(
name = "cxx_cc",
actual = "@crates_vendor__cxx-1.0.128//:cxx_cc",
tags = ["manual"],
)

alias(
name = "cxxbridge-cmd",
actual = "@crates_vendor__cxxbridge-cmd-1.0.128//:cxxbridge_cmd",
tags = ["manual"],
)

alias(
name = "flate2",
actual = "@crates_vendor__flate2-1.0.34//:flate2",
Expand All @@ -67,6 +85,12 @@ alias(
tags = ["manual"],
)

alias(
name = "nix",
actual = "@crates_vendor__nix-0.29.0//:nix",
tags = ["manual"],
)

alias(
name = "pico-args",
actual = "@crates_vendor__pico-args-0.5.0//:pico_args",
Expand All @@ -75,17 +99,35 @@ alias(

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

alias(
name = "serde_json",
actual = "@crates_vendor__serde_json-1.0.129//:serde_json",
actual = "@crates_vendor__serde_json-1.0.132//:serde_json",
tags = ["manual"],
)

alias(
name = "tokio",
actual = "@crates_vendor__tokio-1.41.0//:tokio",
tags = ["manual"],
)

alias(
name = "tracing",
actual = "@crates_vendor__tracing-0.1.40//:tracing",
tags = ["manual"],
)

# Binaries
alias(
name = "addr2line__addr2line",
actual = "@crates_vendor__addr2line-0.24.2//:addr2line__bin",
tags = ["manual"],
)

alias(
name = "capnpc__capnpc-rust",
actual = "@crates_vendor__capnpc-0.20.0//:capnpc-rust__bin",
Expand All @@ -98,6 +140,18 @@ alias(
tags = ["manual"],
)

alias(
name = "clap__stdio-fixture",
actual = "@crates_vendor__clap-4.5.20//:stdio-fixture__bin",
tags = ["manual"],
)

alias(
name = "cxxbridge-cmd__cxxbridge",
actual = "@crates_vendor__cxxbridge-cmd-1.0.128//:cxxbridge__bin",
tags = ["manual"],
)

alias(
name = "phf_generator__gen_hash_test",
actual = "@crates_vendor__phf_generator-0.8.0//:gen_hash_test__bin",
Expand Down
Loading

0 comments on commit ad1140a

Please sign in to comment.