Skip to content

Commit

Permalink
Update rules_rust to v0.22.0 (with Rust v1.69.0). (#197)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Jun 13, 2023
1 parent a117280 commit 6b47aec
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 546 deletions.
195 changes: 30 additions & 165 deletions bazel/cargo/remote/BUILD.ahash-0.8.3.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@
# bazel run @//bazel/cargo:crates_vendor
###############################################################################

load(
"@rules_rust//cargo:defs.bzl",
"cargo_build_script",
)

# buildifier: disable=bzl-visibility
load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
load("@rules_rust//rust:defs.bzl", "rust_library")

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

Expand All @@ -26,287 +17,161 @@ package(default_visibility = ["//visibility:public"])

rust_library(
name = "ahash",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = select({
"//conditions:default": {
},
}),
srcs = glob(["**/*.rs"]),
compile_data = glob(
include = ["**"],
exclude = [
"**/* *",
"BUILD.bazel",
"BUILD",
"WORKSPACE.bazel",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
],
),
crate_root = "src/lib.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select({
"//conditions:default": [
],
}),
rustc_env = {
},
rustc_env_files = select_with_or({
"//conditions:default": [
],
}),
rustc_flags = [
# In most cases, warnings in 3rd party crates are not interesting as
# they're out of the control of consumers. The flag here silences
# warnings. For more details see:
# https://doc.rust-lang.org/rustc/lints/levels.html
"--cap-lints=allow",
],
rustc_flags = ["--cap-lints=allow"],
tags = [
"cargo-bazel",
"crate-name=ahash",
"manual",
"noclippy",
"norustfmt",
],
version = "0.8.3",
deps = [
"@crates_vendor__ahash-0.8.3//:build_script_build",
"@crates_vendor__cfg-if-1.0.0//:cfg_if",
] + select({
"@rules_rust//rust/platform:aarch64-apple-darwin": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:aarch64-apple-ios": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:aarch64-fuchsia": [
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:aarch64-linux-android": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:aarch64-pc-windows-msvc": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:armv7-linux-androideabi": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:i686-apple-darwin": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:i686-linux-android": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:i686-pc-windows-msvc": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:i686-unknown-freebsd": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:thumbv7em-none-eabi": [
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:wasm32-unknown-unknown": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:wasm32-wasi": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-apple-darwin": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-apple-ios": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-fuchsia": [
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-linux-android": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-pc-windows-msvc": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
"@crates_vendor__ahash-0.8.3//:build_script_build", # common dependency
"@crates_vendor__cfg-if-1.0.0//:cfg_if", # common dependency
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"//conditions:default": [
"@crates_vendor__ahash-0.8.3//:build_script_build",
"@crates_vendor__cfg-if-1.0.0//:cfg_if",
"@rules_rust//rust/platform:x86_64-unknown-none": [
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
],
"//conditions:default": [],
}),
)

cargo_build_script(
# See comment associated with alias. Do not change this name
name = "ahash_build_script",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = select({
"//conditions:default": {
},
}),
build_script_env = {
},
compile_data = select_with_or({
"//conditions:default": [
],
}),
crate_features = [
],
srcs = glob(["**/*.rs"]),
crate_name = "build_script_build",
crate_root = "build.rs",
data = glob(
include = ["**"],
exclude = [
"**/* *",
"BUILD.bazel",
"BUILD",
"WORKSPACE.bazel",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
) + select_with_or({
"//conditions:default": [
],
}),
),
edition = "2018",
proc_macro_deps = [
] + select({
"//conditions:default": [
],
}),
rustc_env = {
},
rustc_env_files = select_with_or({
"//conditions:default": [
],
}),
rustc_flags = [
# In most cases, warnings in 3rd party crates are not interesting as
# they're out of the control of consumers. The flag here silences
# warnings. For more details see:
# https://doc.rust-lang.org/rustc/lints/levels.html
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=ahash",
"manual",
"noclippy",
"norustfmt",
],
tools = select_with_or({
"//conditions:default": [
],
}),
version = "0.8.3",
visibility = ["//visibility:private"],
deps = [
] + select({
"//conditions:default": [
"@crates_vendor__version_check-0.9.4//:version_check",
],
}),
"@crates_vendor__version_check-0.9.4//:version_check",
],
)

alias(
# Because `cargo_build_script` does some invisible target name mutating to
# determine the package and crate name for a build script, the Bazel
# target namename of any build script cannot be the Cargo canonical name
# of `build_script_build` without losing out on having certain Cargo
# environment variables set.
name = "build_script_build",
actual = "ahash_build_script",
tags = [
"manual",
],
tags = ["manual"],
)
Loading

0 comments on commit 6b47aec

Please sign in to comment.