Support . workspace member (#1326)

* Support . workspace member

Previously, if a workspace included `.` as a member, we could
consistently error and nothing could be done about it.

* Label serializes :foo as //:foo

* Ignore crate_universe/private/bootstrap

This is used as a staging ground for local repositories when iterating
locally.

* Re-vendor 3rdparty crates

This adds normpath, and otherwise is just updates.
This commit is contained in:
Daniel Wagner-Hall 2022-05-09 19:10:48 +02:00 committed by GitHub
parent fccaae3055
commit d3d9abac4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
67 changed files with 962 additions and 406 deletions

1
crate_universe/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/private/bootstrap/

View File

@ -81,7 +81,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
"@crate_universe_crate_index__memchr-2.5.0//:memchr",
],
}),
)

View File

@ -81,11 +81,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.56",
version = "1.0.57",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__anyhow-1.0.56//:build_script_build",
"@crate_universe_crate_index__anyhow-1.0.57//:build_script_build",
],
}),
)
@ -152,7 +152,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "1.0.56",
version = "1.0.57",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -104,7 +104,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],

View File

@ -28,13 +28,13 @@ filegroup(
# Workspace Member Dependencies
alias(
name = "anyhow",
actual = "@crate_universe_crate_index__anyhow-1.0.56//:anyhow",
actual = "@crate_universe_crate_index__anyhow-1.0.57//:anyhow",
tags = ["manual"],
)
alias(
name = "cargo-lock",
actual = "@crate_universe_crate_index__cargo-lock-7.0.1//:cargo_lock",
actual = "@crate_universe_crate_index__cargo-lock-7.1.0//:cargo_lock",
tags = ["manual"],
)
@ -64,7 +64,7 @@ alias(
alias(
name = "clap",
actual = "@crate_universe_crate_index__clap-3.1.8//:clap",
actual = "@crate_universe_crate_index__clap-3.1.17//:clap",
tags = ["manual"],
)
@ -80,6 +80,18 @@ alias(
tags = ["manual"],
)
alias(
name = "maplit",
actual = "@crate_universe_crate_index__maplit-1.0.2//:maplit",
tags = ["manual"],
)
alias(
name = "normpath",
actual = "@crate_universe_crate_index__normpath-0.3.2//:normpath",
tags = ["manual"],
)
alias(
name = "pathdiff",
actual = "@crate_universe_crate_index__pathdiff-0.2.1//:pathdiff",
@ -94,19 +106,19 @@ alias(
alias(
name = "semver",
actual = "@crate_universe_crate_index__semver-1.0.7//:semver",
actual = "@crate_universe_crate_index__semver-1.0.9//:semver",
tags = ["manual"],
)
alias(
name = "serde",
actual = "@crate_universe_crate_index__serde-1.0.136//:serde",
actual = "@crate_universe_crate_index__serde-1.0.137//:serde",
tags = ["manual"],
)
alias(
name = "serde_json",
actual = "@crate_universe_crate_index__serde_json-1.0.79//:serde_json",
actual = "@crate_universe_crate_index__serde_json-1.0.81//:serde_json",
tags = ["manual"],
)
@ -148,14 +160,14 @@ alias(
alias(
name = "toml",
actual = "@crate_universe_crate_index__toml-0.5.8//:toml",
actual = "@crate_universe_crate_index__toml-0.5.9//:toml",
tags = ["manual"],
)
# Binaries
alias(
name = "cargo-lock__cargo-lock",
actual = "@crate_universe_crate_index__cargo-lock-7.0.1//:cargo-lock__bin",
actual = "@crate_universe_crate_index__cargo-lock-7.1.0//:cargo-lock__bin",
tags = ["manual"],
)
@ -165,6 +177,12 @@ alias(
tags = ["manual"],
)
alias(
name = "clap__stdio-fixture",
actual = "@crate_universe_crate_index__clap-3.1.17//:stdio-fixture__bin",
tags = ["manual"],
)
alias(
name = "phf_generator__gen_hash_test",
actual = "@crate_universe_crate_index__phf_generator-0.10.0//:gen_hash_test__bin",

View File

@ -80,7 +80,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
"@crate_universe_crate_index__memchr-2.5.0//:memchr",
],
}),
)

View File

@ -86,7 +86,7 @@ rust_library(
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__camino-1.0.7//:build_script_build",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde-1.0.137//:serde",
],
}),
)

View File

@ -76,13 +76,13 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "7.0.1",
version = "7.1.0",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__semver-1.0.7//:semver",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__toml-0.5.8//:toml",
"@crate_universe_crate_index__semver-1.0.9//:semver",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__toml-0.5.9//:toml",
"@crate_universe_crate_index__url-2.2.2//:url",
],
}),
@ -140,14 +140,14 @@ rust_binary(
"noclippy",
"norustfmt",
],
version = "7.0.1",
version = "7.1.0",
deps = [
":cargo_lock",
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__semver-1.0.7//:semver",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__toml-0.5.8//:toml",
"@crate_universe_crate_index__semver-1.0.9//:semver",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__toml-0.5.9//:toml",
"@crate_universe_crate_index__url-2.2.2//:url",
],
}),

View File

@ -79,7 +79,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde-1.0.137//:serde",
],
}),
)

View File

@ -82,9 +82,9 @@ rust_library(
"//conditions:default": [
"@crate_universe_crate_index__camino-1.0.7//:camino",
"@crate_universe_crate_index__cargo-platform-0.1.2//:cargo_platform",
"@crate_universe_crate_index__semver-1.0.7//:semver",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde_json-1.0.79//:serde_json",
"@crate_universe_crate_index__semver-1.0.9//:semver",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__serde_json-1.0.81//:serde_json",
],
}),
)

View File

@ -51,7 +51,7 @@ rust_library(
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde_derive-1.0.136//:serde_derive",
"@crate_universe_crate_index__serde_derive-1.0.137//:serde_derive",
],
}),
rustc_env = {
@ -80,8 +80,8 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__toml-0.5.8//:toml",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__toml-0.5.9//:toml",
],
}),
)

View File

@ -91,14 +91,14 @@ rust_library(
"@crate_universe_crate_index__winapi-0.3.9//:winapi",
# Common Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__num-integer-0.1.44//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__libc-0.2.125//:libc",
"@crate_universe_crate_index__num-integer-0.1.45//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
],
"//conditions:default": [
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__num-integer-0.1.44//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__libc-0.2.125//:libc",
"@crate_universe_crate_index__num-integer-0.1.45//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
],
}),
)

View File

@ -0,0 +1,186 @@
###############################################################################
# @generated
# This file is auto-generated by the cargo-bazel tool.
#
# DO NOT MODIFY: Local changes may be replaced in future executions.
###############################################################################
load(
"@bazel_skylib//lib:selects.bzl",
"selects",
)
# buildifier: disable=bzl-visibility
load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
load(
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
)
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
name = "clap",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = selects.with_or({
"//conditions:default": {
},
}),
compile_data = glob(["**"]) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
"atty",
"clap_derive",
"color",
"default",
"derive",
"env",
"lazy_static",
"std",
"strsim",
"suggestions",
"termcolor",
],
crate_root = "src/lib.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__clap_derive-3.1.7//:clap_derive",
],
}),
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",
] + select_with_or({
"//conditions:default": [
],
}),
tags = [
"cargo-bazel",
"manual",
"noclippy",
"norustfmt",
],
version = "3.1.17",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__atty-0.2.14//:atty",
"@crate_universe_crate_index__bitflags-1.3.2//:bitflags",
"@crate_universe_crate_index__clap_lex-0.2.0//:clap_lex",
"@crate_universe_crate_index__indexmap-1.8.1//:indexmap",
"@crate_universe_crate_index__lazy_static-1.4.0//:lazy_static",
"@crate_universe_crate_index__strsim-0.10.0//:strsim",
"@crate_universe_crate_index__termcolor-1.1.3//:termcolor",
"@crate_universe_crate_index__textwrap-0.15.0//:textwrap",
],
}),
)
rust_binary(
name = "stdio-fixture__bin",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = selects.with_or({
"//conditions:default": {
},
}),
compile_data = glob(["**"]) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
"atty",
"clap_derive",
"color",
"default",
"derive",
"env",
"lazy_static",
"std",
"strsim",
"suggestions",
"termcolor",
],
crate_root = "src/bin/stdio-fixture.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__clap_derive-3.1.7//:clap_derive",
],
}),
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",
] + select_with_or({
"//conditions:default": [
],
}),
tags = [
"cargo-bazel",
"manual",
"noclippy",
"norustfmt",
],
version = "3.1.17",
deps = [
":clap",
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__atty-0.2.14//:atty",
"@crate_universe_crate_index__bitflags-1.3.2//:bitflags",
"@crate_universe_crate_index__clap_lex-0.2.0//:clap_lex",
"@crate_universe_crate_index__indexmap-1.8.1//:indexmap",
"@crate_universe_crate_index__lazy_static-1.4.0//:lazy_static",
"@crate_universe_crate_index__strsim-0.10.0//:strsim",
"@crate_universe_crate_index__termcolor-1.1.3//:termcolor",
"@crate_universe_crate_index__textwrap-0.15.0//:textwrap",
],
}),
)

View File

@ -1,104 +0,0 @@
###############################################################################
# @generated
# This file is auto-generated by the cargo-bazel tool.
#
# DO NOT MODIFY: Local changes may be replaced in future executions.
###############################################################################
load(
"@bazel_skylib//lib:selects.bzl",
"selects",
)
# buildifier: disable=bzl-visibility
load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
name = "clap",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = selects.with_or({
"//conditions:default": {
},
}),
compile_data = glob(["**"]) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
"atty",
"clap_derive",
"color",
"default",
"derive",
"env",
"lazy_static",
"std",
"strsim",
"suggestions",
"termcolor",
],
crate_root = "src/lib.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__clap_derive-3.1.7//:clap_derive",
],
}),
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",
] + select_with_or({
"//conditions:default": [
],
}),
tags = [
"cargo-bazel",
"manual",
"noclippy",
"norustfmt",
],
version = "3.1.8",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__atty-0.2.14//:atty",
"@crate_universe_crate_index__bitflags-1.3.2//:bitflags",
"@crate_universe_crate_index__indexmap-1.8.1//:indexmap",
"@crate_universe_crate_index__lazy_static-1.4.0//:lazy_static",
"@crate_universe_crate_index__os_str_bytes-6.0.0//:os_str_bytes",
"@crate_universe_crate_index__strsim-0.10.0//:strsim",
"@crate_universe_crate_index__termcolor-1.1.3//:termcolor",
"@crate_universe_crate_index__textwrap-0.15.0//:textwrap",
],
}),
)

View File

@ -82,8 +82,8 @@ rust_proc_macro(
"//conditions:default": [
"@crate_universe_crate_index__heck-0.4.0//:heck",
"@crate_universe_crate_index__proc-macro-error-1.0.4//:proc_macro_error",
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.17//:quote",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.18//:quote",
"@crate_universe_crate_index__syn-1.0.90//:syn",
],
}),

View File

@ -0,0 +1,85 @@
###############################################################################
# @generated
# This file is auto-generated by the cargo-bazel tool.
#
# DO NOT MODIFY: Local changes may be replaced in future executions.
###############################################################################
load(
"@bazel_skylib//lib:selects.bzl",
"selects",
)
# buildifier: disable=bzl-visibility
load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
name = "clap_lex",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = selects.with_or({
"//conditions:default": {
},
}),
compile_data = glob(["**"]) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
],
crate_root = "src/lib.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select_with_or({
"//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",
] + select_with_or({
"//conditions:default": [
],
}),
tags = [
"cargo-bazel",
"manual",
"noclippy",
"norustfmt",
],
version = "0.2.0",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__os_str_bytes-6.0.0//:os_str_bytes",
],
}),
)

View File

@ -83,7 +83,7 @@ rust_library(
"@rules_rust//rust/platform:aarch64-apple-darwin",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],
@ -92,7 +92,7 @@ rust_library(
"@rules_rust//rust/platform:aarch64-linux-android",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],
@ -101,7 +101,7 @@ rust_library(
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],

View File

@ -51,7 +51,7 @@ rust_library(
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde_derive-1.0.136//:serde_derive",
"@crate_universe_crate_index__serde_derive-1.0.137//:serde_derive",
],
}),
rustc_env = {
@ -80,15 +80,15 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__git2-0.14.2//:git2",
"@crate_universe_crate_index__git2-0.14.3//:git2",
"@crate_universe_crate_index__hex-0.4.3//:hex",
"@crate_universe_crate_index__home-0.5.3//:home",
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
"@crate_universe_crate_index__memchr-2.5.0//:memchr",
"@crate_universe_crate_index__num_cpus-1.13.1//:num_cpus",
"@crate_universe_crate_index__rustc-hash-1.1.0//:rustc_hash",
"@crate_universe_crate_index__semver-1.0.7//:semver",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde_json-1.0.79//:serde_json",
"@crate_universe_crate_index__semver-1.0.9//:semver",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__serde_json-1.0.81//:serde_json",
"@crate_universe_crate_index__smartstring-1.0.1//:smartstring",
],
}),

View File

@ -110,7 +110,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
"@crate_universe_crate_index__cfg-if-1.0.0//:cfg_if",

View File

@ -20,7 +20,7 @@ load(
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT/Apache-2.0
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
@ -75,14 +75,14 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.14.2",
version = "0.14.3",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__bitflags-1.3.2//:bitflags",
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libgit2-sys-0.13.2-1.4.2//:libgit2_sys",
"@crate_universe_crate_index__log-0.4.16//:log",
"@crate_universe_crate_index__libc-0.2.125//:libc",
"@crate_universe_crate_index__libgit2-sys-0.13.3-1.4.2//:libgit2_sys",
"@crate_universe_crate_index__log-0.4.17//:log",
"@crate_universe_crate_index__url-2.2.2//:url",
],
}),

View File

@ -82,7 +82,7 @@ rust_library(
"@crate_universe_crate_index__aho-corasick-0.7.18//:aho_corasick",
"@crate_universe_crate_index__bstr-0.2.17//:bstr",
"@crate_universe_crate_index__fnv-1.0.7//:fnv",
"@crate_universe_crate_index__log-0.4.16//:log",
"@crate_universe_crate_index__log-0.4.17//:log",
"@crate_universe_crate_index__regex-1.5.5//:regex",
],
}),

View File

@ -80,7 +80,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
],
}),
)

View File

@ -83,7 +83,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde-1.0.137//:serde",
],
}),
)

View File

@ -80,7 +80,7 @@ rust_library(
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__matches-0.1.9//:matches",
"@crate_universe_crate_index__unicode-bidi-0.3.7//:unicode_bidi",
"@crate_universe_crate_index__unicode-bidi-0.3.8//:unicode_bidi",
"@crate_universe_crate_index__unicode-normalization-0.1.19//:unicode_normalization",
],
}),

View File

@ -90,8 +90,8 @@ rust_library(
"@crate_universe_crate_index__crossbeam-utils-0.8.8//:crossbeam_utils",
"@crate_universe_crate_index__globset-0.4.8//:globset",
"@crate_universe_crate_index__lazy_static-1.4.0//:lazy_static",
"@crate_universe_crate_index__log-0.4.16//:log",
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
"@crate_universe_crate_index__log-0.4.17//:log",
"@crate_universe_crate_index__memchr-2.5.0//:memchr",
"@crate_universe_crate_index__regex-1.5.5//:regex",
"@crate_universe_crate_index__same-file-1.0.6//:same_file",
"@crate_universe_crate_index__thread_local-1.1.4//:thread_local",
@ -101,8 +101,8 @@ rust_library(
"@crate_universe_crate_index__crossbeam-utils-0.8.8//:crossbeam_utils",
"@crate_universe_crate_index__globset-0.4.8//:globset",
"@crate_universe_crate_index__lazy_static-1.4.0//:lazy_static",
"@crate_universe_crate_index__log-0.4.16//:log",
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
"@crate_universe_crate_index__log-0.4.17//:log",
"@crate_universe_crate_index__memchr-2.5.0//:memchr",
"@crate_universe_crate_index__regex-1.5.5//:regex",
"@crate_universe_crate_index__same-file-1.0.6//:same_file",
"@crate_universe_crate_index__thread_local-1.1.4//:thread_local",

View File

@ -99,7 +99,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],

View File

@ -81,11 +81,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.2.122",
version = "0.2.125",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__libc-0.2.122//:build_script_build",
"@crate_universe_crate_index__libc-0.2.125//:build_script_build",
],
}),
)
@ -152,7 +152,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "0.2.122",
version = "0.2.125",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -20,7 +20,7 @@ load(
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT/Apache-2.0
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
@ -75,13 +75,13 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.13.2+1.4.2",
version = "0.13.3+1.4.2",
deps = [
"@libgit2",
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libz-sys-1.1.5//:libz_sys",
"@crate_universe_crate_index__libc-0.2.125//:libc",
"@crate_universe_crate_index__libz-sys-1.1.6//:libz_sys",
],
}),
)

View File

@ -76,12 +76,12 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.1.5",
version = "1.1.6",
deps = [
"@zlib",
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
],
}),
)

View File

@ -79,12 +79,12 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.4.16",
version = "0.4.17",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__cfg-if-1.0.0//:cfg_if",
"@crate_universe_crate_index__log-0.4.16//:build_script_build",
"@crate_universe_crate_index__log-0.4.17//:build_script_build",
],
}),
)
@ -149,7 +149,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "0.4.16",
version = "0.4.17",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -81,11 +81,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "2.4.1",
version = "2.5.0",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__memchr-2.4.1//:build_script_build",
"@crate_universe_crate_index__memchr-2.5.0//:build_script_build",
],
}),
)
@ -152,7 +152,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "2.4.1",
version = "2.5.0",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -0,0 +1,94 @@
###############################################################################
# @generated
# This file is auto-generated by the cargo-bazel tool.
#
# DO NOT MODIFY: Local changes may be replaced in future executions.
###############################################################################
load(
"@bazel_skylib//lib:selects.bzl",
"selects",
)
# buildifier: disable=bzl-visibility
load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
load(
"@rules_rust//rust:defs.bzl",
"rust_library",
)
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
name = "normpath",
srcs = glob(
include = [
"**/*.rs",
],
exclude = [
],
),
aliases = selects.with_or({
"//conditions:default": {
},
}),
compile_data = glob(["**"]) + select_with_or({
"//conditions:default": [
],
}),
crate_features = [
],
crate_root = "src/lib.rs",
data = select_with_or({
"//conditions:default": [
],
}),
edition = "2018",
proc_macro_deps = [
] + select_with_or({
"//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",
] + select_with_or({
"//conditions:default": [
],
}),
tags = [
"cargo-bazel",
"manual",
"noclippy",
"norustfmt",
],
version = "0.3.2",
deps = [
] + select_with_or({
# cfg(windows)
(
"@rules_rust//rust/platform:i686-pc-windows-msvc",
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
): [
# Target Deps
"@crate_universe_crate_index__winapi-0.3.9//:winapi",
# Common Deps
],
"//conditions:default": [
],
}),
)

View File

@ -89,10 +89,10 @@ rust_library(
"//conditions:default": [
"@crate_universe_crate_index__num-bigint-0.1.44//:num_bigint",
"@crate_universe_crate_index__num-complex-0.1.43//:num_complex",
"@crate_universe_crate_index__num-integer-0.1.44//:num_integer",
"@crate_universe_crate_index__num-iter-0.1.42//:num_iter",
"@crate_universe_crate_index__num-integer-0.1.45//:num_integer",
"@crate_universe_crate_index__num-iter-0.1.43//:num_iter",
"@crate_universe_crate_index__num-rational-0.1.42//:num_rational",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
],
}),
)

View File

@ -82,8 +82,8 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__num-integer-0.1.44//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__num-integer-0.1.45//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
"@crate_universe_crate_index__rand-0.4.6//:rand",
"@crate_universe_crate_index__rustc-serialize-0.3.24//:rustc_serialize",
],

View File

@ -81,7 +81,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
"@crate_universe_crate_index__rustc-serialize-0.3.24//:rustc_serialize",
],
}),

View File

@ -81,12 +81,12 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.1.44",
version = "0.1.45",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__num-integer-0.1.44//:build_script_build",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__num-integer-0.1.45//:build_script_build",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
],
}),
)
@ -153,7 +153,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "0.1.44",
version = "0.1.45",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -81,13 +81,13 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.1.42",
version = "0.1.43",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__num-integer-0.1.44//:num_integer",
"@crate_universe_crate_index__num-iter-0.1.42//:build_script_build",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__num-integer-0.1.45//:num_integer",
"@crate_universe_crate_index__num-iter-0.1.43//:build_script_build",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
],
}),
)
@ -154,7 +154,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "0.1.42",
version = "0.1.43",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -84,8 +84,8 @@ rust_library(
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__num-bigint-0.1.44//:num_bigint",
"@crate_universe_crate_index__num-integer-0.1.44//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.14//:num_traits",
"@crate_universe_crate_index__num-integer-0.1.45//:num_integer",
"@crate_universe_crate_index__num-traits-0.2.15//:num_traits",
"@crate_universe_crate_index__rustc-serialize-0.3.24//:rustc_serialize",
],
}),

View File

@ -81,11 +81,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.2.14",
version = "0.2.15",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__num-traits-0.2.14//:build_script_build",
"@crate_universe_crate_index__num-traits-0.2.15//:build_script_build",
],
}),
)
@ -152,7 +152,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "0.2.14",
version = "0.2.15",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -106,7 +106,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],

View File

@ -41,8 +41,6 @@ rust_library(
],
}),
crate_features = [
"default",
"memchr",
"raw_os_str",
],
crate_root = "src/lib.rs",
@ -82,7 +80,6 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
],
}),
)

View File

@ -81,8 +81,8 @@ rust_library(
"//conditions:default": [
"@crate_universe_crate_index__pest-2.1.3//:pest",
"@crate_universe_crate_index__pest_meta-2.1.3//:pest_meta",
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.17//:quote",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.18//:quote",
"@crate_universe_crate_index__syn-1.0.90//:syn",
],
}),

View File

@ -88,8 +88,8 @@ rust_library(
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__proc-macro-error-1.0.4//:build_script_build",
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.17//:quote",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.18//:quote",
"@crate_universe_crate_index__syn-1.0.90//:syn",
],
}),

View File

@ -84,8 +84,8 @@ rust_proc_macro(
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__proc-macro-error-attr-1.0.4//:build_script_build",
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.17//:quote",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.18//:quote",
],
}),
)

View File

@ -81,12 +81,12 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.37",
version = "1.0.38",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__proc-macro2-1.0.37//:build_script_build",
"@crate_universe_crate_index__unicode-xid-0.2.2//:unicode_xid",
"@crate_universe_crate_index__proc-macro2-1.0.38//:build_script_build",
"@crate_universe_crate_index__unicode-xid-0.2.3//:unicode_xid",
],
}),
)
@ -153,7 +153,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "1.0.37",
version = "1.0.38",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -77,11 +77,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.17",
version = "1.0.18",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
],
}),
)

View File

@ -112,7 +112,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
],

View File

@ -107,7 +107,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
"@crate_universe_crate_index__rand_chacha-0.3.1//:rand_chacha",

View File

@ -97,7 +97,7 @@ rust_library(
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__aho-corasick-0.7.18//:aho_corasick",
"@crate_universe_crate_index__memchr-2.4.1//:memchr",
"@crate_universe_crate_index__memchr-2.5.0//:memchr",
"@crate_universe_crate_index__regex-syntax-0.6.25//:regex_syntax",
],
}),

View File

@ -82,12 +82,12 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.7",
version = "1.0.9",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__semver-1.0.7//:build_script_build",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__semver-1.0.9//:build_script_build",
"@crate_universe_crate_index__serde-1.0.137//:serde",
],
}),
)
@ -155,7 +155,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "1.0.7",
version = "1.0.9",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -60,7 +60,7 @@ rust_library(
proc_macro_deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde_derive-1.0.136//:serde_derive",
"@crate_universe_crate_index__serde_derive-1.0.137//:serde_derive",
],
}),
rustc_env = {
@ -85,11 +85,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.136",
version = "1.0.137",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde-1.0.136//:build_script_build",
"@crate_universe_crate_index__serde-1.0.137//:build_script_build",
],
}),
)
@ -159,7 +159,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "1.0.136",
version = "1.0.137",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -80,13 +80,13 @@ rust_proc_macro(
"noclippy",
"norustfmt",
],
version = "1.0.136",
version = "1.0.137",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.17//:quote",
"@crate_universe_crate_index__serde_derive-1.0.136//:build_script_build",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.18//:quote",
"@crate_universe_crate_index__serde_derive-1.0.137//:build_script_build",
"@crate_universe_crate_index__syn-1.0.90//:syn",
],
}),
@ -153,7 +153,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "1.0.136",
version = "1.0.137",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -82,14 +82,14 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.0.79",
version = "1.0.81",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__itoa-1.0.1//:itoa",
"@crate_universe_crate_index__ryu-1.0.9//:ryu",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde_json-1.0.79//:build_script_build",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__serde_json-1.0.81//:build_script_build",
],
}),
)
@ -157,7 +157,7 @@ cargo_build_script(
"//conditions:default": [
],
}),
version = "1.0.79",
version = "1.0.81",
visibility = ["//visibility:private"],
deps = [
] + select_with_or({

View File

@ -86,7 +86,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__smartstring-1.0.1//:build_script_build",
"@crate_universe_crate_index__static_assertions-1.1.0//:static_assertions",
],

View File

@ -91,10 +91,10 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__proc-macro2-1.0.37//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.17//:quote",
"@crate_universe_crate_index__proc-macro2-1.0.38//:proc_macro2",
"@crate_universe_crate_index__quote-1.0.18//:quote",
"@crate_universe_crate_index__syn-1.0.90//:build_script_build",
"@crate_universe_crate_index__unicode-xid-0.2.2//:unicode_xid",
"@crate_universe_crate_index__unicode-xid-0.2.3//:unicode_xid",
],
}),
)

View File

@ -100,7 +100,7 @@ rust_library(
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
): [
# Target Deps
"@crate_universe_crate_index__libc-0.2.122//:libc",
"@crate_universe_crate_index__libc-0.2.125//:libc",
# Common Deps
"@crate_universe_crate_index__cfg-if-1.0.0//:cfg_if",

View File

@ -97,8 +97,8 @@ rust_library(
"@crate_universe_crate_index__pest-2.1.3//:pest",
"@crate_universe_crate_index__rand-0.8.5//:rand",
"@crate_universe_crate_index__regex-1.5.5//:regex",
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde_json-1.0.79//:serde_json",
"@crate_universe_crate_index__serde-1.0.137//:serde",
"@crate_universe_crate_index__serde_json-1.0.81//:serde_json",
"@crate_universe_crate_index__slug-0.1.4//:slug",
"@crate_universe_crate_index__unic-segment-0.9.0//:unic_segment",
],

View File

@ -78,7 +78,7 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "1.5.1",
version = "1.6.0",
deps = [
] + select_with_or({
"//conditions:default": [

View File

@ -76,11 +76,11 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.5.8",
version = "0.5.9",
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__serde-1.0.136//:serde",
"@crate_universe_crate_index__serde-1.0.137//:serde",
],
}),
)

View File

@ -20,7 +20,7 @@ load(
package(default_visibility = ["//visibility:public"])
# licenses([
# "TODO", # MIT / Apache-2.0
# "TODO", # MIT OR Apache-2.0
# ])
rust_library(
@ -42,6 +42,7 @@ rust_library(
}),
crate_features = [
"default",
"hardcoded-data",
"std",
],
crate_root = "src/lib.rs",
@ -77,7 +78,7 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.3.7",
version = "0.3.8",
deps = [
] + select_with_or({
"//conditions:default": [

View File

@ -81,7 +81,7 @@ rust_library(
deps = [
] + select_with_or({
"//conditions:default": [
"@crate_universe_crate_index__tinyvec-1.5.1//:tinyvec",
"@crate_universe_crate_index__tinyvec-1.6.0//:tinyvec",
],
}),
)

View File

@ -76,7 +76,7 @@ rust_library(
"noclippy",
"norustfmt",
],
version = "0.2.2",
version = "0.2.3",
deps = [
] + select_with_or({
"//conditions:default": [

View File

@ -287,38 +287,39 @@ def aliases(
_NORMAL_DEPENDENCIES = {
"crate_universe": {
_COMMON_CONDITION: {
"anyhow": "@crate_universe_crate_index__anyhow-1.0.56//:anyhow",
"cargo-lock": "@crate_universe_crate_index__cargo-lock-7.0.1//:cargo_lock",
"anyhow": "@crate_universe_crate_index__anyhow-1.0.57//:anyhow",
"cargo-lock": "@crate_universe_crate_index__cargo-lock-7.1.0//:cargo_lock",
"cargo-platform": "@crate_universe_crate_index__cargo-platform-0.1.2//:cargo_platform",
"cargo_metadata": "@crate_universe_crate_index__cargo_metadata-0.14.2//:cargo_metadata",
"cargo_toml": "@crate_universe_crate_index__cargo_toml-0.11.5//:cargo_toml",
"cfg-expr": "@crate_universe_crate_index__cfg-expr-0.10.2//:cfg_expr",
"clap": "@crate_universe_crate_index__clap-3.1.8//:clap",
"clap": "@crate_universe_crate_index__clap-3.1.17//:clap",
"crates-index": "@crate_universe_crate_index__crates-index-0.18.7//:crates_index",
"hex": "@crate_universe_crate_index__hex-0.4.3//:hex",
"normpath": "@crate_universe_crate_index__normpath-0.3.2//:normpath",
"pathdiff": "@crate_universe_crate_index__pathdiff-0.2.1//:pathdiff",
"regex": "@crate_universe_crate_index__regex-1.5.5//:regex",
"semver": "@crate_universe_crate_index__semver-1.0.7//:semver",
"serde": "@crate_universe_crate_index__serde-1.0.136//:serde",
"serde_json": "@crate_universe_crate_index__serde_json-1.0.79//:serde_json",
"semver": "@crate_universe_crate_index__semver-1.0.9//:semver",
"serde": "@crate_universe_crate_index__serde-1.0.137//:serde",
"serde_json": "@crate_universe_crate_index__serde_json-1.0.81//:serde_json",
"sha2": "@crate_universe_crate_index__sha2-0.10.2//:sha2",
"syn": "@crate_universe_crate_index__syn-1.0.90//:syn",
"tempfile": "@crate_universe_crate_index__tempfile-3.3.0//:tempfile",
"tera": "@crate_universe_crate_index__tera-1.15.0//:tera",
"textwrap": "@crate_universe_crate_index__textwrap-0.15.0//:textwrap",
"toml": "@crate_universe_crate_index__toml-0.5.8//:toml",
"toml": "@crate_universe_crate_index__toml-0.5.9//:toml",
},
},
"crate_universe/tools/cross_installer": {
_COMMON_CONDITION: {
"clap": "@crate_universe_crate_index__clap-3.1.8//:clap",
"clap": "@crate_universe_crate_index__clap-3.1.17//:clap",
},
},
"crate_universe/tools/urls_generator": {
_COMMON_CONDITION: {
"clap": "@crate_universe_crate_index__clap-3.1.8//:clap",
"clap": "@crate_universe_crate_index__clap-3.1.17//:clap",
"hex": "@crate_universe_crate_index__hex-0.4.3//:hex",
"serde_json": "@crate_universe_crate_index__serde_json-1.0.79//:serde_json",
"serde_json": "@crate_universe_crate_index__serde_json-1.0.81//:serde_json",
"sha2": "@crate_universe_crate_index__sha2-0.10.2//:sha2",
},
},
@ -342,6 +343,7 @@ _NORMAL_ALIASES = {
_NORMAL_DEV_DEPENDENCIES = {
"crate_universe": {
_COMMON_CONDITION: {
"maplit": "@crate_universe_crate_index__maplit-1.0.2//:maplit",
"spectral": "@crate_universe_crate_index__spectral-0.6.0//:spectral",
},
},
@ -472,12 +474,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__anyhow-1.0.56",
sha256 = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27",
name = "crate_universe_crate_index__anyhow-1.0.57",
sha256 = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/anyhow/1.0.56/download"],
strip_prefix = "anyhow-1.0.56",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.anyhow-1.0.56.bazel"),
urls = ["https://crates.io/api/v1/crates/anyhow/1.0.57/download"],
strip_prefix = "anyhow-1.0.57",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.anyhow-1.0.57.bazel"),
)
maybe(
@ -582,12 +584,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__cargo-lock-7.0.1",
sha256 = "7fb04b88bd5b2036e30704f95c6ee16f3b5ca3b4ca307da2889d9006648e5c88",
name = "crate_universe_crate_index__cargo-lock-7.1.0",
sha256 = "6c408da54db4c50d4693f7e649c299bc9de9c23ead86249e5368830bb32a734b",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/cargo-lock/7.0.1/download"],
strip_prefix = "cargo-lock-7.0.1",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.cargo-lock-7.0.1.bazel"),
urls = ["https://crates.io/api/v1/crates/cargo-lock/7.1.0/download"],
strip_prefix = "cargo-lock-7.1.0",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.cargo-lock-7.1.0.bazel"),
)
maybe(
@ -682,12 +684,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__clap-3.1.8",
sha256 = "71c47df61d9e16dc010b55dba1952a57d8c215dbb533fd13cdd13369aac73b1c",
name = "crate_universe_crate_index__clap-3.1.17",
sha256 = "47582c09be7c8b32c0ab3a6181825ababb713fde6fff20fc573a3870dd45c6a0",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/clap/3.1.8/download"],
strip_prefix = "clap-3.1.8",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.clap-3.1.8.bazel"),
urls = ["https://crates.io/api/v1/crates/clap/3.1.17/download"],
strip_prefix = "clap-3.1.17",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.clap-3.1.17.bazel"),
)
maybe(
@ -700,6 +702,16 @@ def crate_repositories():
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.clap_derive-3.1.7.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__clap_lex-0.2.0",
sha256 = "a37c35f1112dad5e6e0b1adaff798507497a18fceeb30cceb3bae7d1427b9213",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/clap_lex/0.2.0/download"],
strip_prefix = "clap_lex-0.2.0",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.clap_lex-0.2.0.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__cpufeatures-0.2.2",
@ -852,12 +864,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__git2-0.14.2",
sha256 = "3826a6e0e2215d7a41c2bfc7c9244123969273f3476b939a226aac0ab56e9e3c",
name = "crate_universe_crate_index__git2-0.14.3",
sha256 = "5e77a14ffc6ba4ad5188d6cf428894c4fcfda725326b37558f35bb677e712cec",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/git2/0.14.2/download"],
strip_prefix = "git2-0.14.2",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.git2-0.14.2.bazel"),
urls = ["https://crates.io/api/v1/crates/git2/0.14.3/download"],
strip_prefix = "git2-0.14.3",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.git2-0.14.3.bazel"),
)
maybe(
@ -1012,42 +1024,42 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__libc-0.2.122",
sha256 = "ec647867e2bf0772e28c8bcde4f0d19a9216916e890543b5a03ed8ef27b8f259",
name = "crate_universe_crate_index__libc-0.2.125",
sha256 = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/libc/0.2.122/download"],
strip_prefix = "libc-0.2.122",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.libc-0.2.122.bazel"),
urls = ["https://crates.io/api/v1/crates/libc/0.2.125/download"],
strip_prefix = "libc-0.2.125",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.libc-0.2.125.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__libgit2-sys-0.13.2-1.4.2",
sha256 = "3a42de9a51a5c12e00fc0e4ca6bc2ea43582fc6418488e8f615e905d886f258b",
name = "crate_universe_crate_index__libgit2-sys-0.13.3-1.4.2",
sha256 = "c24d36c3ac9b9996a2418d6bf428cc0bc5d1a814a84303fc60986088c5ed60de",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/libgit2-sys/0.13.2+1.4.2/download"],
strip_prefix = "libgit2-sys-0.13.2+1.4.2",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.libgit2-sys-0.13.2+1.4.2.bazel"),
urls = ["https://crates.io/api/v1/crates/libgit2-sys/0.13.3+1.4.2/download"],
strip_prefix = "libgit2-sys-0.13.3+1.4.2",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.libgit2-sys-0.13.3+1.4.2.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__libz-sys-1.1.5",
sha256 = "6f35facd4a5673cb5a48822be2be1d4236c1c99cb4113cab7061ac720d5bf859",
name = "crate_universe_crate_index__libz-sys-1.1.6",
sha256 = "92e7e15d7610cce1d9752e137625f14e61a28cd45929b6e12e47b50fe154ee2e",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/libz-sys/1.1.5/download"],
strip_prefix = "libz-sys-1.1.5",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.libz-sys-1.1.5.bazel"),
urls = ["https://crates.io/api/v1/crates/libz-sys/1.1.6/download"],
strip_prefix = "libz-sys-1.1.6",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.libz-sys-1.1.6.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__log-0.4.16",
sha256 = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8",
name = "crate_universe_crate_index__log-0.4.17",
sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/log/0.4.16/download"],
strip_prefix = "log-0.4.16",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.log-0.4.16.bazel"),
urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"],
strip_prefix = "log-0.4.17",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.log-0.4.17.bazel"),
)
maybe(
@ -1072,12 +1084,22 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__memchr-2.4.1",
sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a",
name = "crate_universe_crate_index__memchr-2.5.0",
sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/memchr/2.4.1/download"],
strip_prefix = "memchr-2.4.1",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.memchr-2.4.1.bazel"),
urls = ["https://crates.io/api/v1/crates/memchr/2.5.0/download"],
strip_prefix = "memchr-2.5.0",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.memchr-2.5.0.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__normpath-0.3.2",
sha256 = "04aaf5e9cb0fbf883cc0423159eacdf96a9878022084b35c462c428cab73bcaf",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/normpath/0.3.2/download"],
strip_prefix = "normpath-0.3.2",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.normpath-0.3.2.bazel"),
)
maybe(
@ -1112,22 +1134,22 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__num-integer-0.1.44",
sha256 = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db",
name = "crate_universe_crate_index__num-integer-0.1.45",
sha256 = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/num-integer/0.1.44/download"],
strip_prefix = "num-integer-0.1.44",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.num-integer-0.1.44.bazel"),
urls = ["https://crates.io/api/v1/crates/num-integer/0.1.45/download"],
strip_prefix = "num-integer-0.1.45",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.num-integer-0.1.45.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__num-iter-0.1.42",
sha256 = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59",
name = "crate_universe_crate_index__num-iter-0.1.43",
sha256 = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/num-iter/0.1.42/download"],
strip_prefix = "num-iter-0.1.42",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.num-iter-0.1.42.bazel"),
urls = ["https://crates.io/api/v1/crates/num-iter/0.1.43/download"],
strip_prefix = "num-iter-0.1.43",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.num-iter-0.1.43.bazel"),
)
maybe(
@ -1142,12 +1164,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__num-traits-0.2.14",
sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290",
name = "crate_universe_crate_index__num-traits-0.2.15",
sha256 = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/num-traits/0.2.14/download"],
strip_prefix = "num-traits-0.2.14",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.num-traits-0.2.14.bazel"),
urls = ["https://crates.io/api/v1/crates/num-traits/0.2.15/download"],
strip_prefix = "num-traits-0.2.15",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.num-traits-0.2.15.bazel"),
)
maybe(
@ -1342,22 +1364,22 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__proc-macro2-1.0.37",
sha256 = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1",
name = "crate_universe_crate_index__proc-macro2-1.0.38",
sha256 = "9027b48e9d4c9175fa2218adf3557f91c1137021739951d4932f5f8268ac48aa",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.37/download"],
strip_prefix = "proc-macro2-1.0.37",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.proc-macro2-1.0.37.bazel"),
urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.38/download"],
strip_prefix = "proc-macro2-1.0.38",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.proc-macro2-1.0.38.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__quote-1.0.17",
sha256 = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58",
name = "crate_universe_crate_index__quote-1.0.18",
sha256 = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/quote/1.0.17/download"],
strip_prefix = "quote-1.0.17",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.quote-1.0.17.bazel"),
urls = ["https://crates.io/api/v1/crates/quote/1.0.18/download"],
strip_prefix = "quote-1.0.18",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.quote-1.0.18.bazel"),
)
maybe(
@ -1512,42 +1534,42 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__semver-1.0.7",
sha256 = "d65bd28f48be7196d222d95b9243287f48d27aca604e08497513019ff0502cc4",
name = "crate_universe_crate_index__semver-1.0.9",
sha256 = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/semver/1.0.7/download"],
strip_prefix = "semver-1.0.7",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.semver-1.0.7.bazel"),
urls = ["https://crates.io/api/v1/crates/semver/1.0.9/download"],
strip_prefix = "semver-1.0.9",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.semver-1.0.9.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__serde-1.0.136",
sha256 = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789",
name = "crate_universe_crate_index__serde-1.0.137",
sha256 = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/serde/1.0.136/download"],
strip_prefix = "serde-1.0.136",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.serde-1.0.136.bazel"),
urls = ["https://crates.io/api/v1/crates/serde/1.0.137/download"],
strip_prefix = "serde-1.0.137",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.serde-1.0.137.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__serde_derive-1.0.136",
sha256 = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9",
name = "crate_universe_crate_index__serde_derive-1.0.137",
sha256 = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.136/download"],
strip_prefix = "serde_derive-1.0.136",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.serde_derive-1.0.136.bazel"),
urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.137/download"],
strip_prefix = "serde_derive-1.0.137",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.serde_derive-1.0.137.bazel"),
)
maybe(
http_archive,
name = "crate_universe_crate_index__serde_json-1.0.79",
sha256 = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95",
name = "crate_universe_crate_index__serde_json-1.0.81",
sha256 = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/serde_json/1.0.79/download"],
strip_prefix = "serde_json-1.0.79",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.serde_json-1.0.79.bazel"),
urls = ["https://crates.io/api/v1/crates/serde_json/1.0.81/download"],
strip_prefix = "serde_json-1.0.81",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.serde_json-1.0.81.bazel"),
)
maybe(
@ -1712,12 +1734,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__tinyvec-1.5.1",
sha256 = "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2",
name = "crate_universe_crate_index__tinyvec-1.6.0",
sha256 = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/tinyvec/1.5.1/download"],
strip_prefix = "tinyvec-1.5.1",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.tinyvec-1.5.1.bazel"),
urls = ["https://crates.io/api/v1/crates/tinyvec/1.6.0/download"],
strip_prefix = "tinyvec-1.6.0",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"),
)
maybe(
@ -1732,12 +1754,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__toml-0.5.8",
sha256 = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa",
name = "crate_universe_crate_index__toml-0.5.9",
sha256 = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/toml/0.5.8/download"],
strip_prefix = "toml-0.5.8",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.toml-0.5.8.bazel"),
urls = ["https://crates.io/api/v1/crates/toml/0.5.9/download"],
strip_prefix = "toml-0.5.9",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.toml-0.5.9.bazel"),
)
maybe(
@ -1832,12 +1854,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__unicode-bidi-0.3.7",
sha256 = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f",
name = "crate_universe_crate_index__unicode-bidi-0.3.8",
sha256 = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/unicode-bidi/0.3.7/download"],
strip_prefix = "unicode-bidi-0.3.7",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.unicode-bidi-0.3.7.bazel"),
urls = ["https://crates.io/api/v1/crates/unicode-bidi/0.3.8/download"],
strip_prefix = "unicode-bidi-0.3.8",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.unicode-bidi-0.3.8.bazel"),
)
maybe(
@ -1872,12 +1894,12 @@ def crate_repositories():
maybe(
http_archive,
name = "crate_universe_crate_index__unicode-xid-0.2.2",
sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3",
name = "crate_universe_crate_index__unicode-xid-0.2.3",
sha256 = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04",
type = "tar.gz",
urls = ["https://crates.io/api/v1/crates/unicode-xid/0.2.2/download"],
strip_prefix = "unicode-xid-0.2.2",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.unicode-xid-0.2.2.bazel"),
urls = ["https://crates.io/api/v1/crates/unicode-xid/0.2.3/download"],
strip_prefix = "unicode-xid-0.2.3",
build_file = Label("@rules_rust//crate_universe/3rdparty/crates:BUILD.unicode-xid-0.2.3.bazel"),
)
maybe(

View File

@ -113,6 +113,8 @@ dependencies = [
"clap",
"crates-index",
"hex",
"maplit",
"normpath",
"pathdiff",
"regex",
"semver",
@ -615,6 +617,15 @@ version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
[[package]]
name = "normpath"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04aaf5e9cb0fbf883cc0423159eacdf96a9878022084b35c462c428cab73bcaf"
dependencies = [
"winapi",
]
[[package]]
name = "num"
version = "0.1.42"

View File

@ -28,6 +28,7 @@ cfg-expr = "0.10.2"
clap = { version = "3.1.6", features = ["derive", "env"] }
crates-index = { version = "0.18.7", default-features = false }
hex = "0.4.3"
normpath = "0.3"
pathdiff = "0.2.1"
regex = "1.5.5"
semver = "1.0.6"
@ -45,4 +46,5 @@ toml = "0.5.8"
syn = "=1.0.90"
[dev-dependencies]
maplit = "1"
spectral = "0.6.0"

View File

@ -6,6 +6,7 @@ use std::path::{Path, PathBuf};
use anyhow::{bail, Context, Result};
use cargo_toml::{Dependency, Manifest};
use normpath::PathExt;
use crate::config::CrateId;
use crate::splicing::{SplicedManifest, SplicingManifest};
@ -87,38 +88,22 @@ impl<'a> SplicerKind<'a> {
bail!("A package was provided that appears to be a part of another workspace.\nworkspace root: '{}'\nexternal packages: {:#?}", root_manifest_path.display(), external_workspace_members)
}
// Ensure all workspace members are present for the given workspace
let workspace_members = root_manifest.workspace.as_ref().unwrap().members.clone();
let missing_manifests: BTreeSet<String> = workspace_members
.into_iter()
.filter(|member| {
// Check for any members that are missing from the list of manifests
!manifests.keys().any(|path| {
let path_str = path.to_string_lossy().to_string();
// Account for windows paths.
let path_str = path_str.replace('\\', "/");
// Workspace members are represented as directories.
path_str.trim_end_matches("/Cargo.toml").ends_with(member)
// UNWRAP: Safe because a Cargo.toml file must have a parent directory.
let root_manifest_dir = root_manifest_path.parent().unwrap();
let missing_manifests = Self::find_missing_manifests(
root_manifest,
root_manifest_dir,
&manifests
.keys()
.map(|p| {
p.normalize()
.with_context(|| format!("Failed to normalize path {:?}", p))
})
})
.filter_map(|path_str| {
// UNWRAP: Safe because a Cargo.toml file must have a parent directory.
let cargo_manifest_dir = root_manifest_path.parent().unwrap();
let label = Label::from_absolute_path(
&cargo_manifest_dir.join(path_str).join("Cargo.toml"),
);
match label {
Ok(label) => Some(label.to_string()),
Err(err) => {
eprintln!("Failed to identify label for missing manifest: {}", err);
None
}
}
})
.collect();
.collect::<Result<_, _>>()?,
)
.context("Identifying missing manifests")?;
if !missing_manifests.is_empty() {
bail!("Some manifests are not being tracked. Please add the following labels to the `manifests` key: {:#?}", missing_manifests)
bail!("Some manifests are not being tracked. Please add the following labels to the `manifests` key: {:#?}", missing_manifests);
}
root_workspace_pair = Some((root_manifest_path, root_manifest));
@ -148,6 +133,43 @@ impl<'a> SplicerKind<'a> {
}
}
fn find_missing_manifests(
root_manifest: &Manifest,
root_manifest_dir: &Path,
known_manifest_paths: &BTreeSet<normpath::BasePathBuf>,
) -> Result<BTreeSet<String>> {
let workspace_manifest_paths = root_manifest
.workspace
.as_ref()
.unwrap()
.members
.iter()
.map(|member| {
let path = root_manifest_dir.join(member).join("Cargo.toml");
path.normalize()
.with_context(|| format!("Failed to normalize path {:?}", path))
})
.collect::<Result<BTreeSet<normpath::BasePathBuf>, _>>()?;
// Ensure all workspace members are present for the given workspace
workspace_manifest_paths
.into_iter()
.filter(|workspace_manifest_path| {
!known_manifest_paths.contains(workspace_manifest_path)
})
.map(|workspace_manifest_path| {
let label = Label::from_absolute_path(workspace_manifest_path.as_path())
.with_context(|| {
format!(
"Failed to identify label for path {:?}",
workspace_manifest_path
)
})?;
Ok(label.to_string())
})
.collect()
}
/// Performs splicing based on the current variant.
pub fn splice(&self, workspace_dir: &Path) -> Result<SplicedManifest> {
match self {
@ -745,6 +767,7 @@ mod test {
use std::str::FromStr;
use cargo_metadata::{MetadataCommand, PackageId};
use maplit::btreeset;
use crate::splicing::ExtraManifestInfo;
use crate::utils::starlark::Label;
@ -1562,4 +1585,210 @@ mod test {
assert!(err_str.contains(&format!("Workspace = {}", workspace_root.display())));
assert!(err_str.contains(&format!("Cargo config = {}", external_config.display())));
}
#[test]
fn find_missing_manifests_correct_without_root() {
let temp_dir = tempfile::tempdir().unwrap();
let root_manifest_dir = temp_dir.path();
touch(&root_manifest_dir.join("WORKSPACE.bazel"));
touch(&root_manifest_dir.join("BUILD.bazel"));
touch(&root_manifest_dir.join("Cargo.toml"));
touch(&root_manifest_dir.join("foo").join("Cargo.toml"));
touch(&root_manifest_dir.join("bar").join("BUILD.bazel"));
touch(&root_manifest_dir.join("bar").join("Cargo.toml"));
let known_manifest_paths = btreeset![
root_manifest_dir
.join("foo")
.join("Cargo.toml")
.normalize()
.unwrap(),
root_manifest_dir
.join("bar")
.join("Cargo.toml")
.normalize()
.unwrap(),
];
let root_manifest: cargo_toml::Manifest = toml::toml! {
[workspace]
members = [
"foo",
"bar",
]
[package]
name = "root_pkg"
version = "0.0.1"
[lib]
path = "lib.rs"
}
.try_into()
.unwrap();
let missing_manifests = SplicerKind::find_missing_manifests(
&root_manifest,
root_manifest_dir,
&known_manifest_paths,
)
.unwrap();
assert_eq!(missing_manifests, btreeset![]);
}
#[test]
fn find_missing_manifests_correct_with_root() {
let temp_dir = tempfile::tempdir().unwrap();
let root_manifest_dir = temp_dir.path();
touch(&root_manifest_dir.join("WORKSPACE.bazel"));
touch(&root_manifest_dir.join("BUILD.bazel"));
touch(&root_manifest_dir.join("Cargo.toml"));
touch(&root_manifest_dir.join("foo").join("Cargo.toml"));
touch(&root_manifest_dir.join("bar").join("BUILD.bazel"));
touch(&root_manifest_dir.join("bar").join("Cargo.toml"));
let known_manifest_paths = btreeset![
root_manifest_dir.join("Cargo.toml").normalize().unwrap(),
root_manifest_dir
.join("foo")
.join("Cargo.toml")
.normalize()
.unwrap(),
root_manifest_dir
.join("bar")
.join("Cargo.toml")
.normalize()
.unwrap(),
];
let root_manifest: cargo_toml::Manifest = toml::toml! {
[workspace]
members = [
".",
"foo",
"bar",
]
[package]
name = "root_pkg"
version = "0.0.1"
[lib]
path = "lib.rs"
}
.try_into()
.unwrap();
let missing_manifests = SplicerKind::find_missing_manifests(
&root_manifest,
root_manifest_dir,
&known_manifest_paths,
)
.unwrap();
assert_eq!(missing_manifests, btreeset![]);
}
#[test]
fn find_missing_manifests_missing_root() {
let temp_dir = tempfile::tempdir().unwrap();
let root_manifest_dir = temp_dir.path();
touch(&root_manifest_dir.join("WORKSPACE.bazel"));
touch(&root_manifest_dir.join("BUILD.bazel"));
touch(&root_manifest_dir.join("Cargo.toml"));
touch(&root_manifest_dir.join("foo").join("Cargo.toml"));
touch(&root_manifest_dir.join("bar").join("BUILD.bazel"));
touch(&root_manifest_dir.join("bar").join("Cargo.toml"));
let known_manifest_paths = btreeset![
root_manifest_dir
.join("foo")
.join("Cargo.toml")
.normalize()
.unwrap(),
root_manifest_dir
.join("bar")
.join("Cargo.toml")
.normalize()
.unwrap(),
];
let root_manifest: cargo_toml::Manifest = toml::toml! {
[workspace]
members = [
".",
"foo",
"bar",
]
[package]
name = "root_pkg"
version = "0.0.1"
[lib]
path = "lib.rs"
}
.try_into()
.unwrap();
let missing_manifests = SplicerKind::find_missing_manifests(
&root_manifest,
root_manifest_dir,
&known_manifest_paths,
)
.unwrap();
assert_eq!(missing_manifests, btreeset![String::from("//:Cargo.toml")]);
}
#[test]
fn find_missing_manifests_missing_nonroot() {
let temp_dir = tempfile::tempdir().unwrap();
let root_manifest_dir = temp_dir.path();
touch(&root_manifest_dir.join("WORKSPACE.bazel"));
touch(&root_manifest_dir.join("BUILD.bazel"));
touch(&root_manifest_dir.join("Cargo.toml"));
touch(&root_manifest_dir.join("foo").join("Cargo.toml"));
touch(&root_manifest_dir.join("bar").join("BUILD.bazel"));
touch(&root_manifest_dir.join("bar").join("Cargo.toml"));
touch(&root_manifest_dir.join("baz").join("BUILD.bazel"));
touch(&root_manifest_dir.join("baz").join("Cargo.toml"));
let known_manifest_paths = btreeset![
root_manifest_dir
.join("foo")
.join("Cargo.toml")
.normalize()
.unwrap(),
root_manifest_dir
.join("bar")
.join("Cargo.toml")
.normalize()
.unwrap(),
];
let root_manifest: cargo_toml::Manifest = toml::toml! {
[workspace]
members = [
"foo",
"bar",
"baz",
]
[package]
name = "root_pkg"
version = "0.0.1"
[lib]
path = "lib.rs"
}
.try_into()
.unwrap();
let missing_manifests = SplicerKind::find_missing_manifests(
&root_manifest,
root_manifest_dir,
&known_manifest_paths,
)
.unwrap();
assert_eq!(
missing_manifests,
btreeset![String::from("//baz:Cargo.toml")]
);
}
fn touch(path: &Path) {
std::fs::create_dir_all(path.parent().unwrap()).unwrap();
std::fs::write(path, &[]).unwrap();
}
}

View File

@ -7,6 +7,8 @@ use regex::Regex;
use serde::de::Visitor;
use serde::{Deserialize, Serialize, Serializer};
// Note that this type assumes there's no such thing as a relative label;
// `:foo` is assumed to be relative to the repo root, and parses out to equivalent to `//:foo`.
#[derive(Debug, Default, PartialEq, Eq, PartialOrd, Ord, Clone)]
pub struct Label {
pub repository: Option<String>,
@ -52,19 +54,21 @@ impl FromStr for Label {
impl Display for Label {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut label = String::new();
// Add the repository
if let Some(repo) = &self.repository {
label = format!("@{}", repo);
write!(f, "@{}", repo)?;
}
write!(f, "//")?;
// Add the package
if let Some(pkg) = &self.package {
label = format!("{}//{}", label, pkg);
write!(f, "{}", pkg)?;
}
write!(f, "{}:{}", &label, &self.target,)
write!(f, ":{}", self.target)?;
Ok(())
}
}
@ -190,6 +194,7 @@ mod test {
#[test]
fn full_label() {
let label = Label::from_str("@repo//package/sub_package:target").unwrap();
assert_eq!(label.to_string(), "@repo//package/sub_package:target");
assert_eq!(label.repository.unwrap(), "repo");
assert_eq!(label.package.unwrap(), "package/sub_package");
assert_eq!(label.target, "target");
@ -198,6 +203,7 @@ mod test {
#[test]
fn no_repository() {
let label = Label::from_str("//package:target").unwrap();
assert_eq!(label.to_string(), "//package:target");
assert_eq!(label.repository, None);
assert_eq!(label.package.unwrap(), "package");
assert_eq!(label.target, "target");
@ -206,6 +212,7 @@ mod test {
#[test]
fn no_slashes() {
let label = Label::from_str("package:target").unwrap();
assert_eq!(label.to_string(), "//package:target");
assert_eq!(label.repository, None);
assert_eq!(label.package.unwrap(), "package");
assert_eq!(label.target, "target");
@ -214,6 +221,7 @@ mod test {
#[test]
fn root_label() {
let label = Label::from_str("@repo//:target").unwrap();
assert_eq!(label.to_string(), "@repo//:target");
assert_eq!(label.repository.unwrap(), "repo");
assert_eq!(label.package, None);
assert_eq!(label.target, "target");
@ -222,6 +230,7 @@ mod test {
#[test]
fn root_label_no_repository() {
let label = Label::from_str("//:target").unwrap();
assert_eq!(label.to_string(), "//:target");
assert_eq!(label.repository, None);
assert_eq!(label.package, None);
assert_eq!(label.target, "target");
@ -230,6 +239,7 @@ mod test {
#[test]
fn root_label_no_slashes() {
let label = Label::from_str(":target").unwrap();
assert_eq!(label.to_string(), "//:target");
assert_eq!(label.repository, None);
assert_eq!(label.package, None);
assert_eq!(label.target, "target");
@ -238,6 +248,10 @@ mod test {
#[test]
fn full_label_with_slash_after_colon() {
let label = Label::from_str("@repo//package/sub_package:subdir/target").unwrap();
assert_eq!(
label.to_string(),
"@repo//package/sub_package:subdir/target"
);
assert_eq!(label.repository.unwrap(), "repo");
assert_eq!(label.package.unwrap(), "package/sub_package");
assert_eq!(label.target, "subdir/target");