Skip to content

Commit

Permalink
Update rules_rust to v0.42.1 (with Rust v1.77.2). (#410)
Browse files Browse the repository at this point in the history
* Update rules_rust
* Update rust and vendor
* rust_oom -> rg_oom
* Change rust version

---------

Signed-off-by: Keith Mattix II <[email protected]>
  • Loading branch information
keithmattix authored Aug 19, 2024
1 parent 5753265 commit f199214
Show file tree
Hide file tree
Showing 168 changed files with 2,380 additions and 1,147 deletions.
15 changes: 9 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT
# ])

rust_library(
name = "ansi_term",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -29,7 +30,9 @@ rust_library(
),
crate_root = "src/lib.rs",
edition = "2015",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=ansi_term",
Expand Down
26 changes: 17 additions & 9 deletions bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT OR Apache-2.0
# ])

rust_library(
name = "anyhow",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -34,7 +35,9 @@ rust_library(
],
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=anyhow",
Expand All @@ -49,8 +52,11 @@ rust_library(
)

cargo_build_script(
name = "anyhow_build_script",
srcs = glob(["**/*.rs"]),
name = "anyhow_bs",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
crate_features = [
"default",
"std",
Expand All @@ -59,8 +65,10 @@ cargo_build_script(
crate_root = "build.rs",
data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -84,6 +92,6 @@ cargo_build_script(

alias(
name = "build_script_build",
actual = "anyhow_build_script",
actual = ":anyhow_bs",
tags = ["manual"],
)
24 changes: 18 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT
# ])

rust_library(
name = "atty",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -29,7 +30,9 @@ rust_library(
),
crate_root = "src/lib.rs",
edition = "2015",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=atty",
Expand Down Expand Up @@ -60,6 +63,12 @@ rust_library(
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
"@cu__libc-0.2.155//:libc", # cfg(unix)
],
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
"@cu__libc-0.2.155//:libc", # cfg(unix)
],
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
"@cu__libc-0.2.155//:libc", # cfg(unix)
],
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
"@cu__libc-0.2.155//:libc", # cfg(unix)
],
Expand Down Expand Up @@ -111,6 +120,9 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
"@cu__libc-0.2.155//:libc", # cfg(unix)
],
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
"@cu__libc-0.2.155//:libc", # cfg(unix)
],
"//conditions:default": [],
}),
)
16 changes: 11 additions & 5 deletions bazel/cargo/wasmsign/remote/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,21 @@ exports_files(
"cargo-bazel.json",
"crates.bzl",
"defs.bzl",
] + glob(["*.bazel"]),
] + glob(
include = ["*.bazel"],
allow_empty = True,
),
)

filegroup(
name = "srcs",
srcs = glob([
"*.bazel",
"*.bzl",
]),
srcs = glob(
include = [
"*.bazel",
"*.bzl",
],
allow_empty = True,
),
)

# Workspace Member Dependencies
Expand Down
15 changes: 9 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT/Apache-2.0
# ])

rust_library(
name = "bitflags",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -32,7 +33,9 @@ rust_library(
],
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=bitflags",
Expand Down
15 changes: 9 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # Unlicense OR MIT
# ])

rust_library(
name = "byteorder",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -33,7 +34,9 @@ rust_library(
],
crate_root = "src/lib.rs",
edition = "2021",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=byteorder",
Expand Down
15 changes: 9 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT/Apache-2.0
# ])

rust_library(
name = "cfg_if",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -29,7 +30,9 @@ rust_library(
),
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=cfg-if",
Expand Down
24 changes: 18 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT
# ])

rust_library(
name = "clap",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -38,7 +39,9 @@ rust_library(
],
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=clap",
Expand Down Expand Up @@ -73,6 +76,12 @@ rust_library(
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
Expand Down Expand Up @@ -136,6 +145,9 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
"@rules_rust//rust/platform:x86_64-unknown-none": [
"@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows))
],
Expand Down
15 changes: 9 additions & 6 deletions bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library")

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

# licenses([
# "TODO", # MIT
# ])

rust_library(
name = "ct_codecs",
srcs = glob(["**/*.rs"]),
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
Expand All @@ -33,7 +34,9 @@ rust_library(
],
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = ["--cap-lints=allow"],
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=ct-codecs",
Expand Down
Loading

0 comments on commit f199214

Please sign in to comment.