Squashed 'third_party/rules_rust/' content from commit bf59038ca
git-subtree-dir: third_party/rules_rust
git-subtree-split: bf59038cac11798cbaef9f3bf965bad8182b97fa
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
Change-Id: I5a20e403203d670df467ea97dde9a4ac40339a8d
diff --git a/examples/.bazelignore b/examples/.bazelignore
new file mode 100644
index 0000000..65f8fb8
--- /dev/null
+++ b/examples/.bazelignore
@@ -0,0 +1,2 @@
+cargo_manifest_dir/external_crate
+crate_universe
diff --git a/examples/.bazelrc b/examples/.bazelrc
new file mode 100644
index 0000000..30c4a08
--- /dev/null
+++ b/examples/.bazelrc
@@ -0,0 +1,14 @@
+# `.bazelrc` is a Bazel configuration file.
+# https://bazel.build/docs/best-practices#bazelrc-file
+
+# Enable rustfmt for all targets in the workspace
+build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:rustfmt --output_groups=+rustfmt_checks
+
+# Enable clippy for all targets in the workspace
+build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:clippy --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/BUILD.bazel b/examples/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/BUILD.bazel
diff --git a/examples/WORKSPACE.bazel b/examples/WORKSPACE.bazel
new file mode 100644
index 0000000..47dec43
--- /dev/null
+++ b/examples/WORKSPACE.bazel
@@ -0,0 +1,126 @@
+workspace(name = "examples")
+
+# Users of `rules_rust` will commonly be unable to load it
+# using a `local_repository`. Instead, to setup the rules,
+# please see https://bazelbuild.github.io/rules_rust/#setup
+local_repository(
+ name = "rules_rust",
+ path = "..",
+)
+
+load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
+
+rules_rust_dependencies()
+
+rust_register_toolchains(include_rustc_srcs = True)
+
+load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_repositories")
+
+rust_bindgen_repositories()
+
+load("@rules_rust//proto:repositories.bzl", "rust_proto_repositories")
+
+rust_proto_repositories()
+
+load("@rules_rust//proto:transitive_repositories.bzl", "rust_proto_transitive_repositories")
+
+rust_proto_transitive_repositories()
+
+load("@rules_rust//wasm_bindgen:repositories.bzl", "rust_wasm_bindgen_repositories")
+
+rust_wasm_bindgen_repositories()
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+###############################################################################
+# Workspace examples
+###############################################################################
+
+# buildifier: disable=same-origin-load
+load("@rules_rust//rust:repositories.bzl", "rust_repository_set")
+
+# `rust_repository_set` is the core repository rule for downloading and defining
+# a rust_toolchain. Should there be a need for a customized toolchain, this macro can
+# be used to define and register one.
+rust_repository_set(
+ name = "fake_toolchain_for_test_of_sha256",
+ edition = "2018",
+ exec_triple = "x86_64-unknown-linux-gnu",
+ extra_target_triples = [],
+ rustfmt_version = "1.4.12",
+ sha256s = {
+ "rust-1.46.0-x86_64-unknown-linux-gnu": "e3b98bc3440fe92817881933f9564389eccb396f5f431f33d48b979fa2fbdcf5",
+ "rust-std-1.46.0-x86_64-unknown-linux-gnu": "ac04aef80423f612c0079829b504902de27a6997214eb58ab0765d02f7ec1dbc",
+ "rustfmt-1.4.12-x86_64-unknown-linux-gnu": "1894e76913303d66bf40885a601462844eec15fca9e76a6d13c390d7000d64b0",
+ },
+ version = "1.46.0",
+)
+
+###############################################################################
+# Examples dependencies
+###############################################################################
+
+load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
+
+node_repositories()
+
+http_archive(
+ name = "rules_foreign_cc",
+ sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f",
+ strip_prefix = "rules_foreign_cc-0.6.0",
+ url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.6.0.tar.gz",
+)
+
+load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
+
+rules_foreign_cc_dependencies()
+
+load("//sys:sys_deps.bzl", "sys_deps")
+
+sys_deps()
+
+local_repository(
+ name = "rules_rust_example_cargo_manifest_dir",
+ path = "cargo_manifest_dir/external_crate",
+)
+
+_LIBC_BUILD_FILE_CONTENT = """\
+load("@rules_rust//rust:defs.bzl", "rust_library")
+
+rust_library(
+ name = "libc",
+ srcs = glob(["src/**/*.rs"]),
+ edition = "2015",
+ visibility = ["//visibility:public"],
+)
+"""
+
+http_archive(
+ name = "libc",
+ build_file_content = _LIBC_BUILD_FILE_CONTENT,
+ sha256 = "1ac4c2ac6ed5a8fb9020c166bc63316205f1dc78d4b964ad31f4f21eb73f0c6d",
+ strip_prefix = "libc-0.2.20",
+ urls = [
+ "https://mirror.bazel.build/github.com/rust-lang/libc/archive/0.2.20.zip",
+ "https://github.com/rust-lang/libc/archive/0.2.20.zip",
+ ],
+)
+
+###############################################################################
+
+http_archive(
+ name = "bazel_toolchains",
+ sha256 = "179ec02f809e86abf56356d8898c8bd74069f1bd7c56044050c2cd3d79d0e024",
+ strip_prefix = "bazel-toolchains-4.1.0",
+ urls = [
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz",
+ "https://github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz",
+ ],
+)
+
+load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
+
+# Creates a default toolchain config for RBE.
+# Use this as is if you are using the rbe_ubuntu16_04 container,
+# otherwise refer to RBE docs.
+rbe_autoconfig(name = "buildkite_config")
diff --git a/examples/ambiguous_deps/BUILD.bazel b/examples/ambiguous_deps/BUILD.bazel
new file mode 100644
index 0000000..0cf4b47
--- /dev/null
+++ b/examples/ambiguous_deps/BUILD.bazel
@@ -0,0 +1,40 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+# A rust_binary that depends on two native libs with the same name.
+# See https://github.com/bazelbuild/rules_rust/issues/840.
+rust_binary(
+ name = "bin_with_same_name_deps",
+ srcs = ["bin.rs"],
+ deps = [
+ "//ambiguous_deps/x:exc",
+ "//ambiguous_deps/y:exc",
+ ],
+)
+
+# A rust_binary that depends on a native library with a name that doesn't
+# match the `lib<name>.a` pattern on linux.
+rust_binary(
+ name = "nonstandard_name_bin",
+ srcs = ["nonstandard_name_bin.rs"],
+ deps = [":nonstandard_name_intermediate"],
+)
+
+cc_library(
+ name = "nonstandard_name_cc_lib",
+ srcs = ["cc_library_with_func.cc"],
+)
+
+genrule(
+ name = "nonstandard_name_gen",
+ srcs = [":nonstandard_name_cc_lib"],
+ outs = ["nonstandard_name_gen.a"],
+ # Copy the first member (libnonstandard_name_cc_lib.a) from the srcs to the
+ # output nonstandard_name_gen.a.
+ cmd = "cp $$(awk '{print $$1}' <<< '$(SRCS)') $@",
+)
+
+cc_library(
+ name = "nonstandard_name_intermediate",
+ srcs = [":nonstandard_name_gen.a"],
+)
diff --git a/examples/ambiguous_deps/bin.rs b/examples/ambiguous_deps/bin.rs
new file mode 100644
index 0000000..8f69444
--- /dev/null
+++ b/examples/ambiguous_deps/bin.rs
@@ -0,0 +1,10 @@
+use std::os::raw::c_int;
+
+extern "C" {
+ pub fn cx() -> c_int;
+ pub fn cy() -> c_int;
+}
+
+fn main() {
+ println!("hi {} {}", unsafe { cx() }, unsafe { cy() });
+}
diff --git a/examples/ambiguous_deps/cc_library_with_func.cc b/examples/ambiguous_deps/cc_library_with_func.cc
new file mode 100644
index 0000000..536fa93
--- /dev/null
+++ b/examples/ambiguous_deps/cc_library_with_func.cc
@@ -0,0 +1,3 @@
+extern "C" int func() {
+ return 123;
+}
diff --git a/examples/ambiguous_deps/nonstandard_name_bin.rs b/examples/ambiguous_deps/nonstandard_name_bin.rs
new file mode 100644
index 0000000..2c07702
--- /dev/null
+++ b/examples/ambiguous_deps/nonstandard_name_bin.rs
@@ -0,0 +1,9 @@
+use std::os::raw::c_int;
+
+extern "C" {
+ pub fn func() -> c_int;
+}
+
+fn main() {
+ println!("hi {}", unsafe { func() });
+}
diff --git a/examples/ambiguous_deps/x/BUILD.bazel b/examples/ambiguous_deps/x/BUILD.bazel
new file mode 100644
index 0000000..87ae07c
--- /dev/null
+++ b/examples/ambiguous_deps/x/BUILD.bazel
@@ -0,0 +1,7 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
+ name = "exc",
+ srcs = ["exc.cc"],
+ visibility = ["//ambiguous_deps:__subpackages__"],
+)
diff --git a/examples/ambiguous_deps/x/exc.cc b/examples/ambiguous_deps/x/exc.cc
new file mode 100644
index 0000000..2b67c34
--- /dev/null
+++ b/examples/ambiguous_deps/x/exc.cc
@@ -0,0 +1 @@
+extern "C" int cx() { return 17; }
diff --git a/examples/ambiguous_deps/y/BUILD.bazel b/examples/ambiguous_deps/y/BUILD.bazel
new file mode 100644
index 0000000..87ae07c
--- /dev/null
+++ b/examples/ambiguous_deps/y/BUILD.bazel
@@ -0,0 +1,7 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
+ name = "exc",
+ srcs = ["exc.cc"],
+ visibility = ["//ambiguous_deps:__subpackages__"],
+)
diff --git a/examples/ambiguous_deps/y/exc.cc b/examples/ambiguous_deps/y/exc.cc
new file mode 100644
index 0000000..903ed08
--- /dev/null
+++ b/examples/ambiguous_deps/y/exc.cc
@@ -0,0 +1 @@
+extern "C" int cy() { return 113; }
diff --git a/examples/bindgen/BUILD.bazel b/examples/bindgen/BUILD.bazel
new file mode 100644
index 0000000..1a62c78
--- /dev/null
+++ b/examples/bindgen/BUILD.bazel
@@ -0,0 +1,52 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_library")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
+
+cc_library(
+ name = "simple",
+ srcs = ["simple.h"],
+)
+
+rust_bindgen_library(
+ name = "simple_bindgen",
+ bindgen_flags = [
+ "--allowlist-var=SIMPLE_.*",
+ ],
+ cc_lib = ":simple",
+ header = "simple.h",
+)
+
+rust_binary(
+ name = "simple_example",
+ srcs = ["main.rs"],
+ deps = [":simple_bindgen"],
+)
+
+rust_test(
+ name = "simple_test",
+ crate = ":simple_example",
+)
+
+# Same as above, except disabling formatting on bindgen.
+rust_bindgen_library(
+ name = "simple_bindgen_unformatted",
+ bindgen_flags = [
+ "--allowlist-var=SIMPLE_.*",
+ ],
+ cc_lib = ":simple",
+ crate_name = "simple_bindgen",
+ header = "simple.h",
+ rustfmt = False,
+)
+
+rust_binary(
+ name = "simple_example_unformatted",
+ srcs = ["main.rs"],
+ crate_name = "simple_example",
+ deps = [":simple_bindgen_unformatted"],
+)
+
+rust_test(
+ name = "simple_test_unformatted",
+ crate = ":simple_example_unformatted",
+)
diff --git a/examples/bindgen/main.rs b/examples/bindgen/main.rs
new file mode 100644
index 0000000..fb93ce4
--- /dev/null
+++ b/examples/bindgen/main.rs
@@ -0,0 +1,11 @@
+fn main() {
+ println!("The value is {}!", simple_bindgen::SIMPLE_VALUE);
+}
+
+#[cfg(test)]
+mod test {
+ #[test]
+ fn do_the_test() {
+ assert_eq!(42, simple_bindgen::SIMPLE_VALUE);
+ }
+}
diff --git a/examples/bindgen/simple.h b/examples/bindgen/simple.h
new file mode 100644
index 0000000..072f9ea
--- /dev/null
+++ b/examples/bindgen/simple.h
@@ -0,0 +1,3 @@
+#include <stdint.h>
+
+const int64_t SIMPLE_VALUE = 42;
diff --git a/examples/cargo/BUILD.bazel b/examples/cargo/BUILD.bazel
new file mode 100644
index 0000000..463841f
--- /dev/null
+++ b/examples/cargo/BUILD.bazel
@@ -0,0 +1,24 @@
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+cargo_build_script(
+ name = "build_script",
+ srcs = ["build_script.rs"],
+ build_script_env = {"SOME_ENV": "42"},
+ crate_features = ["bleh"],
+ data = ["test.txt"],
+)
+
+rust_library(
+ name = "lib",
+ srcs = ["lib.rs"],
+ deps = [":build_script"],
+)
+
+rust_test(
+ name = "test",
+ crate = ":lib",
+)
diff --git a/examples/cargo/build_script.rs b/examples/cargo/build_script.rs
new file mode 100644
index 0000000..1ede7e3
--- /dev/null
+++ b/examples/cargo/build_script.rs
@@ -0,0 +1,35 @@
+// Copyright 2020 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+use std::env;
+use std::fs::File;
+use std::io::prelude::*;
+
+fn main() {
+ let bleh = env::var("CARGO_FEATURE_BLEH").unwrap();
+ let some_env = env::var("SOME_ENV").unwrap();
+ let out_dir = env::var("OUT_DIR").unwrap();
+ let data = std::fs::read("test.txt").unwrap();
+ assert!(!bleh.is_empty());
+ assert_eq!(some_env, "42");
+ println!(
+ r#"cargo:rustc-env=FOO=BAR
+cargo:rustc-env=BAR=FOO
+cargo:rustc-flags=--cfg=blah="bleh"
+cargo:rustc-flags=--cfg=data="{}"
+cargo:rustc-cfg=foobar"#,
+ std::str::from_utf8(&data).unwrap()
+ );
+ let mut file = File::create(format!("{}/hello.world.txt", out_dir)).unwrap();
+ file.write_all(b"Hello, world!").unwrap();
+}
diff --git a/examples/cargo/lib.rs b/examples/cargo/lib.rs
new file mode 100644
index 0000000..3bb21d3
--- /dev/null
+++ b/examples/cargo/lib.rs
@@ -0,0 +1,39 @@
+// Copyright 2020 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// theoretically this should be safe, as unit tests are built without
+// optimizations
+#![allow(clippy::assertions_on_constants)]
+mod test {
+ #[test]
+ fn test_env_contents() {
+ assert_eq!(env!("FOO"), "BAR");
+ assert_eq!(env!("BAR"), "FOO");
+ }
+
+ #[test]
+ fn test_cfg_contents() {
+ assert!(cfg!(foobar));
+ }
+
+ #[test]
+ fn test_rustc_contents() {
+ assert!(cfg!(blah = "bleh"));
+ }
+
+ #[test]
+ fn test_access_data() {
+ assert!(cfg!(data = "Yeah!"));
+ }
+}
diff --git a/examples/cargo/test.txt b/examples/cargo/test.txt
new file mode 100644
index 0000000..2eda9ce
--- /dev/null
+++ b/examples/cargo/test.txt
@@ -0,0 +1 @@
+Yeah!
\ No newline at end of file
diff --git a/examples/cargo_manifest_dir/external_crate/BUILD.bazel b/examples/cargo_manifest_dir/external_crate/BUILD.bazel
new file mode 100644
index 0000000..ca5ab63
--- /dev/null
+++ b/examples/cargo_manifest_dir/external_crate/BUILD.bazel
@@ -0,0 +1,8 @@
+load("@rules_rust//rust:defs.bzl", "rust_library")
+
+rust_library(
+ name = "external_crate",
+ srcs = ["src/lib.rs"],
+ data = ["include/included_file.rs.inc"],
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/cargo_manifest_dir/external_crate/WORKSPACE.bazel b/examples/cargo_manifest_dir/external_crate/WORKSPACE.bazel
new file mode 100644
index 0000000..38395cc
--- /dev/null
+++ b/examples/cargo_manifest_dir/external_crate/WORKSPACE.bazel
@@ -0,0 +1,10 @@
+workspace(name = "rules_rust_example_cargo_manifest_dir")
+
+local_repository(
+ name = "rules_rust",
+ path = "../../../",
+)
+
+load("@rules_rust//rust:repositories.bzl", "rust_repositories")
+
+rust_repositories()
diff --git a/examples/cargo_manifest_dir/external_crate/include/included_file.rs.inc b/examples/cargo_manifest_dir/external_crate/include/included_file.rs.inc
new file mode 100644
index 0000000..4091ebb
--- /dev/null
+++ b/examples/cargo_manifest_dir/external_crate/include/included_file.rs.inc
@@ -0,0 +1 @@
+I love veggies!
diff --git a/examples/cargo_manifest_dir/external_crate/src/lib.rs b/examples/cargo_manifest_dir/external_crate/src/lib.rs
new file mode 100644
index 0000000..d453fdd
--- /dev/null
+++ b/examples/cargo_manifest_dir/external_crate/src/lib.rs
@@ -0,0 +1,6 @@
+pub fn get_included_str() -> &'static str {
+ include_str!(concat!(
+ env!("CARGO_MANIFEST_DIR"),
+ "/include/included_file.rs.inc"
+ ))
+}
diff --git a/examples/cargo_manifest_dir/usage/BUILD.bazel b/examples/cargo_manifest_dir/usage/BUILD.bazel
new file mode 100644
index 0000000..c88ccb7
--- /dev/null
+++ b/examples/cargo_manifest_dir/usage/BUILD.bazel
@@ -0,0 +1,8 @@
+load("@rules_rust//rust:defs.bzl", "rust_test")
+
+rust_test(
+ name = "cargo_manifest_dir_usage",
+ srcs = ["src/lib.rs"],
+ edition = "2018",
+ deps = ["@rules_rust_example_cargo_manifest_dir//:external_crate"],
+)
diff --git a/examples/cargo_manifest_dir/usage/src/lib.rs b/examples/cargo_manifest_dir/usage/src/lib.rs
new file mode 100644
index 0000000..20e902a
--- /dev/null
+++ b/examples/cargo_manifest_dir/usage/src/lib.rs
@@ -0,0 +1,6 @@
+use external_crate::get_included_str;
+
+#[test]
+fn test_lib_with_include() {
+ assert_eq!(get_included_str(), "I love veggies!\n")
+}
diff --git a/examples/crate_universe/.bazelrc b/examples/crate_universe/.bazelrc
new file mode 100644
index 0000000..30c4a08
--- /dev/null
+++ b/examples/crate_universe/.bazelrc
@@ -0,0 +1,14 @@
+# `.bazelrc` is a Bazel configuration file.
+# https://bazel.build/docs/best-practices#bazelrc-file
+
+# Enable rustfmt for all targets in the workspace
+build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:rustfmt --output_groups=+rustfmt_checks
+
+# Enable clippy for all targets in the workspace
+build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:clippy --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/.gitignore b/examples/crate_universe/.gitignore
new file mode 100644
index 0000000..ac51a05
--- /dev/null
+++ b/examples/crate_universe/.gitignore
@@ -0,0 +1 @@
+bazel-*
diff --git a/examples/crate_universe/BUILD.bazel b/examples/crate_universe/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/crate_universe/BUILD.bazel
diff --git a/examples/crate_universe/README.md b/examples/crate_universe/README.md
new file mode 100644
index 0000000..df635b4
--- /dev/null
+++ b/examples/crate_universe/README.md
@@ -0,0 +1 @@
+# Examples
diff --git a/examples/crate_universe/WORKSPACE.bazel b/examples/crate_universe/WORKSPACE.bazel
new file mode 100644
index 0000000..40b4b08
--- /dev/null
+++ b/examples/crate_universe/WORKSPACE.bazel
@@ -0,0 +1,344 @@
+workspace(name = "examples")
+
+local_repository(
+ name = "rules_rust",
+ path = "../../",
+)
+
+load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
+
+rules_rust_dependencies()
+
+rust_register_toolchains(include_rustc_srcs = True)
+
+load("@rules_rust//crate_universe:crates.bzl", "crate_deps_repository")
+
+crate_deps_repository()
+
+load("@rules_rust//crate_universe:crates_deps.bzl", "crate_repositories")
+
+crate_repositories()
+
+load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository", "splicing_config")
+
+###############################################################################
+# C A R G O A L I A S E S
+###############################################################################
+
+crates_repository(
+ name = "cargo_aliases",
+ annotations = {
+ "names": [crate.annotation(
+ shallow_since = "1646516410 -0700",
+ version = "0.12.1-dev",
+ )],
+ },
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "//cargo_aliases:Cargo.Bazel.lock",
+ manifests = ["//cargo_aliases:Cargo.toml"],
+)
+
+load(
+ "@cargo_aliases//:defs.bzl",
+ cargo_aliases_crate_repositories = "crate_repositories",
+)
+
+cargo_aliases_crate_repositories()
+
+###############################################################################
+# C A R G O L O C A L
+###############################################################################
+
+crates_repository(
+ name = "crate_index_cargo_local",
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "//cargo_local:Cargo.lock",
+ lockfile_kind = "cargo",
+ manifests = ["//cargo_local:Cargo.toml"],
+)
+
+load(
+ "@crate_index_cargo_local//:defs.bzl",
+ cargo_local_crate_repositories = "crate_repositories",
+)
+
+cargo_local_crate_repositories()
+
+###############################################################################
+# C A R G O R E M O T E
+###############################################################################
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+http_archive(
+ name = "names",
+ build_file = "//cargo_remote:BUILD.names.bazel",
+ sha256 = "eab40caca5805624ba31d028913931c3d054b22daafff6f43e3435cfa9fb761e",
+ strip_prefix = "names-0.13.0",
+ urls = ["https://github.com/fnichol/names/archive/refs/tags/v0.13.0.zip"],
+)
+
+crates_repository(
+ name = "crate_index_cargo_remote",
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "@names//:Cargo.lock",
+ lockfile_kind = "cargo",
+ manifests = ["@names//:Cargo.toml"],
+)
+
+load(
+ "@crate_index_cargo_remote//:defs.bzl",
+ cargo_remote_crate_repositories = "crate_repositories",
+)
+
+cargo_remote_crate_repositories()
+
+###############################################################################
+# C A R G O W O R K S P A C E
+###############################################################################
+
+crates_repository(
+ name = "crate_index_cargo_workspace",
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "//cargo_workspace:Cargo.Bazel.lock",
+ manifests = [
+ "//cargo_workspace:Cargo.toml",
+ "//cargo_workspace/num_printer:Cargo.toml",
+ "//cargo_workspace/printer:Cargo.toml",
+ "//cargo_workspace/rng:Cargo.toml",
+ ],
+)
+
+load(
+ "@crate_index_cargo_workspace//:defs.bzl",
+ cargo_workspace_crate_repositories = "crate_repositories",
+)
+
+cargo_workspace_crate_repositories()
+
+###############################################################################
+# E X T R A W O R K S P A C E M E M B E R S
+###############################################################################
+
+crates_repository(
+ name = "crate_index_extra_members",
+ extra_workspace_members = {
+ "texture-synthesis-cli": crate.workspace_member(
+ sha256 = "a7dbdf13f5e6f214750fce1073279b71ce3076157a8d337c9b0f0e14334e2aec",
+ version = "0.8.2",
+ ),
+ },
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "//extra_workspace_members:Cargo.Bazel.lock",
+ manifests = ["//extra_workspace_members:Cargo.toml"],
+)
+
+load(
+ "@crate_index_extra_members//:defs.bzl",
+ extra_workspace_members_crate_repositories = "crate_repositories",
+)
+
+extra_workspace_members_crate_repositories()
+
+###############################################################################
+# M U L T I P A C K A G E
+###############################################################################
+
+crates_repository(
+ # The name here needs to be short to avoid long path issues on windows
+ # when running the `libnghttp2-sys` build script.
+ name = "m_pkgs",
+ annotations = {
+ "curl-sys": [crate.annotation(
+ gen_build_script = False,
+ deps = [
+ "@curl",
+ "@libssh2",
+ ],
+ )],
+ "lalrpop": [crate.annotation(
+ data_glob = ["**/*.lalrpop"],
+ )],
+ "libnghttp2-sys": [crate.annotation(
+ build_script_data_glob = ["nghttp2/**"],
+ data_glob = ["nghttp2/**"],
+ )],
+ "openssl-sys": [crate.annotation(
+ build_script_data = [
+ "@openssl//:gen_dir",
+ "@openssl//:openssl",
+ ],
+ build_script_data_glob = ["build/**/*.c"],
+ build_script_env = {
+ "OPENSSL_DIR": "$(execpath @openssl//:gen_dir)",
+ "OPENSSL_STATIC": "1",
+ },
+ data = ["@openssl"],
+ deps = ["@openssl"],
+ )],
+ "wepoll-ffi": [crate.annotation(
+ build_script_data_glob = ["vendor/**"],
+ )],
+ },
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "//multi_package:Cargo.Bazel.lock",
+ manifests = [
+ "//multi_package/pkg_a:Cargo.toml",
+ "//multi_package/sub_pkgs/pkg_b:Cargo.toml",
+ "//multi_package/sub_pkgs/pkg_c:Cargo.toml",
+ ],
+)
+
+load(
+ "@m_pkgs//:defs.bzl",
+ multi_pkg_crate_repositories = "crate_repositories",
+)
+
+multi_pkg_crate_repositories()
+
+# ForeignCc is used to build OpenSSL
+http_archive(
+ name = "rules_foreign_cc",
+ sha256 = "1df78c7d7eed2dc21b8b325a2853c31933a81e7b780f9a59a5d078be9008b13a",
+ strip_prefix = "rules_foreign_cc-0.7.0",
+ url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.0.tar.gz",
+)
+
+load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
+
+rules_foreign_cc_dependencies()
+
+# Load OpenSSL and other 3rd party dependencies
+load("//multi_package/3rdparty:third_party_deps.bzl", "third_party_deps")
+
+third_party_deps()
+
+# perl is used to build openssl
+http_archive(
+ name = "rules_perl",
+ sha256 = "55fbe071971772758ad669615fc9aac9b126db6ae45909f0f36de499f6201dd3",
+ strip_prefix = "rules_perl-2f4f36f454375e678e81e5ca465d4d497c5c02da",
+ urls = [
+ "https://github.com/bazelbuild/rules_perl/archive/2f4f36f454375e678e81e5ca465d4d497c5c02da.tar.gz",
+ ],
+)
+
+load("@rules_perl//perl:deps.bzl", "perl_register_toolchains", "perl_rules_dependencies")
+
+perl_rules_dependencies()
+
+perl_register_toolchains()
+
+###############################################################################
+# N O C A R G O M A N I F E S T S
+###############################################################################
+
+crates_repository(
+ name = "no_cargo",
+ annotations = {
+ "axum": [crate.annotation(
+ compile_data_glob = ["**/*.md"],
+ )],
+ },
+ # `generator` is not necessary in official releases.
+ # See load satement for `cargo_bazel_bootstrap`.
+ generator = "@cargo_bazel_bootstrap//:cargo-bazel",
+ lockfile = "//no_cargo_manifests:Cargo.Bazel.lock",
+ packages = {
+ "axum": crate.spec(
+ version = "0.4.0",
+ ),
+ "hyper": crate.spec(
+ features = ["full"],
+ version = "0.14",
+ ),
+ "mime": crate.spec(
+ version = "0.3",
+ ),
+ "serde_json": crate.spec(
+ version = "1.0",
+ ),
+ "tokio": crate.spec(
+ features = ["full"],
+ version = "1.17.0",
+ ),
+ "tower": crate.spec(
+ features = ["util"],
+ version = "0.4",
+ ),
+ "tower-http": crate.spec(
+ features = ["trace"],
+ version = "0.2.1",
+ ),
+ "tracing": crate.spec(
+ version = "0.1",
+ ),
+ "tracing-subscriber": crate.spec(
+ version = "0.3",
+ ),
+ },
+ splicing_config = splicing_config(
+ resolver_version = "2",
+ ),
+)
+
+load(
+ "@no_cargo//:defs.bzl",
+ no_cargo_crate_repositories = "crate_repositories",
+)
+
+no_cargo_crate_repositories()
+
+###############################################################################
+# V E N D O R R E M O T E M A N I F E S T S
+###############################################################################
+
+load(
+ "//vendor_remote_manifests/crates:crates.bzl",
+ crates_vendor_manifests_repositories = "crate_repositories",
+)
+
+crates_vendor_manifests_repositories()
+
+###############################################################################
+# V E N D O R R E M O T E P A C K A G E S
+###############################################################################
+
+load(
+ "//vendor_remote_pkgs/crates:crates.bzl",
+ crates_vendor_packages_repositories = "crate_repositories",
+)
+
+crates_vendor_packages_repositories()
+
+###############################################################################
+
+# Used for Bazel CI
+http_archive(
+ name = "bazel_toolchains",
+ sha256 = "179ec02f809e86abf56356d8898c8bd74069f1bd7c56044050c2cd3d79d0e024",
+ strip_prefix = "bazel-toolchains-4.1.0",
+ urls = [
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz",
+ "https://github.com/bazelbuild/bazel-toolchains/releases/download/4.1.0/bazel-toolchains-4.1.0.tar.gz",
+ ],
+)
+
+load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
+
+# Creates a default toolchain config for RBE.
+# Use this as is if you are using the rbe_ubuntu16_04 container,
+# otherwise refer to RBE docs.
+rbe_autoconfig(name = "buildkite_config")
diff --git a/examples/crate_universe/cargo_aliases/.bazelrc b/examples/crate_universe/cargo_aliases/.bazelrc
new file mode 100644
index 0000000..d63c809
--- /dev/null
+++ b/examples/crate_universe/cargo_aliases/.bazelrc
@@ -0,0 +1,13 @@
+# A config file containing Bazel settings
+
+# Enable rustfmt
+build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:strict --output_groups=+rustfmt_checks
+
+# Enable clippy
+build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:strict --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/cargo_aliases/BUILD.bazel b/examples/crate_universe/cargo_aliases/BUILD.bazel
new file mode 100644
index 0000000..3325478
--- /dev/null
+++ b/examples/crate_universe/cargo_aliases/BUILD.bazel
@@ -0,0 +1,26 @@
+load("@bazel_skylib//rules:build_test.bzl", "build_test")
+load("@cargo_aliases//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+rust_library(
+ name = "aliases",
+ srcs = glob(["**/*.rs"]),
+ aliases = aliases(),
+ edition = "2018",
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ aliases = aliases(),
+ crate = ":aliases",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ deps = all_crate_deps(normal_dev = True),
+)
+
+# Ensures that Bazel aliases from the crates_repository are actually usable.
+build_test(
+ name = "names_build_test",
+ targets = ["@cargo_aliases//:names"],
+)
diff --git a/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock b/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock
new file mode 100644
index 0000000..596b054
--- /dev/null
+++ b/examples/crate_universe/cargo_aliases/Cargo.Bazel.lock
@@ -0,0 +1,2535 @@
+{
+ "checksum": "ba701df4681897610cd747b83f18fcb46468e975284b0ed0b596bcfaefe2a881",
+ "crates": {
+ "aho-corasick 0.7.18": {
+ "name": "aho-corasick",
+ "version": "0.7.18",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/aho-corasick/0.7.18/download",
+ "sha256": "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "aho_corasick",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "aho_corasick",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.7.18"
+ },
+ "license": "Unlicense/MIT"
+ },
+ "aliases 0.1.0": {
+ "name": "aliases",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "aliases",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "aliases",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.3.9",
+ "target": "log",
+ "alias": "pinned_log"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "names 0.12.1-dev",
+ "target": "names",
+ "alias": "pinned_names"
+ },
+ {
+ "id": "names 0.13.0",
+ "target": "names"
+ },
+ {
+ "id": "value-bag 1.0.0-alpha.7",
+ "target": "value_bag"
+ }
+ ],
+ "selects": {}
+ },
+ "deps_dev": {
+ "common": [
+ {
+ "id": "env_logger 0.9.0",
+ "target": "env_logger"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "atty 0.2.14": {
+ "name": "atty",
+ "version": "0.2.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/atty/0.2.14/download",
+ "sha256": "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "atty",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "atty",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"hermit\")": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.2.14"
+ },
+ "license": "MIT"
+ },
+ "autocfg 1.1.0": {
+ "name": "autocfg",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/autocfg/1.1.0/download",
+ "sha256": "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "autocfg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "autocfg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "bitflags 1.3.2": {
+ "name": "bitflags",
+ "version": "1.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bitflags/1.3.2/download",
+ "sha256": "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bitflags",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bitflags",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "1.3.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "cfg-if 1.0.0": {
+ "name": "cfg-if",
+ "version": "1.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
+ "sha256": "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cfg_if",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cfg_if",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "clap 3.1.6": {
+ "name": "clap",
+ "version": "3.1.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/clap/3.1.6/download",
+ "sha256": "d8c93436c21e4698bacadf42917db28b23017027a4deccb35dbe47a7e7840123"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "clap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "clap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "atty",
+ "clap_derive",
+ "color",
+ "default",
+ "derive",
+ "lazy_static",
+ "std",
+ "strsim",
+ "suggestions",
+ "termcolor"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "atty 0.2.14",
+ "target": "atty"
+ },
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "indexmap"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "os_str_bytes 6.0.0",
+ "target": "os_str_bytes"
+ },
+ {
+ "id": "strsim 0.10.0",
+ "target": "strsim"
+ },
+ {
+ "id": "termcolor 1.1.3",
+ "target": "termcolor"
+ },
+ {
+ "id": "textwrap 0.15.0",
+ "target": "textwrap"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "clap_derive 3.1.4",
+ "target": "clap_derive"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "3.1.6"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "clap_derive 3.1.4": {
+ "name": "clap_derive",
+ "version": "3.1.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/clap_derive/3.1.4/download",
+ "sha256": "da95d038ede1a964ce99f49cbe27a7fb538d1da595e4b4f70b8c8f338d17bf16"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "clap_derive",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "clap_derive",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "heck 0.4.0",
+ "target": "heck"
+ },
+ {
+ "id": "proc-macro-error 1.0.4",
+ "target": "proc_macro_error"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "3.1.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "ctor 0.1.21": {
+ "name": "ctor",
+ "version": "0.1.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ctor/0.1.21/download",
+ "sha256": "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "ctor",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ctor",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.21"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "env_logger 0.9.0": {
+ "name": "env_logger",
+ "version": "0.9.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/env_logger/0.9.0/download",
+ "sha256": "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "env_logger",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "env_logger",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "atty",
+ "default",
+ "humantime",
+ "regex",
+ "termcolor"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "atty 0.2.14",
+ "target": "atty"
+ },
+ {
+ "id": "humantime 2.1.0",
+ "target": "humantime"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ },
+ {
+ "id": "termcolor 1.1.3",
+ "target": "termcolor"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.9.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "getrandom 0.2.5": {
+ "name": "getrandom",
+ "version": "0.2.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/getrandom/0.2.5/download",
+ "sha256": "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "getrandom",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "getrandom",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ }
+ ],
+ "selects": {
+ "cfg(target_os = \"wasi\")": [
+ {
+ "id": "wasi 0.10.2+wasi-snapshot-preview1",
+ "target": "wasi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.2.5"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "hashbrown 0.11.2": {
+ "name": "hashbrown",
+ "version": "0.11.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hashbrown/0.11.2/download",
+ "sha256": "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hashbrown",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hashbrown",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "raw"
+ ],
+ "edition": "2018",
+ "version": "0.11.2"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "heck 0.4.0": {
+ "name": "heck",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/heck/0.4.0/download",
+ "sha256": "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "heck",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "heck",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "0.4.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "hermit-abi 0.1.19": {
+ "name": "hermit-abi",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download",
+ "sha256": "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hermit_abi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hermit_abi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "humantime 2.1.0": {
+ "name": "humantime",
+ "version": "2.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/humantime/2.1.0/download",
+ "sha256": "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "humantime",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "humantime",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "2.1.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "indexmap 1.8.0": {
+ "name": "indexmap",
+ "version": "1.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/indexmap/1.8.0/download",
+ "sha256": "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "indexmap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "indexmap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "hashbrown 0.11.2",
+ "target": "hashbrown"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.8.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "lazy_static 1.4.0": {
+ "name": "lazy_static",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lazy_static/1.4.0/download",
+ "sha256": "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lazy_static",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lazy_static",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.4.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "libc 0.2.119": {
+ "name": "libc",
+ "version": "0.2.119",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libc/0.2.119/download",
+ "sha256": "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.119"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "log 0.3.9": {
+ "name": "log",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/log/0.3.9/download",
+ "sha256": "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "log",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "log",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "use_std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.3.9"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "log 0.4.14": {
+ "name": "log",
+ "version": "0.4.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/log/0.4.14/download",
+ "sha256": "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "log",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "log",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.14"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "memchr 2.4.1": {
+ "name": "memchr",
+ "version": "2.4.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/memchr/2.4.1/download",
+ "sha256": "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "memchr",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "memchr",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.4.1"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Unlicense/MIT"
+ },
+ "names 0.12.1-dev": {
+ "name": "names",
+ "version": "0.12.1-dev",
+ "repository": {
+ "Git": {
+ "remote": "https://github.com/fnichol/names.git",
+ "commitish": {
+ "Rev": "760516503b89ddc8bc2ab42d579d4566cfb1054f"
+ },
+ "shallow_since": "1646516410 -0700"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "names",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "Binary": {
+ "crate_name": "names",
+ "crate_root": "src/bin/names.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "names",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "application",
+ "clap",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "clap 3.1.6",
+ "target": "clap"
+ },
+ {
+ "id": "names 0.12.1-dev",
+ "target": "build_script_build"
+ },
+ {
+ "id": "rand 0.8.5",
+ "target": "rand"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.12.1-dev"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT"
+ },
+ "names 0.13.0": {
+ "name": "names",
+ "version": "0.13.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/names/0.13.0/download",
+ "sha256": "e7d66043b25d4a6cccb23619d10c19c25304b355a7dccd4a8e11423dd2382146"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "names",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "Binary": {
+ "crate_name": "names",
+ "crate_root": "src/bin/names.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "names",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "application",
+ "clap",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "clap 3.1.6",
+ "target": "clap"
+ },
+ {
+ "id": "names 0.13.0",
+ "target": "build_script_build"
+ },
+ {
+ "id": "rand 0.8.5",
+ "target": "rand"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.13.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT"
+ },
+ "os_str_bytes 6.0.0": {
+ "name": "os_str_bytes",
+ "version": "6.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/os_str_bytes/6.0.0/download",
+ "sha256": "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "os_str_bytes",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "os_str_bytes",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "memchr",
+ "raw_os_str"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "6.0.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "ppv-lite86 0.2.16": {
+ "name": "ppv-lite86",
+ "version": "0.2.16",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ppv-lite86/0.2.16/download",
+ "sha256": "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ppv_lite86",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ppv_lite86",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "simd",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.2.16"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "proc-macro-error 1.0.4": {
+ "name": "proc-macro-error",
+ "version": "1.0.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro-error/1.0.4/download",
+ "sha256": "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "proc_macro_error",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro_error",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "syn",
+ "syn-error"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro-error 1.0.4",
+ "target": "build_script_build"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "proc-macro-error-attr 1.0.4",
+ "target": "proc_macro_error_attr"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.4"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "proc-macro-error-attr 1.0.4": {
+ "name": "proc-macro-error-attr",
+ "version": "1.0.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro-error-attr/1.0.4/download",
+ "sha256": "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "proc_macro_error_attr",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro_error_attr",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro-error-attr 1.0.4",
+ "target": "build_script_build"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.4"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "proc-macro2 1.0.36": {
+ "name": "proc-macro2",
+ "version": "1.0.36",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download",
+ "sha256": "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "proc_macro2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.36"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "quote 1.0.15": {
+ "name": "quote",
+ "version": "1.0.15",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/quote/1.0.15/download",
+ "sha256": "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "quote",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "quote",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.15"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand 0.8.5": {
+ "name": "rand",
+ "version": "0.8.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand/0.8.5/download",
+ "sha256": "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "getrandom",
+ "libc",
+ "rand_chacha",
+ "std",
+ "std_rng"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "rand_chacha 0.3.1",
+ "target": "rand_chacha"
+ },
+ {
+ "id": "rand_core 0.6.3",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.8.5"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_chacha 0.3.1": {
+ "name": "rand_chacha",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_chacha/0.3.1/download",
+ "sha256": "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_chacha",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_chacha",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ppv-lite86 0.2.16",
+ "target": "ppv_lite86"
+ },
+ {
+ "id": "rand_core 0.6.3",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_core 0.6.3": {
+ "name": "rand_core",
+ "version": "0.6.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_core/0.6.3/download",
+ "sha256": "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "getrandom",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "getrandom 0.2.5",
+ "target": "getrandom"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.6.3"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "regex 1.5.4": {
+ "name": "regex",
+ "version": "1.5.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/regex/1.5.4/download",
+ "sha256": "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "regex",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "regex",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "aho-corasick",
+ "memchr",
+ "perf",
+ "perf-cache",
+ "perf-dfa",
+ "perf-inline",
+ "perf-literal",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "aho-corasick 0.7.18",
+ "target": "aho_corasick"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "regex-syntax 0.6.25",
+ "target": "regex_syntax"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.5.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "regex-syntax 0.6.25": {
+ "name": "regex-syntax",
+ "version": "0.6.25",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download",
+ "sha256": "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "regex_syntax",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "regex_syntax",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.6.25"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "strsim 0.10.0": {
+ "name": "strsim",
+ "version": "0.10.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/strsim/0.10.0/download",
+ "sha256": "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "strsim",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "strsim",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.10.0"
+ },
+ "license": "MIT"
+ },
+ "syn 1.0.86": {
+ "name": "syn",
+ "version": "1.0.86",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/syn/1.0.86/download",
+ "sha256": "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "syn",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "syn",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "clone-impls",
+ "default",
+ "derive",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.86"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "termcolor 1.1.3": {
+ "name": "termcolor",
+ "version": "1.1.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/termcolor/1.1.3/download",
+ "sha256": "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "termcolor",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "termcolor",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(windows)": [
+ {
+ "id": "winapi-util 0.1.5",
+ "target": "winapi_util"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "1.1.3"
+ },
+ "license": "Unlicense OR MIT"
+ },
+ "textwrap 0.15.0": {
+ "name": "textwrap",
+ "version": "0.15.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/textwrap/0.15.0/download",
+ "sha256": "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "textwrap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "textwrap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.15.0"
+ },
+ "license": "MIT"
+ },
+ "unicode-xid 0.2.2": {
+ "name": "unicode-xid",
+ "version": "0.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download",
+ "sha256": "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_xid",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_xid",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "0.2.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "value-bag 1.0.0-alpha.7": {
+ "name": "value-bag",
+ "version": "1.0.0-alpha.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/value-bag/1.0.0-alpha.7/download",
+ "sha256": "dd320e1520f94261153e96f7534476ad869c14022aee1e59af7c778075d840ae"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "value_bag",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "value_bag",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "value-bag 1.0.0-alpha.7",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "ctor 0.1.21",
+ "target": "ctor"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.0-alpha.7"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check",
+ "alias": "rustc"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "version_check 0.9.4": {
+ "name": "version_check",
+ "version": "0.9.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/version_check/0.9.4/download",
+ "sha256": "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "version_check",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "version_check",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.9.4"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasi 0.10.2+wasi-snapshot-preview1": {
+ "name": "wasi",
+ "version": "0.10.2+wasi-snapshot-preview1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download",
+ "sha256": "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.10.2+wasi-snapshot-preview1"
+ },
+ "license": "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
+ },
+ "winapi 0.3.9": {
+ "name": "winapi",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi/0.3.9/download",
+ "sha256": "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "consoleapi",
+ "errhandlingapi",
+ "fileapi",
+ "minwinbase",
+ "minwindef",
+ "processenv",
+ "std",
+ "winbase",
+ "wincon",
+ "winerror",
+ "winnt"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "i686-pc-windows-gnu": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "winapi_i686_pc_windows_gnu"
+ }
+ ],
+ "x86_64-pc-windows-gnu": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "winapi_x86_64_pc_windows_gnu"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.3.9"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-i686-pc-windows-gnu 0.4.0": {
+ "name": "winapi-i686-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download",
+ "sha256": "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_i686_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_i686_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-util 0.1.5": {
+ "name": "winapi-util",
+ "version": "0.1.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-util/0.1.5/download",
+ "sha256": "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.1.5"
+ },
+ "license": "Unlicense/MIT"
+ },
+ "winapi-x86_64-pc-windows-gnu 0.4.0": {
+ "name": "winapi-x86_64-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download",
+ "sha256": "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_x86_64_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_x86_64_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ }
+ },
+ "binary_crates": [
+ "names 0.12.1-dev",
+ "names 0.13.0"
+ ],
+ "workspace_members": {
+ "aliases 0.1.0": "cargo_aliases"
+ },
+ "conditions": {
+ "cfg(target_os = \"hermit\")": [],
+ "cfg(target_os = \"wasi\")": [
+ "wasm32-wasi"
+ ],
+ "cfg(unix)": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(windows)": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": []
+ }
+}
diff --git a/examples/crate_universe/cargo_aliases/Cargo.lock b/examples/crate_universe/cargo_aliases/Cargo.lock
new file mode 100644
index 0000000..439c4d8
--- /dev/null
+++ b/examples/crate_universe/cargo_aliases/Cargo.lock
@@ -0,0 +1,404 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "aho-corasick"
+version = "0.7.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "aliases"
+version = "0.1.0"
+dependencies = [
+ "env_logger",
+ "log 0.3.9",
+ "log 0.4.14",
+ "names 0.12.1-dev",
+ "names 0.13.0",
+ "value-bag",
+]
+
+[[package]]
+name = "atty"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
+dependencies = [
+ "hermit-abi",
+ "libc",
+ "winapi",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "clap"
+version = "3.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ced1892c55c910c1219e98d6fc8d71f6bddba7905866ce740066d8bfea859312"
+dependencies = [
+ "atty",
+ "bitflags",
+ "clap_derive",
+ "indexmap",
+ "lazy_static",
+ "os_str_bytes",
+ "strsim",
+ "termcolor",
+ "textwrap",
+]
+
+[[package]]
+name = "clap_derive"
+version = "3.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da95d038ede1a964ce99f49cbe27a7fb538d1da595e4b4f70b8c8f338d17bf16"
+dependencies = [
+ "heck",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "ctor"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa"
+dependencies = [
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "env_logger"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
+dependencies = [
+ "atty",
+ "humantime",
+ "log 0.4.14",
+ "regex",
+ "termcolor",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
+
+[[package]]
+name = "heck"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
+
+[[package]]
+name = "hermit-abi"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "humantime"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
+
+[[package]]
+name = "indexmap"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
+dependencies = [
+ "autocfg",
+ "hashbrown",
+]
+
+[[package]]
+name = "lazy_static"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+
+[[package]]
+name = "libc"
+version = "0.2.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+
+[[package]]
+name = "log"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
+dependencies = [
+ "log 0.4.14",
+]
+
+[[package]]
+name = "log"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "memchr"
+version = "2.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+
+[[package]]
+name = "names"
+version = "0.12.1-dev"
+source = "git+https://github.com/fnichol/names.git?rev=760516503b89ddc8bc2ab42d579d4566cfb1054f#760516503b89ddc8bc2ab42d579d4566cfb1054f"
+dependencies = [
+ "clap",
+ "rand",
+]
+
+[[package]]
+name = "names"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7d66043b25d4a6cccb23619d10c19c25304b355a7dccd4a8e11423dd2382146"
+dependencies = [
+ "clap",
+ "rand",
+]
+
+[[package]]
+name = "os_str_bytes"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
+
+[[package]]
+name = "proc-macro-error"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+dependencies = [
+ "proc-macro-error-attr",
+ "proc-macro2",
+ "quote",
+ "syn",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro-error-attr"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+dependencies = [
+ "unicode-xid",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rand"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "regex"
+version = "1.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.6.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
+
+[[package]]
+name = "strsim"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
+
+[[package]]
+name = "syn"
+version = "1.0.86"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-xid",
+]
+
+[[package]]
+name = "termcolor"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "textwrap"
+version = "0.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+
+[[package]]
+name = "value-bag"
+version = "1.0.0-alpha.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd320e1520f94261153e96f7534476ad869c14022aee1e59af7c778075d840ae"
+dependencies = [
+ "ctor",
+ "version_check",
+]
+
+[[package]]
+name = "version_check"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
+
+[[package]]
+name = "wasi"
+version = "0.10.2+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-util"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
diff --git a/examples/crate_universe/cargo_aliases/Cargo.toml b/examples/crate_universe/cargo_aliases/Cargo.toml
new file mode 100644
index 0000000..8a662c2
--- /dev/null
+++ b/examples/crate_universe/cargo_aliases/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+name = "aliases"
+version = "0.1.0"
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+# Defines library targets
+log = "=0.4.14"
+pinned_log = { package = "log", version = "=0.3.9" }
+
+# Contains a transitive alias
+value-bag = "=1.0.0-alpha.7"
+
+# Defines binary targets
+names = "=0.13.0"
+pinned_names = { package = "names", git = "https://github.com/fnichol/names.git", rev = "760516503b89ddc8bc2ab42d579d4566cfb1054f" }
+
+[dev-dependencies]
+env_logger = "0.9.0"
diff --git a/examples/crate_universe/cargo_aliases/src/lib.rs b/examples/crate_universe/cargo_aliases/src/lib.rs
new file mode 100644
index 0000000..6aa5199
--- /dev/null
+++ b/examples/crate_universe/cargo_aliases/src/lib.rs
@@ -0,0 +1,38 @@
+#[macro_use]
+extern crate pinned_log;
+
+use value_bag::ValueBag;
+
+pub fn new_log(text: &str) {
+ log::info!("new: {}", text);
+}
+
+pub fn pinned_log(text: &str) {
+ pinned_log::info!("old: {}", text);
+}
+
+pub fn value_bag() -> ValueBag<'static> {
+ ValueBag::capture_display(&42)
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ #[test]
+ fn test_logs() {
+ let _ = env_logger::builder().is_test(true).try_init();
+
+ new_log("text");
+ pinned_log("text");
+ }
+
+ #[test]
+ fn test_value_bag() {
+ let bag = value_bag();
+
+ let num = bag.to_u64().unwrap();
+
+ assert_eq!(42, num);
+ }
+}
diff --git a/examples/crate_universe/cargo_local/BUILD.bazel b/examples/crate_universe/cargo_local/BUILD.bazel
new file mode 100644
index 0000000..0ed0ab6
--- /dev/null
+++ b/examples/crate_universe/cargo_local/BUILD.bazel
@@ -0,0 +1,18 @@
+load("@crate_index_cargo_local//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+rust_library(
+ name = "cargo_local",
+ srcs = glob(["**/*.rs"]),
+ aliases = aliases(),
+ edition = "2018",
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ crate = ":cargo_local",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ deps = all_crate_deps(normal_dev = True),
+)
diff --git a/examples/crate_universe/cargo_local/Cargo.lock b/examples/crate_universe/cargo_local/Cargo.lock
new file mode 100644
index 0000000..6e94606
--- /dev/null
+++ b/examples/crate_universe/cargo_local/Cargo.lock
@@ -0,0 +1,417 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "async-stream"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "171374e7e3b2504e0e5236e3b59260560f9fe94bfe9ac39ba5e4e929c5590625"
+dependencies = [
+ "async-stream-impl",
+ "futures-core",
+]
+
+[[package]]
+name = "async-stream-impl"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "648ed8c8d2ce5409ccd57453d9d1b214b342a0d69376a6feda1fd6cae3299308"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bytes"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
+
+[[package]]
+name = "cargo_local"
+version = "0.1.0"
+dependencies = [
+ "tempfile",
+ "tokio",
+ "tokio-test",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "futures-core"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88d1c26957f23603395cd326b0ffe64124b818f4449552f960d815cfba83a53d"
+
+[[package]]
+name = "getrandom"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "hermit-abi"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "instant"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "716d3d89f35ac6a34fd0eed635395f4c3b76fa889338a4632e5231a8684216bd"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.103"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6"
+
+[[package]]
+name = "lock_api"
+version = "0.4.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "memchr"
+version = "2.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+
+[[package]]
+name = "mio"
+version = "0.7.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16"
+dependencies = [
+ "libc",
+ "log",
+ "miow",
+ "ntapi",
+ "winapi",
+]
+
+[[package]]
+name = "miow"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "ntapi"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "num_cpus"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
+dependencies = [
+ "hermit-abi",
+ "libc",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
+
+[[package]]
+name = "parking_lot"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
+dependencies = [
+ "instant",
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
+dependencies = [
+ "cfg-if",
+ "instant",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "winapi",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d"
+dependencies = [
+ "unicode-xid",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rand"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core",
+ "rand_hc",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "rand_hc"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
+dependencies = [
+ "rand_core",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.2.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"
+dependencies = [
+ "bitflags",
+]
+
+[[package]]
+name = "remove_dir_all"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
+
+[[package]]
+name = "syn"
+version = "1.0.77"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5239bc68e0fef57495900cfea4e8dc75596d9a319d7e16b1e0a440d24e6fe0a0"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-xid",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "rand",
+ "redox_syscall",
+ "remove_dir_all",
+ "winapi",
+]
+
+[[package]]
+name = "tokio"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2c2416fdedca8443ae44b4527de1ea633af61d8f7169ffa6e72c5b53d24efcc"
+dependencies = [
+ "autocfg",
+ "bytes",
+ "libc",
+ "memchr",
+ "mio",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "pin-project-lite",
+ "signal-hook-registry",
+ "tokio-macros",
+ "winapi",
+]
+
+[[package]]
+name = "tokio-macros"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "54473be61f4ebe4efd09cec9bd5d16fa51d70ea0192213d754d2d500457db110"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "tokio-stream"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-test"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53474327ae5e166530d17f2d956afcb4f8a004de581b3cae10f12006bc8163e3"
+dependencies = [
+ "async-stream",
+ "bytes",
+ "futures-core",
+ "tokio",
+ "tokio-stream",
+]
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+
+[[package]]
+name = "wasi"
+version = "0.10.2+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
diff --git a/examples/crate_universe/cargo_local/Cargo.toml b/examples/crate_universe/cargo_local/Cargo.toml
new file mode 100644
index 0000000..ed5b27d
--- /dev/null
+++ b/examples/crate_universe/cargo_local/Cargo.toml
@@ -0,0 +1,12 @@
+[package]
+name = "cargo_local"
+version = "0.1.0"
+authors = ["UebelAndre <github@uebelandre.com>"]
+edition = "2018"
+
+[dependencies]
+tokio = { version = "1.12.0", features = ["full"] }
+
+[dev-dependencies]
+tempfile = "3.2.0"
+tokio-test = "0.4.2"
diff --git a/examples/crate_universe/cargo_local/src/lib.rs b/examples/crate_universe/cargo_local/src/lib.rs
new file mode 100644
index 0000000..0e49d04
--- /dev/null
+++ b/examples/crate_universe/cargo_local/src/lib.rs
@@ -0,0 +1,44 @@
+use std::path::Path;
+
+use tokio::fs::File;
+use tokio::io::{AsyncBufReadExt, BufReader};
+
+pub async fn fill_buf_file(path: &Path) -> Vec<u8> {
+ let file = File::open(path).await.unwrap();
+ let mut file = BufReader::new(file);
+
+ let mut contents = Vec::new();
+
+ loop {
+ let consumed = {
+ let buffer = file.fill_buf().await.unwrap();
+ if buffer.is_empty() {
+ break;
+ }
+ contents.extend_from_slice(buffer);
+ buffer.len()
+ };
+
+ file.consume(consumed);
+ }
+
+ contents
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ use tempfile::NamedTempFile;
+ use tokio_test::assert_ok;
+
+ #[tokio::test]
+ async fn test_fill_buf_file() {
+ let file = NamedTempFile::new().unwrap();
+ assert_ok!(std::fs::write(file.path(), b"hello"));
+
+ let contents = fill_buf_file(file.path()).await;
+
+ assert_eq!(contents, b"hello");
+ }
+}
diff --git a/examples/crate_universe/cargo_remote/.bazelrc b/examples/crate_universe/cargo_remote/.bazelrc
new file mode 100644
index 0000000..d63c809
--- /dev/null
+++ b/examples/crate_universe/cargo_remote/.bazelrc
@@ -0,0 +1,13 @@
+# A config file containing Bazel settings
+
+# Enable rustfmt
+build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:strict --output_groups=+rustfmt_checks
+
+# Enable clippy
+build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:strict --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/cargo_remote/BUILD.bazel b/examples/crate_universe/cargo_remote/BUILD.bazel
new file mode 100644
index 0000000..16e756d
--- /dev/null
+++ b/examples/crate_universe/cargo_remote/BUILD.bazel
@@ -0,0 +1,14 @@
+load("@rules_rust//rust:defs.bzl", "rust_test")
+
+exports_files([
+ "BUILD.names.bazel",
+])
+
+rust_test(
+ name = "launch_test",
+ srcs = ["remote_crate_test.rs"],
+ data = ["@names//:names_bin"],
+ rustc_env = {
+ "EXECUTABLE": "$(rootpath @names//:names_bin)",
+ },
+)
diff --git a/examples/crate_universe/cargo_remote/BUILD.names.bazel b/examples/crate_universe/cargo_remote/BUILD.names.bazel
new file mode 100644
index 0000000..83378f5
--- /dev/null
+++ b/examples/crate_universe/cargo_remote/BUILD.names.bazel
@@ -0,0 +1,67 @@
+load("@crate_index_cargo_remote//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
+
+package(default_visibility = ["//visibility:public"])
+
+exports_files([
+ "Cargo.toml",
+ "Cargo.lock",
+])
+
+rust_binary(
+ name = "names_bin",
+ srcs = ["src/bin/names.rs"],
+ aliases = aliases(
+ normal = True,
+ proc_macro = True,
+ ),
+ crate_features = [
+ "application",
+ "clap",
+ "default",
+ ],
+ crate_root = "src/bin/names.rs",
+ edition = "2018",
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ version = "0.12.0",
+ deps = all_crate_deps(normal = True) + [
+ ":names",
+ ],
+)
+
+rust_library(
+ name = "names",
+ srcs = glob(["src/**/*.rs"]),
+ aliases = aliases(
+ normal = True,
+ proc_macro = True,
+ ),
+ crate_features = [
+ "application",
+ "clap",
+ "default",
+ ],
+ edition = "2018",
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ version = "0.12.0",
+ deps = all_crate_deps(normal = True) + [
+ ":build-script-build",
+ ],
+)
+
+cargo_build_script(
+ name = "build-script-build",
+ srcs = ["build.rs"],
+ aliases = aliases(build = True),
+ crate_features = [
+ "application",
+ "clap",
+ "default",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["data/**"]),
+ edition = "2018",
+ version = "0.12.0",
+)
diff --git a/examples/crate_universe/cargo_remote/remote_crate_test.rs b/examples/crate_universe/cargo_remote/remote_crate_test.rs
new file mode 100644
index 0000000..f25340a
--- /dev/null
+++ b/examples/crate_universe/cargo_remote/remote_crate_test.rs
@@ -0,0 +1,18 @@
+//! A Test module confirming the functionality of `cargo->bazel` with remote crates.
+
+use std::path::PathBuf;
+use std::process::Command;
+
+#[test]
+fn test_executable() {
+ let exe = PathBuf::from(env!("EXECUTABLE"));
+
+ let output = Command::new(exe)
+ .arg("--help")
+ .output()
+ .expect("Failed to run executable");
+
+ let text = String::from_utf8(output.stdout).unwrap();
+
+ assert!(text.contains("A random name generator with results like"));
+}
diff --git a/examples/crate_universe/cargo_workspace/.bazelrc b/examples/crate_universe/cargo_workspace/.bazelrc
new file mode 100644
index 0000000..d63c809
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/.bazelrc
@@ -0,0 +1,13 @@
+# A config file containing Bazel settings
+
+# Enable rustfmt
+build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:strict --output_groups=+rustfmt_checks
+
+# Enable clippy
+build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:strict --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/cargo_workspace/BUILD.bazel b/examples/crate_universe/cargo_workspace/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/BUILD.bazel
diff --git a/examples/crate_universe/cargo_workspace/Cargo.Bazel.lock b/examples/crate_universe/cargo_workspace/Cargo.Bazel.lock
new file mode 100644
index 0000000..e71e918
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/Cargo.Bazel.lock
@@ -0,0 +1,1462 @@
+{
+ "checksum": "0116dced5bffc719d9e8c3a9fc34b13d9f97c61125722f5bcb4079df12465f56",
+ "crates": {
+ "ansi_term 0.12.1": {
+ "name": "ansi_term",
+ "version": "0.12.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ansi_term/0.12.1/download",
+ "sha256": "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ansi_term",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ansi_term",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"windows\")": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.12.1"
+ },
+ "license": "MIT"
+ },
+ "atty 0.2.14": {
+ "name": "atty",
+ "version": "0.2.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/atty/0.2.14/download",
+ "sha256": "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "atty",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "atty",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"hermit\")": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.2.14"
+ },
+ "license": "MIT"
+ },
+ "bitflags 1.3.2": {
+ "name": "bitflags",
+ "version": "1.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bitflags/1.3.2/download",
+ "sha256": "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bitflags",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bitflags",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "1.3.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "cfg-if 1.0.0": {
+ "name": "cfg-if",
+ "version": "1.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
+ "sha256": "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cfg_if",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cfg_if",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "clap 2.34.0": {
+ "name": "clap",
+ "version": "2.34.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/clap/2.34.0/download",
+ "sha256": "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "clap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "clap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "ansi_term",
+ "atty",
+ "color",
+ "default",
+ "strsim",
+ "suggestions",
+ "vec_map"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "atty 0.2.14",
+ "target": "atty"
+ },
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "strsim 0.8.0",
+ "target": "strsim"
+ },
+ {
+ "id": "textwrap 0.11.0",
+ "target": "textwrap"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ },
+ {
+ "id": "vec_map 0.8.2",
+ "target": "vec_map"
+ }
+ ],
+ "selects": {
+ "cfg(not(windows))": [
+ {
+ "id": "ansi_term 0.12.1",
+ "target": "ansi_term"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "2.34.0"
+ },
+ "license": "MIT"
+ },
+ "direct-cargo-bazel-deps 0.0.1": {
+ "name": "direct-cargo-bazel-deps",
+ "version": "0.0.1",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "direct_cargo_bazel_deps",
+ "crate_root": ".direct_cargo_bazel_deps.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "direct_cargo_bazel_deps",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.0.1"
+ },
+ "license": null
+ },
+ "ferris-says 0.2.1": {
+ "name": "ferris-says",
+ "version": "0.2.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ferris-says/0.2.1/download",
+ "sha256": "9515ec2dd9606ec230f6b2d1f25fd9e808a2f2af600143f7efe7e5865505b7aa"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ferris_says",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ferris_says",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "smallvec 0.4.5",
+ "target": "smallvec"
+ },
+ {
+ "id": "textwrap 0.13.4",
+ "target": "textwrap"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "getrandom 0.1.16": {
+ "name": "getrandom",
+ "version": "0.1.16",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/getrandom/0.1.16/download",
+ "sha256": "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "getrandom",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "getrandom",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "getrandom 0.1.16",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "cfg(target_os = \"wasi\")": [
+ {
+ "id": "wasi 0.9.0+wasi-snapshot-preview1",
+ "target": "wasi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.1.16"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "hermit-abi 0.1.19": {
+ "name": "hermit-abi",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download",
+ "sha256": "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hermit_abi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hermit_abi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "libc 0.2.119": {
+ "name": "libc",
+ "version": "0.2.119",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libc/0.2.119/download",
+ "sha256": "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.119"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "num_printer 0.1.0": {
+ "name": "num_printer",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Binary": {
+ "crate_name": "number-printer",
+ "crate_root": "src/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": null,
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "clap 2.34.0",
+ "target": "clap"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "ppv-lite86 0.2.16": {
+ "name": "ppv-lite86",
+ "version": "0.2.16",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ppv-lite86/0.2.16/download",
+ "sha256": "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ppv_lite86",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ppv_lite86",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "simd",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.2.16"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "printer 0.1.0": {
+ "name": "printer",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "printer",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "printer",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ferris-says 0.2.1",
+ "target": "ferris_says"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "rand 0.7.3": {
+ "name": "rand",
+ "version": "0.7.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand/0.7.3/download",
+ "sha256": "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "getrandom",
+ "getrandom_package",
+ "libc",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "getrandom 0.1.16",
+ "target": "getrandom",
+ "alias": "getrandom_package"
+ },
+ {
+ "id": "rand_core 0.5.1",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {
+ "cfg(not(target_os = \"emscripten\"))": [
+ {
+ "id": "rand_chacha 0.2.2",
+ "target": "rand_chacha"
+ }
+ ],
+ "cfg(target_os = \"emscripten\")": [
+ {
+ "id": "rand_hc 0.2.0",
+ "target": "rand_hc"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.7.3"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_chacha 0.2.2": {
+ "name": "rand_chacha",
+ "version": "0.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_chacha/0.2.2/download",
+ "sha256": "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_chacha",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_chacha",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ppv-lite86 0.2.16",
+ "target": "ppv_lite86"
+ },
+ {
+ "id": "rand_core 0.5.1",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_core 0.5.1": {
+ "name": "rand_core",
+ "version": "0.5.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_core/0.5.1/download",
+ "sha256": "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "getrandom",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "getrandom 0.1.16",
+ "target": "getrandom"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.5.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_hc 0.2.0": {
+ "name": "rand_hc",
+ "version": "0.2.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_hc/0.2.0/download",
+ "sha256": "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_hc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_hc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "rand_core 0.5.1",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "rng 0.1.0": {
+ "name": "rng",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rng",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rng",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "rand 0.7.3",
+ "target": "rand"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "smallvec 0.4.5": {
+ "name": "smallvec",
+ "version": "0.4.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/smallvec/0.4.5/download",
+ "sha256": "f90c5e5fe535e48807ab94fc611d323935f39d4660c52b26b96446a7b33aef10"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "smallvec",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "smallvec",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2015",
+ "version": "0.4.5"
+ },
+ "license": "MPL-2.0"
+ },
+ "smawk 0.3.1": {
+ "name": "smawk",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/smawk/0.3.1/download",
+ "sha256": "f67ad224767faa3c7d8b6d91985b78e70a1324408abcb1cfcc2be4c06bc06043"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "smawk",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "smawk",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT"
+ },
+ "strsim 0.8.0": {
+ "name": "strsim",
+ "version": "0.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/strsim/0.8.0/download",
+ "sha256": "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "strsim",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "strsim",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.8.0"
+ },
+ "license": "MIT"
+ },
+ "textwrap 0.11.0": {
+ "name": "textwrap",
+ "version": "0.11.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/textwrap/0.11.0/download",
+ "sha256": "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "textwrap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "textwrap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.11.0"
+ },
+ "license": "MIT"
+ },
+ "textwrap 0.13.4": {
+ "name": "textwrap",
+ "version": "0.13.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/textwrap/0.13.4/download",
+ "sha256": "cd05616119e612a8041ef58f2b578906cc2531a6069047ae092cfb86a325d835"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "textwrap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "textwrap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "smawk",
+ "unicode-width"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "smawk 0.3.1",
+ "target": "smawk"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.13.4"
+ },
+ "license": "MIT"
+ },
+ "unicode-width 0.1.9": {
+ "name": "unicode-width",
+ "version": "0.1.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-width/0.1.9/download",
+ "sha256": "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_width",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_width",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "0.1.9"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "vec_map 0.8.2": {
+ "name": "vec_map",
+ "version": "0.8.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/vec_map/0.8.2/download",
+ "sha256": "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "vec_map",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "vec_map",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.8.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasi 0.9.0+wasi-snapshot-preview1": {
+ "name": "wasi",
+ "version": "0.9.0+wasi-snapshot-preview1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasi/0.9.0+wasi-snapshot-preview1/download",
+ "sha256": "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.9.0+wasi-snapshot-preview1"
+ },
+ "license": "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
+ },
+ "winapi 0.3.9": {
+ "name": "winapi",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi/0.3.9/download",
+ "sha256": "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "consoleapi",
+ "errhandlingapi",
+ "fileapi",
+ "handleapi",
+ "minwinbase",
+ "minwindef",
+ "processenv",
+ "winbase"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "i686-pc-windows-gnu": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "winapi_i686_pc_windows_gnu"
+ }
+ ],
+ "x86_64-pc-windows-gnu": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "winapi_x86_64_pc_windows_gnu"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.3.9"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-i686-pc-windows-gnu 0.4.0": {
+ "name": "winapi-i686-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download",
+ "sha256": "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_i686_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_i686_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-x86_64-pc-windows-gnu 0.4.0": {
+ "name": "winapi-x86_64-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download",
+ "sha256": "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_x86_64_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_x86_64_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ }
+ },
+ "binary_crates": [],
+ "workspace_members": {
+ "direct-cargo-bazel-deps 0.0.1": "cargo_workspace",
+ "num_printer 0.1.0": "cargo_workspace/num_printer",
+ "printer 0.1.0": "cargo_workspace/printer",
+ "rng 0.1.0": "cargo_workspace/rng"
+ },
+ "conditions": {
+ "cfg(not(target_os = \"emscripten\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-pc-windows-msvc",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-unknown-unknown",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-pc-windows-msvc",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(not(windows))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-unknown-unknown",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(target_os = \"emscripten\")": [],
+ "cfg(target_os = \"hermit\")": [],
+ "cfg(target_os = \"wasi\")": [
+ "wasm32-wasi"
+ ],
+ "cfg(target_os = \"windows\")": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "cfg(unix)": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(windows)": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": []
+ }
+}
diff --git a/examples/crate_universe/cargo_workspace/Cargo.toml b/examples/crate_universe/cargo_workspace/Cargo.toml
new file mode 100644
index 0000000..4bf10a5
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/Cargo.toml
@@ -0,0 +1,6 @@
+[workspace]
+members = [
+ "num_printer",
+ "printer",
+ "rng",
+]
diff --git a/examples/crate_universe/cargo_workspace/num_printer/BUILD.bazel b/examples/crate_universe/cargo_workspace/num_printer/BUILD.bazel
new file mode 100644
index 0000000..eb94da1
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/num_printer/BUILD.bazel
@@ -0,0 +1,13 @@
+load("@crate_index_cargo_workspace//:defs.bzl", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "number_printer",
+ srcs = ["src/main.rs"],
+ edition = "2018",
+ deps = [
+ "//cargo_workspace/printer",
+ ] + all_crate_deps(),
+)
diff --git a/examples/crate_universe/cargo_workspace/num_printer/Cargo.toml b/examples/crate_universe/cargo_workspace/num_printer/Cargo.toml
new file mode 100644
index 0000000..b3711a0
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/num_printer/Cargo.toml
@@ -0,0 +1,13 @@
+[package]
+name = "num_printer"
+version = "0.1.0"
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[[bin]]
+name = "number-printer"
+path = "src/main.rs"
+
+[dependencies]
+clap = "2.33.3"
+printer = { path = "../printer" }
diff --git a/examples/crate_universe/cargo_workspace/num_printer/src/main.rs b/examples/crate_universe/cargo_workspace/num_printer/src/main.rs
new file mode 100644
index 0000000..871c7b4
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/num_printer/src/main.rs
@@ -0,0 +1,24 @@
+use clap::{App, Arg};
+
+fn main() {
+ let matches = App::new("Number Printer")
+ .about("Print some numbers")
+ .arg(Arg::with_name("rng").help("Print a random number"))
+ .arg(
+ Arg::with_name("num")
+ .help("Print this number")
+ .takes_value(true),
+ )
+ .get_matches();
+
+ let num = match matches.value_of("num") {
+ Some(value) => value.parse::<i32>().unwrap(),
+ None => 1337,
+ };
+
+ if matches.is_present("rng") {
+ println!("{}", printer::say_random_number());
+ } else {
+ println!("{}", printer::say_number(num));
+ }
+}
diff --git a/examples/crate_universe/cargo_workspace/printer/BUILD.bazel b/examples/crate_universe/cargo_workspace/printer/BUILD.bazel
new file mode 100644
index 0000000..7d14cae
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/printer/BUILD.bazel
@@ -0,0 +1,18 @@
+load("@crate_index_cargo_workspace//:defs.bzl", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_library(
+ name = "printer",
+ srcs = ["src/lib.rs"],
+ edition = "2018",
+ deps = [
+ "//cargo_workspace/rng",
+ ] + all_crate_deps(),
+)
+
+rust_test(
+ name = "unit_test",
+ crate = ":printer",
+)
diff --git a/examples/crate_universe/cargo_workspace/printer/Cargo.toml b/examples/crate_universe/cargo_workspace/printer/Cargo.toml
new file mode 100644
index 0000000..9e3537a
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/printer/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "printer"
+version = "0.1.0"
+edition = "2018"
+
+[dependencies]
+rng = { path = "../rng" }
+ferris-says = "0.2.0"
diff --git a/examples/crate_universe/cargo_workspace/printer/src/lib.rs b/examples/crate_universe/cargo_workspace/printer/src/lib.rs
new file mode 100644
index 0000000..8828dc3
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/printer/src/lib.rs
@@ -0,0 +1,38 @@
+use std::io::BufWriter;
+
+/// Have ferris say a number
+pub fn say_number(num: i32) -> String {
+ let number = format!("{}", num);
+ let buf = Vec::new();
+ let mut writer = BufWriter::new(buf);
+ ferris_says::say(number.as_bytes(), number.len(), &mut writer).unwrap();
+ String::from_utf8(writer.into_inner().unwrap()).unwrap()
+}
+
+/// Have ferris say a random number
+pub fn say_random_number() -> String {
+ say_number(rng::random_number())
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ #[test]
+ fn test_say_number() {
+ let said = say_number(3);
+ assert!(said.contains(r#" _~^~^~_"#));
+ assert!(said.contains(r#"\) / o o \ (/"#));
+ assert!(said.contains(r#" '_ - _'"#));
+ assert!(said.contains(r#" / '-----' \"#));
+ }
+
+ #[test]
+ fn test_say_random_number() {
+ let said = say_random_number();
+ assert!(said.contains(r#" _~^~^~_"#));
+ assert!(said.contains(r#"\) / o o \ (/"#));
+ assert!(said.contains(r#" '_ - _'"#));
+ assert!(said.contains(r#" / '-----' \"#));
+ }
+}
diff --git a/examples/crate_universe/cargo_workspace/rng/BUILD.bazel b/examples/crate_universe/cargo_workspace/rng/BUILD.bazel
new file mode 100644
index 0000000..f05506c
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/rng/BUILD.bazel
@@ -0,0 +1,13 @@
+load("@crate_index_cargo_workspace//:defs.bzl", "crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_library(
+ name = "rng",
+ srcs = ["src/lib.rs"],
+ edition = "2018",
+ deps = crate_deps([
+ "rand",
+ ]),
+)
diff --git a/examples/crate_universe/cargo_workspace/rng/Cargo.toml b/examples/crate_universe/cargo_workspace/rng/Cargo.toml
new file mode 100644
index 0000000..a2a098c
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/rng/Cargo.toml
@@ -0,0 +1,7 @@
+[package]
+name = "rng"
+version = "0.1.0"
+edition = "2018"
+
+[dependencies]
+rand = "0.7.3"
diff --git a/examples/crate_universe/cargo_workspace/rng/src/lib.rs b/examples/crate_universe/cargo_workspace/rng/src/lib.rs
new file mode 100644
index 0000000..3d9a045
--- /dev/null
+++ b/examples/crate_universe/cargo_workspace/rng/src/lib.rs
@@ -0,0 +1,7 @@
+use rand::{thread_rng, Rng};
+
+/// Generate a random number
+pub fn random_number() -> i32 {
+ let mut rng = thread_rng();
+ rng.gen()
+}
diff --git a/examples/crate_universe/extra_workspace_members/.bazelrc b/examples/crate_universe/extra_workspace_members/.bazelrc
new file mode 100644
index 0000000..d63c809
--- /dev/null
+++ b/examples/crate_universe/extra_workspace_members/.bazelrc
@@ -0,0 +1,13 @@
+# A config file containing Bazel settings
+
+# Enable rustfmt
+build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:strict --output_groups=+rustfmt_checks
+
+# Enable clippy
+build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:strict --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/extra_workspace_members/BUILD.bazel b/examples/crate_universe/extra_workspace_members/BUILD.bazel
new file mode 100644
index 0000000..199257f
--- /dev/null
+++ b/examples/crate_universe/extra_workspace_members/BUILD.bazel
@@ -0,0 +1,22 @@
+load("@crate_index_extra_members//:defs.bzl", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
+
+rust_binary(
+ name = "extra_workspace_member",
+ srcs = ["src/main.rs"],
+ data = ["@crate_index_extra_members//:texture-synthesis-cli__texture-synthesis"],
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ rustc_env = {
+ "TEXTURE_SYNTHESIS_CLI": "$(rootpath @crate_index_extra_members//:texture-synthesis-cli__texture-synthesis)",
+ },
+ deps = all_crate_deps(),
+)
+
+rust_test(
+ name = "unit_test",
+ crate = ":extra_workspace_member",
+ data = ["@crate_index_extra_members//:texture-synthesis-cli__texture-synthesis"],
+ rustc_env = {
+ "TEXTURE_SYNTHESIS_CLI": "$(rootpath @crate_index_extra_members//:texture-synthesis-cli__texture-synthesis)",
+ },
+)
diff --git a/examples/crate_universe/extra_workspace_members/Cargo.Bazel.lock b/examples/crate_universe/extra_workspace_members/Cargo.Bazel.lock
new file mode 100644
index 0000000..c9d296d
--- /dev/null
+++ b/examples/crate_universe/extra_workspace_members/Cargo.Bazel.lock
@@ -0,0 +1,3273 @@
+{
+ "checksum": "e3970ece78ced37e01b3e8d70f9b1350e9d902a2be78f8c08789b05242583bef",
+ "crates": {
+ "adler32 1.2.0": {
+ "name": "adler32",
+ "version": "1.2.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/adler32/1.2.0/download",
+ "sha256": "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "adler32",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "adler32",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.2.0"
+ },
+ "license": "Zlib"
+ },
+ "ansi_term 0.12.1": {
+ "name": "ansi_term",
+ "version": "0.12.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ansi_term/0.12.1/download",
+ "sha256": "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ansi_term",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ansi_term",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"windows\")": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.12.1"
+ },
+ "license": "MIT"
+ },
+ "atty 0.2.14": {
+ "name": "atty",
+ "version": "0.2.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/atty/0.2.14/download",
+ "sha256": "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "atty",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "atty",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"hermit\")": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.2.14"
+ },
+ "license": "MIT"
+ },
+ "autocfg 1.1.0": {
+ "name": "autocfg",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/autocfg/1.1.0/download",
+ "sha256": "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "autocfg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "autocfg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "bitflags 1.3.2": {
+ "name": "bitflags",
+ "version": "1.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bitflags/1.3.2/download",
+ "sha256": "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bitflags",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bitflags",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "1.3.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "bytemuck 1.8.0": {
+ "name": "bytemuck",
+ "version": "1.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bytemuck/1.8.0/download",
+ "sha256": "0e851ca7c24871e7336801608a4797d7376545b6928a10d32d75685687141ead"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bytemuck",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bytemuck",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.8.0"
+ },
+ "license": "Zlib OR Apache-2.0 OR MIT"
+ },
+ "byteorder 1.4.3": {
+ "name": "byteorder",
+ "version": "1.4.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/byteorder/1.4.3/download",
+ "sha256": "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "byteorder",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "byteorder",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.4.3"
+ },
+ "license": "Unlicense OR MIT"
+ },
+ "cfg-if 1.0.0": {
+ "name": "cfg-if",
+ "version": "1.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
+ "sha256": "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cfg_if",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cfg_if",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "clap 2.34.0": {
+ "name": "clap",
+ "version": "2.34.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/clap/2.34.0/download",
+ "sha256": "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "clap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "clap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "ansi_term",
+ "atty",
+ "color",
+ "default",
+ "strsim",
+ "suggestions",
+ "vec_map"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "atty 0.2.14",
+ "target": "atty"
+ },
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "strsim 0.8.0",
+ "target": "strsim"
+ },
+ {
+ "id": "textwrap 0.11.0",
+ "target": "textwrap"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ },
+ {
+ "id": "vec_map 0.8.2",
+ "target": "vec_map"
+ }
+ ],
+ "selects": {
+ "cfg(not(windows))": [
+ {
+ "id": "ansi_term 0.12.1",
+ "target": "ansi_term"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "2.34.0"
+ },
+ "license": "MIT"
+ },
+ "color_quant 1.1.0": {
+ "name": "color_quant",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/color_quant/1.1.0/download",
+ "sha256": "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "color_quant",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "color_quant",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "MIT"
+ },
+ "console 0.15.0": {
+ "name": "console",
+ "version": "0.15.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/console/0.15.0/download",
+ "sha256": "a28b32d32ca44b70c3e4acd7db1babf555fa026e385fb95f18028f88848b3c31"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "console",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "console",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "ansi-parsing",
+ "default",
+ "regex",
+ "unicode-width"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ },
+ {
+ "id": "terminal_size 0.1.17",
+ "target": "terminal_size"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {
+ "cfg(windows)": [
+ {
+ "id": "encode_unicode 0.3.6",
+ "target": "encode_unicode"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.15.0"
+ },
+ "license": "MIT"
+ },
+ "crc32fast 1.3.2": {
+ "name": "crc32fast",
+ "version": "1.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/crc32fast/1.3.2/download",
+ "sha256": "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "crc32fast",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "crc32fast",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "crc32fast 1.3.2",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.3.2"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "crossbeam-utils 0.8.7": {
+ "name": "crossbeam-utils",
+ "version": "0.8.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/crossbeam-utils/0.8.7/download",
+ "sha256": "b5e5bed1f1c269533fa816a0a5492b3545209a205ca1a54842be180eb63a16a6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "crossbeam_utils",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "crossbeam_utils",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "lazy_static",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "crossbeam-utils 0.8.7",
+ "target": "build_script_build"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.8.7"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "deflate 0.8.6": {
+ "name": "deflate",
+ "version": "0.8.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/deflate/0.8.6/download",
+ "sha256": "73770f8e1fe7d64df17ca66ad28994a0a623ea497fa69486e14984e715c5d174"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "deflate",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "deflate",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "adler32 1.2.0",
+ "target": "adler32"
+ },
+ {
+ "id": "byteorder 1.4.3",
+ "target": "byteorder"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.8.6"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "encode_unicode 0.3.6": {
+ "name": "encode_unicode",
+ "version": "0.3.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/encode_unicode/0.3.6/download",
+ "sha256": "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "encode_unicode",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "encode_unicode",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2015",
+ "version": "0.3.6"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "extra_workspace_members 0.1.0": {
+ "name": "extra_workspace_members",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Binary": {
+ "crate_name": "extra_workspace_members",
+ "crate_root": "src/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": null,
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ferris-says 0.2.1",
+ "target": "ferris_says"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "ferris-says 0.2.1": {
+ "name": "ferris-says",
+ "version": "0.2.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ferris-says/0.2.1/download",
+ "sha256": "9515ec2dd9606ec230f6b2d1f25fd9e808a2f2af600143f7efe7e5865505b7aa"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ferris_says",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ferris_says",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "smallvec 0.4.5",
+ "target": "smallvec"
+ },
+ {
+ "id": "textwrap 0.13.4",
+ "target": "textwrap"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "heck 0.3.3": {
+ "name": "heck",
+ "version": "0.3.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/heck/0.3.3/download",
+ "sha256": "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "heck",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "heck",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "unicode-segmentation 1.9.0",
+ "target": "unicode_segmentation"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.3"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "hermit-abi 0.1.19": {
+ "name": "hermit-abi",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download",
+ "sha256": "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hermit_abi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hermit_abi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "image 0.23.12": {
+ "name": "image",
+ "version": "0.23.12",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/image/0.23.12/download",
+ "sha256": "7ce04077ead78e39ae8610ad26216aed811996b043d47beed5090db674f9e9b5"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "image",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "image",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "bmp",
+ "jpeg",
+ "png"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytemuck 1.8.0",
+ "target": "bytemuck"
+ },
+ {
+ "id": "byteorder 1.4.3",
+ "target": "byteorder"
+ },
+ {
+ "id": "color_quant 1.1.0",
+ "target": "color_quant"
+ },
+ {
+ "id": "jpeg-decoder 0.1.22",
+ "target": "jpeg_decoder",
+ "alias": "jpeg"
+ },
+ {
+ "id": "num-iter 0.1.42",
+ "target": "num_iter"
+ },
+ {
+ "id": "num-rational 0.3.2",
+ "target": "num_rational"
+ },
+ {
+ "id": "num-traits 0.2.14",
+ "target": "num_traits"
+ },
+ {
+ "id": "png 0.16.8",
+ "target": "png"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.23.12"
+ },
+ "license": "MIT"
+ },
+ "indicatif 0.15.0": {
+ "name": "indicatif",
+ "version": "0.15.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/indicatif/0.15.0/download",
+ "sha256": "7baab56125e25686df467fe470785512329883aab42696d661247aca2a2896e4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "indicatif",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "indicatif",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "console 0.15.0",
+ "target": "console"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "number_prefix 0.3.0",
+ "target": "number_prefix"
+ },
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.15.0"
+ },
+ "license": "MIT"
+ },
+ "jpeg-decoder 0.1.22": {
+ "name": "jpeg-decoder",
+ "version": "0.1.22",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/jpeg-decoder/0.1.22/download",
+ "sha256": "229d53d58899083193af11e15917b5640cd40b29ff475a1fe4ef725deb02d0f2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "jpeg_decoder",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "jpeg_decoder",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.22"
+ },
+ "license": "MIT / Apache-2.0"
+ },
+ "lazy_static 1.4.0": {
+ "name": "lazy_static",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lazy_static/1.4.0/download",
+ "sha256": "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lazy_static",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lazy_static",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.4.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "libc 0.2.119": {
+ "name": "libc",
+ "version": "0.2.119",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libc/0.2.119/download",
+ "sha256": "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.119"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "miniz_oxide 0.3.7": {
+ "name": "miniz_oxide",
+ "version": "0.3.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/miniz_oxide/0.3.7/download",
+ "sha256": "791daaae1ed6889560f8c4359194f56648355540573244a5448a83ba1ecc7435"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "miniz_oxide",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "miniz_oxide",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "adler32 1.2.0",
+ "target": "adler32"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.7"
+ },
+ "license": "MIT"
+ },
+ "num-integer 0.1.44": {
+ "name": "num-integer",
+ "version": "0.1.44",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num-integer/0.1.44/download",
+ "sha256": "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_integer",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_integer",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "i128",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "num-integer 0.1.44",
+ "target": "build_script_build"
+ },
+ {
+ "id": "num-traits 0.2.14",
+ "target": "num_traits"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.1.44"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "num-iter 0.1.42": {
+ "name": "num-iter",
+ "version": "0.1.42",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num-iter/0.1.42/download",
+ "sha256": "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_iter",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_iter",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "num-integer 0.1.44",
+ "target": "num_integer"
+ },
+ {
+ "id": "num-iter 0.1.42",
+ "target": "build_script_build"
+ },
+ {
+ "id": "num-traits 0.2.14",
+ "target": "num_traits"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.1.42"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "num-rational 0.3.2": {
+ "name": "num-rational",
+ "version": "0.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num-rational/0.3.2/download",
+ "sha256": "12ac428b1cb17fce6f731001d307d351ec70a6d202fc2e60f7d4c5e42d8f4f07"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_rational",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_rational",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "num-integer 0.1.44",
+ "target": "num_integer"
+ },
+ {
+ "id": "num-rational 0.3.2",
+ "target": "build_script_build"
+ },
+ {
+ "id": "num-traits 0.2.14",
+ "target": "num_traits"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.2"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "num-traits 0.2.14": {
+ "name": "num-traits",
+ "version": "0.2.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num-traits/0.2.14/download",
+ "sha256": "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_traits",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_traits",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "i128",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "num-traits 0.2.14",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.14"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "num_cpus 1.13.1": {
+ "name": "num_cpus",
+ "version": "1.13.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num_cpus/1.13.1/download",
+ "sha256": "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_cpus",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_cpus",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(not(windows))": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "1.13.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "number_prefix 0.3.0": {
+ "name": "number_prefix",
+ "version": "0.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/number_prefix/0.3.0/download",
+ "sha256": "17b02fc0ff9a9e4b35b3342880f48e896ebf69f2967921fe8646bf5b7125956a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "number_prefix",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "number_prefix",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2015",
+ "version": "0.3.0"
+ },
+ "license": "MIT"
+ },
+ "once_cell 1.10.0": {
+ "name": "once_cell",
+ "version": "1.10.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/once_cell/1.10.0/download",
+ "sha256": "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "once_cell",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "once_cell",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "race",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.10.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "pdqselect 0.1.1": {
+ "name": "pdqselect",
+ "version": "0.1.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pdqselect/0.1.1/download",
+ "sha256": "7778906d9321dd56cde1d1ffa69a73e59dcf5fda6d366f62727adf2bd4193aee"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pdqselect",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pdqselect",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2021",
+ "version": "0.1.1"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "png 0.16.8": {
+ "name": "png",
+ "version": "0.16.8",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/png/0.16.8/download",
+ "sha256": "3c3287920cb847dee3de33d301c463fba14dda99db24214ddf93f83d3021f4c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "png",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "png",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "deflate",
+ "png-encoding"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "crc32fast 1.3.2",
+ "target": "crc32fast"
+ },
+ {
+ "id": "deflate 0.8.6",
+ "target": "deflate"
+ },
+ {
+ "id": "miniz_oxide 0.3.7",
+ "target": "miniz_oxide"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.16.8"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "proc-macro-error 1.0.4": {
+ "name": "proc-macro-error",
+ "version": "1.0.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro-error/1.0.4/download",
+ "sha256": "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "proc_macro_error",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro_error",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "syn",
+ "syn-error"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro-error 1.0.4",
+ "target": "build_script_build"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "proc-macro-error-attr 1.0.4",
+ "target": "proc_macro_error_attr"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.4"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "proc-macro-error-attr 1.0.4": {
+ "name": "proc-macro-error-attr",
+ "version": "1.0.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro-error-attr/1.0.4/download",
+ "sha256": "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "proc_macro_error_attr",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro_error_attr",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro-error-attr 1.0.4",
+ "target": "build_script_build"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.4"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "proc-macro2 1.0.36": {
+ "name": "proc-macro2",
+ "version": "1.0.36",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download",
+ "sha256": "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "proc_macro2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.36"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "quote 1.0.15": {
+ "name": "quote",
+ "version": "1.0.15",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/quote/1.0.15/download",
+ "sha256": "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "quote",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "quote",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.15"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand 0.8.5": {
+ "name": "rand",
+ "version": "0.8.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand/0.8.5/download",
+ "sha256": "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "rand_core 0.6.3",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.8.5"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_core 0.6.3": {
+ "name": "rand_core",
+ "version": "0.6.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_core/0.6.3/download",
+ "sha256": "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.6.3"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "rand_pcg 0.3.1": {
+ "name": "rand_pcg",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rand_pcg/0.3.1/download",
+ "sha256": "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rand_pcg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rand_pcg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "rand_core 0.6.3",
+ "target": "rand_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "regex 1.5.4": {
+ "name": "regex",
+ "version": "1.5.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/regex/1.5.4/download",
+ "sha256": "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "regex",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "regex",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "regex-syntax 0.6.25",
+ "target": "regex_syntax"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.5.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "regex-syntax 0.6.25": {
+ "name": "regex-syntax",
+ "version": "0.6.25",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download",
+ "sha256": "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "regex_syntax",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "regex_syntax",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.6.25"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "rstar 0.7.1": {
+ "name": "rstar",
+ "version": "0.7.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rstar/0.7.1/download",
+ "sha256": "0650eaaa56cbd1726fd671150fce8ac6ed9d9a25d1624430d7ee9d196052f6b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "rstar",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rstar",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "num-traits 0.2.14",
+ "target": "num_traits"
+ },
+ {
+ "id": "pdqselect 0.1.1",
+ "target": "pdqselect"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.7.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "smallvec 0.4.5": {
+ "name": "smallvec",
+ "version": "0.4.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/smallvec/0.4.5/download",
+ "sha256": "f90c5e5fe535e48807ab94fc611d323935f39d4660c52b26b96446a7b33aef10"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "smallvec",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "smallvec",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2015",
+ "version": "0.4.5"
+ },
+ "license": "MPL-2.0"
+ },
+ "smawk 0.3.1": {
+ "name": "smawk",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/smawk/0.3.1/download",
+ "sha256": "f67ad224767faa3c7d8b6d91985b78e70a1324408abcb1cfcc2be4c06bc06043"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "smawk",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "smawk",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT"
+ },
+ "strsim 0.8.0": {
+ "name": "strsim",
+ "version": "0.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/strsim/0.8.0/download",
+ "sha256": "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "strsim",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "strsim",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.8.0"
+ },
+ "license": "MIT"
+ },
+ "structopt 0.3.26": {
+ "name": "structopt",
+ "version": "0.3.26",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/structopt/0.3.26/download",
+ "sha256": "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "structopt",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "structopt",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "clap 2.34.0",
+ "target": "clap"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "structopt-derive 0.4.18",
+ "target": "structopt_derive"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.3.26"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "structopt-derive 0.4.18": {
+ "name": "structopt-derive",
+ "version": "0.4.18",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/structopt-derive/0.4.18/download",
+ "sha256": "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "structopt_derive",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "structopt_derive",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "heck 0.3.3",
+ "target": "heck"
+ },
+ {
+ "id": "proc-macro-error 1.0.4",
+ "target": "proc_macro_error"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.18"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "syn 1.0.86": {
+ "name": "syn",
+ "version": "1.0.86",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/syn/1.0.86/download",
+ "sha256": "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "syn",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "syn",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "clone-impls",
+ "default",
+ "derive",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.86"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "terminal_size 0.1.17": {
+ "name": "terminal_size",
+ "version": "0.1.17",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/terminal_size/0.1.17/download",
+ "sha256": "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "terminal_size",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "terminal_size",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(not(windows))": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.1.17"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "texture-synthesis 0.8.2": {
+ "name": "texture-synthesis",
+ "version": "0.8.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/texture-synthesis/0.8.2/download",
+ "sha256": "62ff62ae485126fec4f3685ced13a1700afb6f6ea12a1a0dec410ebc5dc9378b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "texture_synthesis",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "texture_synthesis",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "image 0.23.12",
+ "target": "image"
+ },
+ {
+ "id": "num_cpus 1.13.1",
+ "target": "num_cpus"
+ },
+ {
+ "id": "rand 0.8.5",
+ "target": "rand"
+ },
+ {
+ "id": "rand_pcg 0.3.1",
+ "target": "rand_pcg"
+ },
+ {
+ "id": "rstar 0.7.1",
+ "target": "rstar"
+ }
+ ],
+ "selects": {
+ "cfg(not(target_arch = \"wasm32\"))": [
+ {
+ "id": "crossbeam-utils 0.8.7",
+ "target": "crossbeam_utils"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.8.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "texture-synthesis-cli 0.8.2": {
+ "name": "texture-synthesis-cli",
+ "version": "0.8.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/texture-synthesis-cli/0.8.2/download",
+ "sha256": "a7dbdf13f5e6f214750fce1073279b71ce3076157a8d337c9b0f0e14334e2aec"
+ }
+ },
+ "targets": [
+ {
+ "Binary": {
+ "crate_name": "texture-synthesis",
+ "crate_root": "src/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": null,
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "structopt 0.3.26",
+ "target": "structopt"
+ },
+ {
+ "id": "texture-synthesis 0.8.2",
+ "target": "texture_synthesis"
+ }
+ ],
+ "selects": {
+ "cfg(not(target_arch = \"wasm32\"))": [
+ {
+ "id": "atty 0.2.14",
+ "target": "atty"
+ },
+ {
+ "id": "indicatif 0.15.0",
+ "target": "indicatif"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.8.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "textwrap 0.11.0": {
+ "name": "textwrap",
+ "version": "0.11.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/textwrap/0.11.0/download",
+ "sha256": "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "textwrap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "textwrap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.11.0"
+ },
+ "license": "MIT"
+ },
+ "textwrap 0.13.4": {
+ "name": "textwrap",
+ "version": "0.13.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/textwrap/0.13.4/download",
+ "sha256": "cd05616119e612a8041ef58f2b578906cc2531a6069047ae092cfb86a325d835"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "textwrap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "textwrap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "smawk",
+ "unicode-width"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "smawk 0.3.1",
+ "target": "smawk"
+ },
+ {
+ "id": "unicode-width 0.1.9",
+ "target": "unicode_width"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.13.4"
+ },
+ "license": "MIT"
+ },
+ "unicode-segmentation 1.9.0": {
+ "name": "unicode-segmentation",
+ "version": "1.9.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-segmentation/1.9.0/download",
+ "sha256": "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_segmentation",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_segmentation",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.9.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "unicode-width 0.1.9": {
+ "name": "unicode-width",
+ "version": "0.1.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-width/0.1.9/download",
+ "sha256": "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_width",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_width",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "0.1.9"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "unicode-xid 0.2.2": {
+ "name": "unicode-xid",
+ "version": "0.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download",
+ "sha256": "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_xid",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_xid",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "0.2.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "vec_map 0.8.2": {
+ "name": "vec_map",
+ "version": "0.8.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/vec_map/0.8.2/download",
+ "sha256": "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "vec_map",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "vec_map",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.8.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "version_check 0.9.4": {
+ "name": "version_check",
+ "version": "0.9.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/version_check/0.9.4/download",
+ "sha256": "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "version_check",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "version_check",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.9.4"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi 0.3.9": {
+ "name": "winapi",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi/0.3.9/download",
+ "sha256": "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "consoleapi",
+ "errhandlingapi",
+ "fileapi",
+ "handleapi",
+ "minwinbase",
+ "minwindef",
+ "processenv",
+ "winbase",
+ "wincon",
+ "winnt",
+ "winuser"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "i686-pc-windows-gnu": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "winapi_i686_pc_windows_gnu"
+ }
+ ],
+ "x86_64-pc-windows-gnu": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "winapi_x86_64_pc_windows_gnu"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.3.9"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-i686-pc-windows-gnu 0.4.0": {
+ "name": "winapi-i686-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download",
+ "sha256": "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_i686_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_i686_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-x86_64-pc-windows-gnu 0.4.0": {
+ "name": "winapi-x86_64-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download",
+ "sha256": "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_x86_64_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_x86_64_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ }
+ },
+ "binary_crates": [
+ "texture-synthesis-cli 0.8.2"
+ ],
+ "workspace_members": {
+ "extra_workspace_members 0.1.0": "extra_workspace_members"
+ },
+ "conditions": {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(not(target_arch = \"wasm32\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-pc-windows-msvc",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-pc-windows-msvc",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(not(windows))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-unknown-unknown",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(target_os = \"hermit\")": [],
+ "cfg(target_os = \"windows\")": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "cfg(unix)": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(windows)": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": []
+ }
+}
diff --git a/examples/crate_universe/extra_workspace_members/Cargo.toml b/examples/crate_universe/extra_workspace_members/Cargo.toml
new file mode 100644
index 0000000..2577506
--- /dev/null
+++ b/examples/crate_universe/extra_workspace_members/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "extra_workspace_members"
+version = "0.1.0"
+authors = ["UebelAndre <github@uebelandre.com>"]
+
+[[bin]]
+name = "extra_workspace_members"
+path = "src/main.rs"
+
+[dependencies]
+ferris-says = "0.2.1"
diff --git a/examples/crate_universe/extra_workspace_members/src/main.rs b/examples/crate_universe/extra_workspace_members/src/main.rs
new file mode 100644
index 0000000..0f2fffe
--- /dev/null
+++ b/examples/crate_universe/extra_workspace_members/src/main.rs
@@ -0,0 +1,39 @@
+use std::io::{stdout, BufWriter};
+use std::path::Path;
+use std::process::Command;
+
+fn execute_texture_synthesis() -> Vec<u8> {
+ let texture_synthesis_path = Path::new(env!("TEXTURE_SYNTHESIS_CLI"));
+
+ let output = Command::new(texture_synthesis_path)
+ .arg("--help")
+ .output()
+ .unwrap();
+
+ if !output.status.success() {
+ panic!("Execution of texter-synthesis-cli failed")
+ }
+
+ output.stdout
+}
+
+fn main() {
+ // Run the command
+ let output = execute_texture_synthesis();
+
+ // Print the results
+ let mut writer = BufWriter::new(stdout());
+ ferris_says::say(&output, 120, &mut writer).unwrap();
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ #[test]
+ fn test_output() {
+ let stdout = execute_texture_synthesis();
+ let text = String::from_utf8(stdout).unwrap();
+ assert!(text.contains("Synthesizes images based on example images"));
+ }
+}
diff --git a/examples/crate_universe/multi_package/.bazelrc b/examples/crate_universe/multi_package/.bazelrc
new file mode 100644
index 0000000..d63c809
--- /dev/null
+++ b/examples/crate_universe/multi_package/.bazelrc
@@ -0,0 +1,13 @@
+# A config file containing Bazel settings
+
+# Enable rustfmt
+build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:strict --output_groups=+rustfmt_checks
+
+# Enable clippy
+build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:strict --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/multi_package/3rdparty/BUILD.bazel b/examples/crate_universe/multi_package/3rdparty/BUILD.bazel
new file mode 100644
index 0000000..77a676d
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/BUILD.bazel
@@ -0,0 +1,4 @@
+exports_files(
+ glob(["*.bazel"]),
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/crate_universe/multi_package/3rdparty/BUILD.curl.bazel b/examples/crate_universe/multi_package/3rdparty/BUILD.curl.bazel
new file mode 100644
index 0000000..0337de2
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/BUILD.curl.bazel
@@ -0,0 +1,56 @@
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+_CACHE_ENTRIES = {
+ "BUILD_CURL_EXE": "off",
+ "BUILD_SHARED_LIBS": "off",
+ "CMAKE_BUILD_TYPE": "RELEASE",
+ "CMAKE_PREFIX_PATH": "$$EXT_BUILD_DEPS$$/openssl",
+ "CMAKE_USE_OPENSSL": "on",
+ # TODO: ldap should likely be enabled
+ "CURL_DISABLE_LDAP": "on",
+ "OPENSSL_ROOT_DIR": "$$EXT_BUILD_DEPS$$/openssl",
+}
+
+_MACOS_CACHE_ENTRIES = dict(_CACHE_ENTRIES.items() + {
+ "CMAKE_AR": "",
+ "CMAKE_C_ARCHIVE_CREATE": "",
+}.items())
+
+_LINUX_CACHE_ENTRIES = dict(_CACHE_ENTRIES.items() + {
+ "CMAKE_C_FLAGS": "-fPIC",
+}.items())
+
+cmake(
+ name = "curl",
+ cache_entries = select({
+ "@platforms//os:linux": _LINUX_CACHE_ENTRIES,
+ "@platforms//os:macos": _MACOS_CACHE_ENTRIES,
+ "//conditions:default": _CACHE_ENTRIES,
+ }),
+ generate_args = select({
+ "@platforms//os:windows": ["-GNinja"],
+ "//conditions:default": [],
+ }),
+ generate_crosstool_file = False,
+ lib_source = ":all_srcs",
+ linkopts = select({
+ "@platforms//os:linux": [
+ "-lpthread",
+ ],
+ "//conditions:default": [],
+ }),
+ out_static_libs = select({
+ "@platforms//os:windows": ["libcurl.lib"],
+ "//conditions:default": ["libcurl.a"],
+ }),
+ visibility = ["//visibility:public"],
+ deps = [
+ "@openssl",
+ "@zlib",
+ ],
+)
diff --git a/examples/crate_universe/multi_package/3rdparty/BUILD.libssh2.bazel b/examples/crate_universe/multi_package/3rdparty/BUILD.libssh2.bazel
new file mode 100644
index 0000000..a1baada
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/BUILD.libssh2.bazel
@@ -0,0 +1,34 @@
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+_CACHE_ENTRIES = {
+ "BUILD_EXAMPLES": "off",
+ "BUILD_SHARED_LIBS": "off",
+ "BUILD_TESTING": "off",
+ "CMAKE_FIND_DEBUG_MODE": "on",
+ "CMAKE_PREFIX_PATH": "${CMAKE_PREFIX_PATH:-};$EXT_BUILD_DEPS/openssl",
+}
+
+_LINUX_CACHE_ENTRIES = dict(_CACHE_ENTRIES.items() + {
+ "CMAKE_C_FLAGS": "${CMAKE_C_FLAGS:-} -fPIC",
+}.items())
+
+cmake(
+ name = "libssh2",
+ cache_entries = select({
+ "@platforms//os:linux": _LINUX_CACHE_ENTRIES,
+ "//conditions:default": _CACHE_ENTRIES,
+ }),
+ lib_source = ":all_srcs",
+ out_static_libs = select({
+ # TODO: I'm guessing at this name. Needs to be checked on windows.
+ "@platforms//os:windows": ["libssh2.lib"],
+ "//conditions:default": ["libssh2.a"],
+ }),
+ visibility = ["//visibility:public"],
+ deps = ["@openssl"],
+)
diff --git a/examples/crate_universe/multi_package/3rdparty/BUILD.nasm.bazel b/examples/crate_universe/multi_package/3rdparty/BUILD.nasm.bazel
new file mode 100644
index 0000000..cf9586b
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/BUILD.nasm.bazel
@@ -0,0 +1,14 @@
+load("@bazel_skylib//rules:select_file.bzl", "select_file")
+
+package(default_visibility = ["//visibility:public"])
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+select_file(
+ name = "nasm",
+ srcs = ":all_srcs",
+ subpath = "nasm.exe",
+)
diff --git a/examples/crate_universe/multi_package/3rdparty/BUILD.openssl.bazel b/examples/crate_universe/multi_package/3rdparty/BUILD.openssl.bazel
new file mode 100644
index 0000000..19d0a8c
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/BUILD.openssl.bazel
@@ -0,0 +1,107 @@
+"""An openssl build file based on a snippet found in the github issue:
+https://github.com/bazelbuild/rules_foreign_cc/issues/337
+"""
+
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make", "configure_make_variant")
+
+# Read https://wiki.openssl.org/index.php/Compilation_and_Installation
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+CONFIGURE_OPTIONS = [
+ "no-comp",
+ "no-idea",
+ "no-weak-ssl-ciphers",
+ "no-shared",
+]
+
+LIB_NAME = "openssl"
+
+MAKE_TARGETS = [
+ "build_libs",
+ "install_dev",
+]
+
+config_setting(
+ name = "msvc_compiler",
+ flag_values = {
+ "@bazel_tools//tools/cpp:compiler": "msvc-cl",
+ },
+ visibility = ["//visibility:public"],
+)
+
+alias(
+ name = "openssl",
+ actual = select({
+ ":msvc_compiler": "openssl_msvc",
+ "//conditions:default": "openssl_default",
+ }),
+ visibility = ["//visibility:public"],
+)
+
+configure_make_variant(
+ name = "openssl_msvc",
+ build_data = [
+ "@nasm//:nasm",
+ "@perl//:perl",
+ ],
+ configure_command = "Configure",
+ configure_in_place = True,
+ configure_options = CONFIGURE_OPTIONS + [
+ "VC-WIN64A",
+ # Unset Microsoft Assembler (MASM) flags set by built-in MSVC toolchain,
+ # as NASM is unsed to build OpenSSL rather than MASM
+ "ASFLAGS=\" \"",
+ ],
+ configure_prefix = "$PERL",
+ env = {
+ # The Zi flag must be set otherwise OpenSSL fails to build due to missing .pdb files
+ "CFLAGS": "-Zi",
+ "PATH": "$$(dirname $(execpath @nasm//:nasm)):$$PATH",
+ "PERL": "$(execpath @perl//:perl)",
+ },
+ lib_name = LIB_NAME,
+ lib_source = ":all_srcs",
+ out_static_libs = [
+ "libssl.lib",
+ "libcrypto.lib",
+ ],
+ targets = MAKE_TARGETS,
+ toolchain = "@rules_foreign_cc//toolchains:preinstalled_nmake_toolchain",
+)
+
+configure_make(
+ name = "openssl_default",
+ configure_command = "config",
+ configure_in_place = True,
+ configure_options = CONFIGURE_OPTIONS,
+ env = select({
+ "@platforms//os:macos": {
+ "AR": "",
+ "PERL": "$$EXT_BUILD_ROOT$$/$(PERL)",
+ },
+ "//conditions:default": {
+ "PERL": "$$EXT_BUILD_ROOT$$/$(PERL)",
+ },
+ }),
+ lib_name = LIB_NAME,
+ lib_source = ":all_srcs",
+ # Note that for Linux builds, libssl must come before libcrypto on the linker command-line.
+ # As such, libssl must be listed before libcrypto
+ out_static_libs = [
+ "libssl.a",
+ "libcrypto.a",
+ ],
+ targets = MAKE_TARGETS,
+ toolchains = ["@rules_perl//:current_toolchain"],
+)
+
+filegroup(
+ name = "gen_dir",
+ srcs = [":openssl"],
+ output_group = "gen_dir",
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/crate_universe/multi_package/3rdparty/BUILD.perl.bazel b/examples/crate_universe/multi_package/3rdparty/BUILD.perl.bazel
new file mode 100644
index 0000000..8d7bbe2
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/BUILD.perl.bazel
@@ -0,0 +1,14 @@
+load("@bazel_skylib//rules:select_file.bzl", "select_file")
+
+package(default_visibility = ["//visibility:public"])
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+select_file(
+ name = "perl",
+ srcs = ":all_srcs",
+ subpath = "perl/bin/perl.exe",
+)
diff --git a/examples/crate_universe/multi_package/3rdparty/third_party_deps.bzl b/examples/crate_universe/multi_package/3rdparty/third_party_deps.bzl
new file mode 100644
index 0000000..fbbf70d
--- /dev/null
+++ b/examples/crate_universe/multi_package/3rdparty/third_party_deps.bzl
@@ -0,0 +1,85 @@
+"""A helper module for loading 3rd party dependencies
+The sources here originate from: https://github.com/bazelbuild/rules_foreign_cc/tree/0.6.0/examples/third_party/openssl
+"""
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
+def third_party_deps(prefix = ""):
+ """Definitions for 3rd party dependencies
+
+ Args:
+ prefix (str, optional): An optional prefix for all dependencies
+ """
+ maybe(
+ http_archive,
+ name = (prefix + "__" + "openssl").lstrip("_"),
+ build_file = Label("//multi_package/3rdparty:BUILD.openssl.bazel"),
+ sha256 = "892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5",
+ strip_prefix = "openssl-1.1.1k",
+ urls = [
+ "https://mirror.bazel.build/www.openssl.org/source/openssl-1.1.1k.tar.gz",
+ "https://www.openssl.org/source/openssl-1.1.1k.tar.gz",
+ "https://github.com/openssl/openssl/archive/OpenSSL_1_1_1k.tar.gz",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = (prefix + "__" + "nasm").lstrip("_"),
+ build_file = Label("//multi_package/3rdparty:BUILD.nasm.bazel"),
+ sha256 = "f5c93c146f52b4f1664fa3ce6579f961a910e869ab0dae431bd871bdd2584ef2",
+ strip_prefix = "nasm-2.15.05",
+ urls = [
+ "https://mirror.bazel.build/www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip",
+ "https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = (prefix + "__" + "perl").lstrip("_"),
+ build_file = Label("//multi_package/3rdparty:BUILD.perl.bazel"),
+ sha256 = "aeb973da474f14210d3e1a1f942dcf779e2ae7e71e4c535e6c53ebabe632cc98",
+ urls = [
+ "https://mirror.bazel.build/strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-64bit.zip",
+ "https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-64bit.zip",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = (prefix + "__" + "curl").lstrip("_"),
+ build_file = Label("//multi_package/3rdparty:BUILD.curl.bazel"),
+ sha256 = "e56b3921eeb7a2951959c02db0912b5fcd5fdba5aca071da819e1accf338bbd7",
+ strip_prefix = "curl-7.74.0",
+ type = "tar.gz",
+ urls = [
+ "https://curl.se/download/curl-7.74.0.tar.gz",
+ "https://github.com/curl/curl/releases/download/curl-7_74_0/curl-7.74.0.tar.gz",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = (prefix + "__" + "zlib").lstrip("_"),
+ build_file = Label("//crate_universe/3rdparty:BUILD.zlib.bazel"),
+ sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
+ strip_prefix = "zlib-1.2.11",
+ urls = [
+ "https://zlib.net/zlib-1.2.11.tar.gz",
+ "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = (prefix + "__" + "libssh2").lstrip("_"),
+ build_file = Label("//multi_package/3rdparty:BUILD.libssh2.bazel"),
+ sha256 = "d5fb8bd563305fd1074dda90bd053fb2d29fc4bce048d182f96eaa466dfadafd",
+ strip_prefix = "libssh2-1.9.0",
+ type = "tar.gz",
+ urls = [
+ "https://github.com/libssh2/libssh2/releases/download/libssh2-1.9.0/libssh2-1.9.0.tar.gz",
+ ],
+ )
diff --git a/examples/crate_universe/multi_package/BUILD.bazel b/examples/crate_universe/multi_package/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/crate_universe/multi_package/BUILD.bazel
diff --git a/examples/crate_universe/multi_package/Cargo.Bazel.lock b/examples/crate_universe/multi_package/Cargo.Bazel.lock
new file mode 100644
index 0000000..12540bc
--- /dev/null
+++ b/examples/crate_universe/multi_package/Cargo.Bazel.lock
@@ -0,0 +1,10787 @@
+{
+ "checksum": "cba62ac1869a36d1f714ffd077e59f027e78a09a85df999006e21db814f938f4",
+ "crates": {
+ "aho-corasick 0.7.18": {
+ "name": "aho-corasick",
+ "version": "0.7.18",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/aho-corasick/0.7.18/download",
+ "sha256": "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "aho_corasick",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "aho_corasick",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.7.18"
+ },
+ "license": "Unlicense/MIT"
+ },
+ "anyhow 1.0.55": {
+ "name": "anyhow",
+ "version": "1.0.55",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/anyhow/1.0.55/download",
+ "sha256": "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "anyhow",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "anyhow",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "anyhow 1.0.55",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.55"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "ascii-canvas 3.0.0": {
+ "name": "ascii-canvas",
+ "version": "3.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ascii-canvas/3.0.0/download",
+ "sha256": "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ascii_canvas",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ascii_canvas",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "term 0.7.0",
+ "target": "term"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "3.0.0"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "assert-json-diff 2.0.1": {
+ "name": "assert-json-diff",
+ "version": "2.0.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/assert-json-diff/2.0.1/download",
+ "sha256": "50f1c3703dd33532d7f0ca049168930e9099ecac238e23cf932f3a69c42f06da"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "assert_json_diff",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "assert_json_diff",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "serde_json"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.0.1"
+ },
+ "license": "MIT"
+ },
+ "async-channel 1.6.1": {
+ "name": "async-channel",
+ "version": "1.6.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-channel/1.6.1/download",
+ "sha256": "2114d64672151c0c5eaa5e131ec84a74f06e1e559830dabba01ca30605d66319"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_channel",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_channel",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "concurrent-queue 1.2.2",
+ "target": "concurrent_queue"
+ },
+ {
+ "id": "event-listener 2.5.2",
+ "target": "event_listener"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.6.1"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-executor 1.4.1": {
+ "name": "async-executor",
+ "version": "1.4.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-executor/1.4.1/download",
+ "sha256": "871f9bb5e0a22eeb7e8cf16641feb87c9dc67032ccf8ff49e772eb9941d3a965"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_executor",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_executor",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-task 4.2.0",
+ "target": "async_task"
+ },
+ {
+ "id": "concurrent-queue 1.2.2",
+ "target": "concurrent_queue"
+ },
+ {
+ "id": "fastrand 1.7.0",
+ "target": "fastrand"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.4.1"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-global-executor 2.0.3": {
+ "name": "async-global-executor",
+ "version": "2.0.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-global-executor/2.0.3/download",
+ "sha256": "c026b7e44f1316b567ee750fea85103f87fcb80792b860e979f221259796ca0a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_global_executor",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_global_executor",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "async-io",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-channel 1.6.1",
+ "target": "async_channel"
+ },
+ {
+ "id": "async-executor 1.4.1",
+ "target": "async_executor"
+ },
+ {
+ "id": "async-io 1.6.0",
+ "target": "async_io"
+ },
+ {
+ "id": "async-mutex 1.4.0",
+ "target": "async_mutex"
+ },
+ {
+ "id": "blocking 1.1.0",
+ "target": "blocking"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ },
+ {
+ "id": "num_cpus 1.13.1",
+ "target": "num_cpus"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.0.3"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-io 1.6.0": {
+ "name": "async-io",
+ "version": "1.6.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-io/1.6.0/download",
+ "sha256": "a811e6a479f2439f0c04038796b5cfb3d2ad56c230e0f2d3f7b04d68cfee607b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_io",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_io",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "concurrent-queue 1.2.2",
+ "target": "concurrent_queue"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "parking 2.0.0",
+ "target": "parking"
+ },
+ {
+ "id": "polling 2.2.0",
+ "target": "polling"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ },
+ {
+ "id": "socket2 0.4.4",
+ "target": "socket2"
+ },
+ {
+ "id": "waker-fn 1.1.0",
+ "target": "waker_fn"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "1.6.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-lock 2.5.0": {
+ "name": "async-lock",
+ "version": "2.5.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-lock/2.5.0/download",
+ "sha256": "e97a171d191782fba31bb902b14ad94e24a68145032b7eedf871ab0bc0d077b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_lock",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_lock",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "event-listener 2.5.2",
+ "target": "event_listener"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.5.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-mutex 1.4.0": {
+ "name": "async-mutex",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-mutex/1.4.0/download",
+ "sha256": "479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_mutex",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_mutex",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "event-listener 2.5.2",
+ "target": "event_listener"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.4.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-object-pool 0.1.4": {
+ "name": "async-object-pool",
+ "version": "0.1.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-object-pool/0.1.4/download",
+ "sha256": "aeb901c30ebc2fc4ab46395bbfbdba9542c16559d853645d75190c3056caf3bc"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_object_pool",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_object_pool",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-std 1.10.0",
+ "target": "async_std"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.4"
+ },
+ "license": "MIT"
+ },
+ "async-process 1.3.0": {
+ "name": "async-process",
+ "version": "1.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-process/1.3.0/download",
+ "sha256": "83137067e3a2a6a06d67168e49e68a0957d215410473a740cea95a2425c0b7c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_process",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_process",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "event-listener 2.5.2",
+ "target": "event_listener"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "async-io 1.6.0",
+ "target": "async_io"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "signal-hook 0.3.13",
+ "target": "signal_hook"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "blocking 1.1.0",
+ "target": "blocking"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "1.3.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-std 1.10.0": {
+ "name": "async-std",
+ "version": "1.10.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-std/1.10.0/download",
+ "sha256": "f8056f1455169ab86dd47b47391e4ab0cbd25410a70e9fe675544f49bafaf952"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_std",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_std",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "async-channel",
+ "async-global-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "crossbeam-utils",
+ "default",
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-lite",
+ "gloo-timers",
+ "kv-log-macro",
+ "log",
+ "memchr",
+ "num_cpus",
+ "once_cell",
+ "pin-project-lite",
+ "pin-utils",
+ "slab",
+ "std",
+ "unstable",
+ "wasm-bindgen-futures"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-channel 1.6.1",
+ "target": "async_channel"
+ },
+ {
+ "id": "async-lock 2.5.0",
+ "target": "async_lock"
+ },
+ {
+ "id": "crossbeam-utils 0.8.7",
+ "target": "crossbeam_utils"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-io 0.3.21",
+ "target": "futures_io"
+ },
+ {
+ "id": "kv-log-macro 1.0.7",
+ "target": "kv_log_macro"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "num_cpus 1.13.1",
+ "target": "num_cpus"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "pin-utils 0.1.0",
+ "target": "pin_utils"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ }
+ ],
+ "selects": {
+ "cfg(not(target_os = \"unknown\"))": [
+ {
+ "id": "async-global-executor 2.0.3",
+ "target": "async_global_executor"
+ },
+ {
+ "id": "async-io 1.6.0",
+ "target": "async_io"
+ },
+ {
+ "id": "async-process 1.3.0",
+ "target": "async_process"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ }
+ ],
+ "cfg(target_arch = \"wasm32\")": [
+ {
+ "id": "futures-channel 0.3.21",
+ "target": "futures_channel"
+ },
+ {
+ "id": "gloo-timers 0.2.3",
+ "target": "gloo_timers"
+ },
+ {
+ "id": "wasm-bindgen-futures 0.4.29",
+ "target": "wasm_bindgen_futures"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "1.10.0"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "async-task 4.2.0": {
+ "name": "async-task",
+ "version": "4.2.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-task/4.2.0/download",
+ "sha256": "30696a84d817107fc028e049980e09d5e140e8da8f1caeb17e8e950658a3cea9"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "async_task",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_task",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "4.2.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "async-trait 0.1.52": {
+ "name": "async-trait",
+ "version": "0.1.52",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-trait/0.1.52/download",
+ "sha256": "061a7acccaa286c011ddc30970520b98fa40e00c9d644633fb26b5fc63a265e3"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "async_trait",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_trait",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-trait 0.1.52",
+ "target": "build_script_build"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.52"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "atomic-waker 1.0.0": {
+ "name": "atomic-waker",
+ "version": "1.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/atomic-waker/1.0.0/download",
+ "sha256": "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "atomic_waker",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "atomic_waker",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "atty 0.2.14": {
+ "name": "atty",
+ "version": "0.2.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/atty/0.2.14/download",
+ "sha256": "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "atty",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "atty",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"hermit\")": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.2.14"
+ },
+ "license": "MIT"
+ },
+ "autocfg 1.1.0": {
+ "name": "autocfg",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/autocfg/1.1.0/download",
+ "sha256": "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "autocfg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "autocfg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "base64 0.13.0": {
+ "name": "base64",
+ "version": "0.13.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/base64/0.13.0/download",
+ "sha256": "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "base64",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "base64",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.13.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "basic-cookies 0.1.4": {
+ "name": "basic-cookies",
+ "version": "0.1.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/basic-cookies/0.1.4/download",
+ "sha256": "cb53b6b315f924c7f113b162e53b3901c05fc9966baf84d201dfcc7432a4bb38"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "basic_cookies",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "basic_cookies",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "basic-cookies 0.1.4",
+ "target": "build_script_build"
+ },
+ {
+ "id": "lalrpop-util 0.19.7",
+ "target": "lalrpop_util"
+ },
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.4"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lalrpop 0.19.7",
+ "target": "lalrpop"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT"
+ },
+ "bit-set 0.5.2": {
+ "name": "bit-set",
+ "version": "0.5.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bit-set/0.5.2/download",
+ "sha256": "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bit_set",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bit_set",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bit-vec 0.6.3",
+ "target": "bit_vec"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.5.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "bit-vec 0.6.3": {
+ "name": "bit-vec",
+ "version": "0.6.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bit-vec/0.6.3/download",
+ "sha256": "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bit_vec",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bit_vec",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.6.3"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "bitflags 1.3.2": {
+ "name": "bitflags",
+ "version": "1.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bitflags/1.3.2/download",
+ "sha256": "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bitflags",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bitflags",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "1.3.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "block-buffer 0.9.0": {
+ "name": "block-buffer",
+ "version": "0.9.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/block-buffer/0.9.0/download",
+ "sha256": "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "block_buffer",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "block_buffer",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "generic-array 0.14.5",
+ "target": "generic_array"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.9.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "blocking 1.1.0": {
+ "name": "blocking",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/blocking/1.1.0/download",
+ "sha256": "046e47d4b2d391b1f6f8b407b1deb8dee56c1852ccd868becf2710f601b5f427"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "blocking",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "blocking",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-channel 1.6.1",
+ "target": "async_channel"
+ },
+ {
+ "id": "async-task 4.2.0",
+ "target": "async_task"
+ },
+ {
+ "id": "atomic-waker 1.0.0",
+ "target": "atomic_waker"
+ },
+ {
+ "id": "fastrand 1.7.0",
+ "target": "fastrand"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.1.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "bumpalo 3.9.1": {
+ "name": "bumpalo",
+ "version": "3.9.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bumpalo/3.9.1/download",
+ "sha256": "a4a45a46ab1f2412e53d3a0ade76ffad2025804294569aae387231a0cd6e0899"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bumpalo",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bumpalo",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "3.9.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "bytes 1.1.0": {
+ "name": "bytes",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bytes/1.1.0/download",
+ "sha256": "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bytes",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bytes",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.1.0"
+ },
+ "license": "MIT"
+ },
+ "cache-padded 1.2.0": {
+ "name": "cache-padded",
+ "version": "1.2.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cache-padded/1.2.0/download",
+ "sha256": "c1db59621ec70f09c5e9b597b220c7a2b43611f4710dc03ceb8748637775692c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cache_padded",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cache_padded",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.2.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "castaway 0.1.2": {
+ "name": "castaway",
+ "version": "0.1.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/castaway/0.1.2/download",
+ "sha256": "a2698f953def977c68f935bb0dfa959375ad4638570e969e2f1e9f433cbf1af6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "castaway",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "castaway",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.1.2"
+ },
+ "license": "MIT"
+ },
+ "cc 1.0.73": {
+ "name": "cc",
+ "version": "1.0.73",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cc/1.0.73/download",
+ "sha256": "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "Binary": {
+ "crate_name": "gcc-shim",
+ "crate_root": "src/bin/gcc-shim.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.73"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "cfg-if 1.0.0": {
+ "name": "cfg-if",
+ "version": "1.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
+ "sha256": "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cfg_if",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cfg_if",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "concurrent-queue 1.2.2": {
+ "name": "concurrent-queue",
+ "version": "1.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/concurrent-queue/1.2.2/download",
+ "sha256": "30ed07550be01594c6026cff2a1d7fe9c8f683caa798e12b68694ac9e88286a3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "concurrent_queue",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "concurrent_queue",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cache-padded 1.2.0",
+ "target": "cache_padded"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.2.2"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "core-foundation 0.9.3": {
+ "name": "core-foundation",
+ "version": "0.9.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/core-foundation/0.9.3/download",
+ "sha256": "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "core_foundation",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "core_foundation",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "core-foundation-sys 0.8.3",
+ "target": "core_foundation_sys"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.9.3"
+ },
+ "license": "MIT / Apache-2.0"
+ },
+ "core-foundation-sys 0.8.3": {
+ "name": "core-foundation-sys",
+ "version": "0.8.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/core-foundation-sys/0.8.3/download",
+ "sha256": "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "core_foundation_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "core_foundation_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "core-foundation-sys 0.8.3",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.8.3"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT / Apache-2.0"
+ },
+ "crossbeam-utils 0.8.7": {
+ "name": "crossbeam-utils",
+ "version": "0.8.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/crossbeam-utils/0.8.7/download",
+ "sha256": "b5e5bed1f1c269533fa816a0a5492b3545209a205ca1a54842be180eb63a16a6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "crossbeam_utils",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "crossbeam_utils",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "lazy_static",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "crossbeam-utils 0.8.7",
+ "target": "build_script_build"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.8.7"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "crunchy 0.2.2": {
+ "name": "crunchy",
+ "version": "0.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/crunchy/0.2.2/download",
+ "sha256": "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "crunchy",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "crunchy",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "limit_128"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "crunchy 0.2.2",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.2"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT"
+ },
+ "ctor 0.1.21": {
+ "name": "ctor",
+ "version": "0.1.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ctor/0.1.21/download",
+ "sha256": "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "ctor",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ctor",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.21"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "curl 0.4.42": {
+ "name": "curl",
+ "version": "0.4.42",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/curl/0.4.42/download",
+ "sha256": "7de97b894edd5b5bcceef8b78d7da9b75b1d2f2f9a910569d0bde3dd31d84939"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "curl",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "curl",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "http2",
+ "openssl-probe",
+ "openssl-sys",
+ "ssl",
+ "static-curl"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "curl 0.4.42",
+ "target": "build_script_build"
+ },
+ {
+ "id": "curl-sys 0.4.52+curl-7.81.0",
+ "target": "curl_sys"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "socket2 0.4.4",
+ "target": "socket2"
+ }
+ ],
+ "selects": {
+ "cfg(all(unix, not(target_os = \"macos\")))": [
+ {
+ "id": "openssl-probe 0.1.5",
+ "target": "openssl_probe"
+ },
+ {
+ "id": "openssl-sys 0.9.72",
+ "target": "openssl_sys"
+ }
+ ],
+ "cfg(target_env = \"msvc\")": [
+ {
+ "id": "schannel 0.1.19",
+ "target": "schannel"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.4.42"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "curl-sys 0.4.52+curl-7.81.0",
+ "target": "curl_sys"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT"
+ },
+ "curl-sys 0.4.52+curl-7.81.0": {
+ "name": "curl-sys",
+ "version": "0.4.52+curl-7.81.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/curl-sys/0.4.52+curl-7.81.0/download",
+ "sha256": "14b8c2d1023ea5fded5b7b892e4b8e95f70038a421126a056761a84246a28971"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "curl_sys",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "curl_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "http2",
+ "libnghttp2-sys",
+ "openssl-sys",
+ "ssl",
+ "static-curl"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "libnghttp2-sys 0.1.7+1.45.0",
+ "target": "libnghttp2_sys"
+ },
+ {
+ "id": "libz-sys 1.1.4",
+ "target": "libz_sys"
+ }
+ ],
+ "selects": {
+ "cfg(all(unix, not(target_os = \"macos\")))": [
+ {
+ "id": "openssl-sys 0.9.72",
+ "target": "openssl_sys"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "extra_deps": [
+ "@curl",
+ "@libssh2"
+ ],
+ "edition": "2018",
+ "version": "0.4.52+curl-7.81.0"
+ },
+ "license": "MIT"
+ },
+ "diff 0.1.12": {
+ "name": "diff",
+ "version": "0.1.12",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/diff/0.1.12/download",
+ "sha256": "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "diff",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "diff",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.12"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "digest 0.9.0": {
+ "name": "digest",
+ "version": "0.9.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/digest/0.9.0/download",
+ "sha256": "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "digest",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "digest",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "generic-array 0.14.5",
+ "target": "generic_array"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.9.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "direct-cargo-bazel-deps 0.0.1": {
+ "name": "direct-cargo-bazel-deps",
+ "version": "0.0.1",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "direct_cargo_bazel_deps",
+ "crate_root": ".direct_cargo_bazel_deps.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "direct_cargo_bazel_deps",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.0.1"
+ },
+ "license": null
+ },
+ "dirs-next 2.0.0": {
+ "name": "dirs-next",
+ "version": "2.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/dirs-next/2.0.0/download",
+ "sha256": "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "dirs_next",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "dirs_next",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "dirs-sys-next 0.1.2",
+ "target": "dirs_sys_next"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.0.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "dirs-sys-next 0.1.2": {
+ "name": "dirs-sys-next",
+ "version": "0.1.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/dirs-sys-next/0.1.2/download",
+ "sha256": "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "dirs_sys_next",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "dirs_sys_next",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"redox\")": [
+ {
+ "id": "redox_users 0.4.0",
+ "target": "redox_users"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.1.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "either 1.6.1": {
+ "name": "either",
+ "version": "1.6.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/either/1.6.1/download",
+ "sha256": "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "either",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "either",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.6.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "ena 0.14.0": {
+ "name": "ena",
+ "version": "0.14.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ena/0.14.0/download",
+ "sha256": "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ena",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ena",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.14.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "encoding_rs 0.8.30": {
+ "name": "encoding_rs",
+ "version": "0.8.30",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/encoding_rs/0.8.30/download",
+ "sha256": "7896dc8abb250ffdda33912550faa54c88ec8b998dec0b2c55ab224921ce11df"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "encoding_rs",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "encoding_rs",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "encoding_rs 0.8.30",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.8.30"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": null
+ },
+ "event-listener 2.5.2": {
+ "name": "event-listener",
+ "version": "2.5.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/event-listener/2.5.2/download",
+ "sha256": "77f3309417938f28bf8228fcff79a4a37103981e3e186d2ccd19c74b38f4eb71"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "event_listener",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "event_listener",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "2.5.2"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "fastrand 1.7.0": {
+ "name": "fastrand",
+ "version": "1.7.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/fastrand/1.7.0/download",
+ "sha256": "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "fastrand",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "fastrand",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_arch = \"wasm32\")": [
+ {
+ "id": "instant 0.1.12",
+ "target": "instant"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "1.7.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "fixedbitset 0.2.0": {
+ "name": "fixedbitset",
+ "version": "0.2.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/fixedbitset/0.2.0/download",
+ "sha256": "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "fixedbitset",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "fixedbitset",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.2.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "fnv 1.0.7": {
+ "name": "fnv",
+ "version": "1.0.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/fnv/1.0.7/download",
+ "sha256": "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "fnv",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "fnv",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2015",
+ "version": "1.0.7"
+ },
+ "license": "Apache-2.0 / MIT"
+ },
+ "foreign-types 0.3.2": {
+ "name": "foreign-types",
+ "version": "0.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/foreign-types/0.3.2/download",
+ "sha256": "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "foreign_types",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "foreign_types",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "foreign-types-shared 0.1.1",
+ "target": "foreign_types_shared"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.3.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "foreign-types-shared 0.1.1": {
+ "name": "foreign-types-shared",
+ "version": "0.1.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/foreign-types-shared/0.1.1/download",
+ "sha256": "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "foreign_types_shared",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "foreign_types_shared",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "form_urlencoded 1.0.1": {
+ "name": "form_urlencoded",
+ "version": "1.0.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download",
+ "sha256": "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "form_urlencoded",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "form_urlencoded",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "matches 0.1.9",
+ "target": "matches"
+ },
+ {
+ "id": "percent-encoding 2.1.0",
+ "target": "percent_encoding"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "futures-channel 0.3.21": {
+ "name": "futures-channel",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-channel/0.3.21/download",
+ "sha256": "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_channel",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_channel",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-channel 0.3.21",
+ "target": "build_script_build"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-core 0.3.21": {
+ "name": "futures-core",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-core/0.3.21/download",
+ "sha256": "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-core 0.3.21",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-io 0.3.21": {
+ "name": "futures-io",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-io/0.3.21/download",
+ "sha256": "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_io",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_io",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-lite 1.12.0": {
+ "name": "futures-lite",
+ "version": "1.12.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-lite/1.12.0/download",
+ "sha256": "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_lite",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_lite",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "fastrand",
+ "futures-io",
+ "memchr",
+ "parking",
+ "std",
+ "waker-fn"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "fastrand 1.7.0",
+ "target": "fastrand"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-io 0.3.21",
+ "target": "futures_io"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "parking 2.0.0",
+ "target": "parking"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "waker-fn 1.1.0",
+ "target": "waker_fn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.12.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "futures-macro 0.3.21": {
+ "name": "futures-macro",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-macro/0.3.21/download",
+ "sha256": "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "futures_macro",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_macro",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-sink 0.3.21": {
+ "name": "futures-sink",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-sink/0.3.21/download",
+ "sha256": "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_sink",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_sink",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-task 0.3.21": {
+ "name": "futures-task",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-task/0.3.21/download",
+ "sha256": "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_task",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_task",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-task 0.3.21",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-util 0.3.21": {
+ "name": "futures-util",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-util/0.3.21/download",
+ "sha256": "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "async-await",
+ "async-await-macro",
+ "default",
+ "futures-io",
+ "futures-macro",
+ "io",
+ "memchr",
+ "slab",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-io 0.3.21",
+ "target": "futures_io"
+ },
+ {
+ "id": "futures-task 0.3.21",
+ "target": "futures_task"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "build_script_build"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "pin-utils 0.1.0",
+ "target": "pin_utils"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "futures-macro 0.3.21",
+ "target": "futures_macro"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "generic-array 0.14.5": {
+ "name": "generic-array",
+ "version": "0.14.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/generic-array/0.14.5/download",
+ "sha256": "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "generic_array",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "generic_array",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "generic-array 0.14.5",
+ "target": "build_script_build"
+ },
+ {
+ "id": "typenum 1.15.0",
+ "target": "typenum"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.14.5"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT"
+ },
+ "getrandom 0.2.5": {
+ "name": "getrandom",
+ "version": "0.2.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/getrandom/0.2.5/download",
+ "sha256": "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "getrandom",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "getrandom",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ }
+ ],
+ "selects": {
+ "cfg(target_os = \"wasi\")": [
+ {
+ "id": "wasi 0.10.2+wasi-snapshot-preview1",
+ "target": "wasi"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.2.5"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "gloo-timers 0.2.3": {
+ "name": "gloo-timers",
+ "version": "0.2.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/gloo-timers/0.2.3/download",
+ "sha256": "4d12a7f4e95cfe710f1d624fb1210b7d961a5fb05c4fd942f4feab06e61f590e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "gloo_timers",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "gloo_timers",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "futures",
+ "futures-channel",
+ "futures-core"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-channel 0.3.21",
+ "target": "futures_channel"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "js-sys 0.3.56",
+ "target": "js_sys"
+ },
+ {
+ "id": "wasm-bindgen 0.2.79",
+ "target": "wasm_bindgen"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.3"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "h2 0.3.11": {
+ "name": "h2",
+ "version": "0.3.11",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/h2/0.3.11/download",
+ "sha256": "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "h2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "h2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "fnv 1.0.7",
+ "target": "fnv"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-sink 0.3.21",
+ "target": "futures_sink"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "indexmap"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tokio-util 0.6.9",
+ "target": "tokio_util"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.11"
+ },
+ "license": "MIT"
+ },
+ "hashbrown 0.11.2": {
+ "name": "hashbrown",
+ "version": "0.11.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hashbrown/0.11.2/download",
+ "sha256": "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hashbrown",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hashbrown",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "raw"
+ ],
+ "edition": "2018",
+ "version": "0.11.2"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "hermit-abi 0.1.19": {
+ "name": "hermit-abi",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download",
+ "sha256": "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hermit_abi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hermit_abi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "hex-literal 0.3.4": {
+ "name": "hex-literal",
+ "version": "0.3.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hex-literal/0.3.4/download",
+ "sha256": "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "hex_literal",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hex_literal",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "http 0.2.6": {
+ "name": "http",
+ "version": "0.2.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/http/0.2.6/download",
+ "sha256": "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "http",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "http",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "fnv 1.0.7",
+ "target": "fnv"
+ },
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.6"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "http-body 0.4.4": {
+ "name": "http-body",
+ "version": "0.4.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/http-body/0.4.4/download",
+ "sha256": "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "http_body",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "http_body",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.4"
+ },
+ "license": "MIT"
+ },
+ "httparse 1.6.0": {
+ "name": "httparse",
+ "version": "1.6.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/httparse/1.6.0/download",
+ "sha256": "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "httparse",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "httparse",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "httparse 1.6.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.6.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "httpdate 1.0.2": {
+ "name": "httpdate",
+ "version": "1.0.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/httpdate/1.0.2/download",
+ "sha256": "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "httpdate",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "httpdate",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "httpmock 0.6.6": {
+ "name": "httpmock",
+ "version": "0.6.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/httpmock/0.6.6/download",
+ "sha256": "c159c4fc205e6c1a9b325cb7ec135d13b5f47188ce175dabb76ec847f331d9bd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "httpmock",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "Binary": {
+ "crate_name": "httpmock",
+ "crate_root": "src/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "httpmock",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "basic-cookies",
+ "cookies",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "assert-json-diff 2.0.1",
+ "target": "assert_json_diff"
+ },
+ {
+ "id": "async-object-pool 0.1.4",
+ "target": "async_object_pool"
+ },
+ {
+ "id": "base64 0.13.0",
+ "target": "base64"
+ },
+ {
+ "id": "basic-cookies 0.1.4",
+ "target": "basic_cookies"
+ },
+ {
+ "id": "crossbeam-utils 0.8.7",
+ "target": "crossbeam_utils"
+ },
+ {
+ "id": "form_urlencoded 1.0.1",
+ "target": "form_urlencoded"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "hyper 0.14.17",
+ "target": "hyper"
+ },
+ {
+ "id": "isahc 1.6.0",
+ "target": "isahc"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "levenshtein 1.0.5",
+ "target": "levenshtein"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "serde_json"
+ },
+ {
+ "id": "serde_regex 1.1.0",
+ "target": "serde_regex"
+ },
+ {
+ "id": "similar 2.1.0",
+ "target": "similar"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "url 2.2.2",
+ "target": "url"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "async-trait 0.1.52",
+ "target": "async_trait"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.6.6"
+ },
+ "license": "MIT"
+ },
+ "hyper 0.14.17": {
+ "name": "hyper",
+ "version": "0.14.17",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hyper/0.14.17/download",
+ "sha256": "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hyper",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hyper",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "client",
+ "default",
+ "h2",
+ "http1",
+ "http2",
+ "runtime",
+ "server",
+ "socket2",
+ "tcp"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-channel 0.3.21",
+ "target": "futures_channel"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "h2 0.3.11",
+ "target": "h2"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "http-body 0.4.4",
+ "target": "http_body"
+ },
+ {
+ "id": "httparse 1.6.0",
+ "target": "httparse"
+ },
+ {
+ "id": "httpdate 1.0.2",
+ "target": "httpdate"
+ },
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "socket2 0.4.4",
+ "target": "socket2"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tower-service 0.3.1",
+ "target": "tower_service"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ },
+ {
+ "id": "want 0.3.0",
+ "target": "want"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.14.17"
+ },
+ "license": "MIT"
+ },
+ "hyper-tls 0.5.0": {
+ "name": "hyper-tls",
+ "version": "0.5.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hyper-tls/0.5.0/download",
+ "sha256": "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hyper_tls",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hyper_tls",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "hyper 0.14.17",
+ "target": "hyper"
+ },
+ {
+ "id": "native-tls 0.2.8",
+ "target": "native_tls"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tokio-native-tls 0.3.0",
+ "target": "tokio_native_tls"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.5.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "idna 0.2.3": {
+ "name": "idna",
+ "version": "0.2.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/idna/0.2.3/download",
+ "sha256": "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "idna",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "idna",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "matches 0.1.9",
+ "target": "matches"
+ },
+ {
+ "id": "unicode-bidi 0.3.7",
+ "target": "unicode_bidi"
+ },
+ {
+ "id": "unicode-normalization 0.1.19",
+ "target": "unicode_normalization"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.3"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "indexmap 1.8.0": {
+ "name": "indexmap",
+ "version": "1.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/indexmap/1.8.0/download",
+ "sha256": "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "indexmap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "indexmap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "hashbrown 0.11.2",
+ "target": "hashbrown"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.8.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "instant 0.1.12": {
+ "name": "instant",
+ "version": "0.1.12",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/instant/0.1.12/download",
+ "sha256": "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "instant",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "instant",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.12"
+ },
+ "license": "BSD-3-Clause"
+ },
+ "ipnet 2.4.0": {
+ "name": "ipnet",
+ "version": "2.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ipnet/2.4.0/download",
+ "sha256": "35e70ee094dc02fd9c13fdad4940090f22dbd6ac7c9e7094a46cf0232a50bc7c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ipnet",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ipnet",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "2.4.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "isahc 1.6.0": {
+ "name": "isahc",
+ "version": "1.6.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/isahc/1.6.0/download",
+ "sha256": "d140e84730d325378912ede32d7cd53ef1542725503b3353e5ec8113c7c6f588"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "isahc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "isahc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "encoding_rs",
+ "http2",
+ "mime",
+ "static-curl",
+ "text-decoding"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-channel 1.6.1",
+ "target": "async_channel"
+ },
+ {
+ "id": "castaway 0.1.2",
+ "target": "castaway"
+ },
+ {
+ "id": "crossbeam-utils 0.8.7",
+ "target": "crossbeam_utils"
+ },
+ {
+ "id": "curl 0.4.42",
+ "target": "curl"
+ },
+ {
+ "id": "curl-sys 0.4.52+curl-7.81.0",
+ "target": "curl_sys"
+ },
+ {
+ "id": "encoding_rs 0.8.30",
+ "target": "encoding_rs"
+ },
+ {
+ "id": "event-listener 2.5.2",
+ "target": "event_listener"
+ },
+ {
+ "id": "futures-lite 1.12.0",
+ "target": "futures_lite"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "isahc 1.6.0",
+ "target": "build_script_build"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "mime 0.3.16",
+ "target": "mime"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "polling 2.2.0",
+ "target": "polling"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ },
+ {
+ "id": "sluice 0.5.5",
+ "target": "sluice"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ },
+ {
+ "id": "tracing-futures 0.2.5",
+ "target": "tracing_futures"
+ },
+ {
+ "id": "url 2.2.2",
+ "target": "url"
+ },
+ {
+ "id": "waker-fn 1.1.0",
+ "target": "waker_fn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.6.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT"
+ },
+ "itertools 0.10.3": {
+ "name": "itertools",
+ "version": "0.10.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/itertools/0.10.3/download",
+ "sha256": "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "itertools",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "itertools",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "use_alloc",
+ "use_std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "either 1.6.1",
+ "target": "either"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.10.3"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "itoa 1.0.1": {
+ "name": "itoa",
+ "version": "1.0.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/itoa/1.0.1/download",
+ "sha256": "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "itoa",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "itoa",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "js-sys 0.3.56": {
+ "name": "js-sys",
+ "version": "0.3.56",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/js-sys/0.3.56/download",
+ "sha256": "a38fc24e30fd564ce974c02bf1d337caddff65be6cc4735a1f7eab22a7440f04"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "js_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "js_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "wasm-bindgen 0.2.79",
+ "target": "wasm_bindgen"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.56"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "kv-log-macro 1.0.7": {
+ "name": "kv-log-macro",
+ "version": "1.0.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/kv-log-macro/1.0.7/download",
+ "sha256": "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "kv_log_macro",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "kv_log_macro",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.7"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "lalrpop 0.19.7": {
+ "name": "lalrpop",
+ "version": "0.19.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lalrpop/0.19.7/download",
+ "sha256": "852b75a095da6b69da8c5557731c3afd06525d4f655a4fc1c799e2ec8bc4dce4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lalrpop",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "Binary": {
+ "crate_name": "lalrpop",
+ "crate_root": "src/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lalrpop",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "lexer",
+ "pico-args"
+ ],
+ "data_glob": [
+ "**/*.lalrpop"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ascii-canvas 3.0.0",
+ "target": "ascii_canvas"
+ },
+ {
+ "id": "atty 0.2.14",
+ "target": "atty"
+ },
+ {
+ "id": "bit-set 0.5.2",
+ "target": "bit_set"
+ },
+ {
+ "id": "diff 0.1.12",
+ "target": "diff"
+ },
+ {
+ "id": "ena 0.14.0",
+ "target": "ena"
+ },
+ {
+ "id": "itertools 0.10.3",
+ "target": "itertools"
+ },
+ {
+ "id": "lalrpop-util 0.19.7",
+ "target": "lalrpop_util"
+ },
+ {
+ "id": "petgraph 0.5.1",
+ "target": "petgraph"
+ },
+ {
+ "id": "pico-args 0.4.2",
+ "target": "pico_args"
+ },
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ },
+ {
+ "id": "regex-syntax 0.6.25",
+ "target": "regex_syntax"
+ },
+ {
+ "id": "string_cache 0.8.3",
+ "target": "string_cache"
+ },
+ {
+ "id": "term 0.7.0",
+ "target": "term"
+ },
+ {
+ "id": "tiny-keccak 2.0.2",
+ "target": "tiny_keccak"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.19.7"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "lalrpop-util 0.19.7": {
+ "name": "lalrpop-util",
+ "version": "0.19.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lalrpop-util/0.19.7/download",
+ "sha256": "d6d265705249fe209280676d8f68887859fa42e1d34f342fc05bd47726a5e188"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lalrpop_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lalrpop_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "lexer",
+ "regex",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.19.7"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "lazy_static 1.4.0": {
+ "name": "lazy_static",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lazy_static/1.4.0/download",
+ "sha256": "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lazy_static",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lazy_static",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.4.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "levenshtein 1.0.5": {
+ "name": "levenshtein",
+ "version": "1.0.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/levenshtein/1.0.5/download",
+ "sha256": "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "levenshtein",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "levenshtein",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.0.5"
+ },
+ "license": "MIT"
+ },
+ "libc 0.2.119": {
+ "name": "libc",
+ "version": "0.2.119",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libc/0.2.119/download",
+ "sha256": "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.119"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "libnghttp2-sys 0.1.7+1.45.0": {
+ "name": "libnghttp2-sys",
+ "version": "0.1.7+1.45.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libnghttp2-sys/0.1.7+1.45.0/download",
+ "sha256": "57ed28aba195b38d5ff02b9170cbff627e336a20925e43b4945390401c5dc93f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libnghttp2_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libnghttp2_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "data_glob": [
+ "nghttp2/**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "libnghttp2-sys 0.1.7+1.45.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.1.7+1.45.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**",
+ "nghttp2/**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cc 1.0.73",
+ "target": "cc"
+ }
+ ],
+ "selects": {}
+ },
+ "links": "nghttp2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "libz-sys 1.1.4": {
+ "name": "libz-sys",
+ "version": "1.1.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libz-sys/1.1.4/download",
+ "sha256": "df2bf61678a0a521c3f7daf815d2e6717d85a272a7dcd02c9768272b32bd1e2a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libz_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libz_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "libc"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "libz-sys 1.1.4",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.1.4"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cc 1.0.73",
+ "target": "cc"
+ },
+ {
+ "id": "pkg-config 0.3.24",
+ "target": "pkg_config"
+ }
+ ],
+ "selects": {
+ "cfg(target_env = \"msvc\")": [
+ {
+ "id": "vcpkg 0.2.15",
+ "target": "vcpkg"
+ }
+ ]
+ }
+ },
+ "links": "z"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "lock_api 0.4.6": {
+ "name": "lock_api",
+ "version": "0.4.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lock_api/0.4.6/download",
+ "sha256": "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lock_api",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lock_api",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "scopeguard 1.1.0",
+ "target": "scopeguard"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.6"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "log 0.4.14": {
+ "name": "log",
+ "version": "0.4.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/log/0.4.14/download",
+ "sha256": "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "log",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "log",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "kv_unstable",
+ "value-bag"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "build_script_build"
+ },
+ {
+ "id": "value-bag 1.0.0-alpha.8",
+ "target": "value_bag"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.14"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "matches 0.1.9": {
+ "name": "matches",
+ "version": "0.1.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/matches/0.1.9/download",
+ "sha256": "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "matches",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "matches",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.9"
+ },
+ "license": "MIT"
+ },
+ "md-5 0.9.1": {
+ "name": "md-5",
+ "version": "0.9.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/md-5/0.9.1/download",
+ "sha256": "7b5a279bb9607f9f53c22d496eade00d138d1bdcccd07d74650387cf94942a15"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "md5",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "md5",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "block-buffer 0.9.0",
+ "target": "block_buffer"
+ },
+ {
+ "id": "digest 0.9.0",
+ "target": "digest"
+ },
+ {
+ "id": "opaque-debug 0.3.0",
+ "target": "opaque_debug"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.9.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "memchr 2.4.1": {
+ "name": "memchr",
+ "version": "2.4.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/memchr/2.4.1/download",
+ "sha256": "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "memchr",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "memchr",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.4.1"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Unlicense/MIT"
+ },
+ "mime 0.3.16": {
+ "name": "mime",
+ "version": "0.3.16",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/mime/0.3.16/download",
+ "sha256": "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "mime",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "mime",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.3.16"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "mio 0.8.0": {
+ "name": "mio",
+ "version": "0.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/mio/0.8.0/download",
+ "sha256": "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "mio",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "mio",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "net",
+ "os-ext",
+ "os-poll"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "miow 0.3.7",
+ "target": "miow"
+ },
+ {
+ "id": "ntapi 0.3.7",
+ "target": "ntapi"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.8.0"
+ },
+ "license": "MIT"
+ },
+ "miow 0.3.7": {
+ "name": "miow",
+ "version": "0.3.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/miow/0.3.7/download",
+ "sha256": "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "miow",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "miow",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.7"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "native-tls 0.2.8": {
+ "name": "native-tls",
+ "version": "0.2.8",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/native-tls/0.2.8/download",
+ "sha256": "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "native_tls",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "native_tls",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "native-tls 0.2.8",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "cfg(any(target_os = \"macos\", target_os = \"ios\"))": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "security-framework 2.6.1",
+ "target": "security_framework"
+ },
+ {
+ "id": "security-framework-sys 2.6.1",
+ "target": "security_framework_sys"
+ },
+ {
+ "id": "tempfile 3.3.0",
+ "target": "tempfile"
+ }
+ ],
+ "cfg(not(any(target_os = \"windows\", target_os = \"macos\", target_os = \"ios\")))": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "openssl 0.10.38",
+ "target": "openssl"
+ },
+ {
+ "id": "openssl-probe 0.1.5",
+ "target": "openssl_probe"
+ },
+ {
+ "id": "openssl-sys 0.9.72",
+ "target": "openssl_sys"
+ }
+ ],
+ "cfg(target_os = \"windows\")": [
+ {
+ "id": "schannel 0.1.19",
+ "target": "schannel"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.2.8"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "new_debug_unreachable 1.0.4": {
+ "name": "new_debug_unreachable",
+ "version": "1.0.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/new_debug_unreachable/1.0.4/download",
+ "sha256": "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "debug_unreachable",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "debug_unreachable",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.4"
+ },
+ "license": "MIT"
+ },
+ "ntapi 0.3.7": {
+ "name": "ntapi",
+ "version": "0.3.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ntapi/0.3.7/download",
+ "sha256": "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ntapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ntapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "user"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ntapi 0.3.7",
+ "target": "build_script_build"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.7"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "num_cpus 1.13.1": {
+ "name": "num_cpus",
+ "version": "1.13.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num_cpus/1.13.1/download",
+ "sha256": "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_cpus",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_cpus",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(not(windows))": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "1.13.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "once_cell 1.10.0": {
+ "name": "once_cell",
+ "version": "1.10.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/once_cell/1.10.0/download",
+ "sha256": "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "once_cell",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "once_cell",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "race",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.10.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "opaque-debug 0.3.0": {
+ "name": "opaque-debug",
+ "version": "0.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/opaque-debug/0.3.0/download",
+ "sha256": "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "opaque_debug",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "opaque_debug",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "openssl 0.10.38": {
+ "name": "openssl",
+ "version": "0.10.38",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/openssl/0.10.38/download",
+ "sha256": "0c7ae222234c30df141154f159066c5093ff73b63204dcda7121eb082fc56a95"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "openssl",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "openssl",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "foreign-types 0.3.2",
+ "target": "foreign_types"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "openssl 0.10.38",
+ "target": "build_script_build"
+ },
+ {
+ "id": "openssl-sys 0.9.72",
+ "target": "openssl_sys",
+ "alias": "ffi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.10.38"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "openssl-sys 0.9.72",
+ "target": "openssl_sys",
+ "alias": "ffi"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "Apache-2.0"
+ },
+ "openssl-probe 0.1.5": {
+ "name": "openssl-probe",
+ "version": "0.1.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/openssl-probe/0.1.5/download",
+ "sha256": "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "openssl_probe",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "openssl_probe",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.5"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "openssl-sys 0.9.72": {
+ "name": "openssl-sys",
+ "version": "0.9.72",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/openssl-sys/0.9.72/download",
+ "sha256": "7e46109c383602735fa0a2e48dd2b7c892b048e1bf69e5c3b1d804b7d9c203cb"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "openssl_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_main",
+ "crate_root": "build/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "openssl_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "data": {
+ "common": [
+ "@openssl"
+ ],
+ "selects": {}
+ },
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "openssl-sys 0.9.72",
+ "target": "build_script_main"
+ }
+ ],
+ "selects": {}
+ },
+ "extra_deps": [
+ "@openssl"
+ ],
+ "edition": "2015",
+ "version": "0.9.72"
+ },
+ "build_script_attrs": {
+ "data": {
+ "common": [
+ "@openssl//:gen_dir",
+ "@openssl//:openssl"
+ ],
+ "selects": {}
+ },
+ "data_glob": [
+ "**",
+ "build/**/*.c"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ },
+ {
+ "id": "cc 1.0.73",
+ "target": "cc"
+ },
+ {
+ "id": "pkg-config 0.3.24",
+ "target": "pkg_config"
+ }
+ ],
+ "selects": {
+ "cfg(target_env = \"msvc\")": [
+ {
+ "id": "vcpkg 0.2.15",
+ "target": "vcpkg"
+ }
+ ]
+ }
+ },
+ "build_script_env": {
+ "common": {
+ "OPENSSL_DIR": "$(execpath @openssl//:gen_dir)",
+ "OPENSSL_STATIC": "1"
+ },
+ "selects": {}
+ },
+ "links": "openssl"
+ },
+ "license": "MIT"
+ },
+ "parking 2.0.0": {
+ "name": "parking",
+ "version": "2.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/parking/2.0.0/download",
+ "sha256": "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "parking",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "parking",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "2.0.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "parking_lot 0.11.2": {
+ "name": "parking_lot",
+ "version": "0.11.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/parking_lot/0.11.2/download",
+ "sha256": "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "parking_lot",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "parking_lot",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "instant 0.1.12",
+ "target": "instant"
+ },
+ {
+ "id": "lock_api 0.4.6",
+ "target": "lock_api"
+ },
+ {
+ "id": "parking_lot_core 0.8.5",
+ "target": "parking_lot_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.11.2"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "parking_lot_core 0.8.5": {
+ "name": "parking_lot_core",
+ "version": "0.8.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/parking_lot_core/0.8.5/download",
+ "sha256": "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "parking_lot_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "parking_lot_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "instant 0.1.12",
+ "target": "instant"
+ },
+ {
+ "id": "parking_lot_core 0.8.5",
+ "target": "build_script_build"
+ },
+ {
+ "id": "smallvec 1.8.0",
+ "target": "smallvec"
+ }
+ ],
+ "selects": {
+ "cfg(target_os = \"redox\")": [
+ {
+ "id": "redox_syscall 0.2.11",
+ "target": "syscall"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.8.5"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "percent-encoding 2.1.0": {
+ "name": "percent-encoding",
+ "version": "2.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/percent-encoding/2.1.0/download",
+ "sha256": "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "percent_encoding",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "percent_encoding",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "2.1.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "petgraph 0.5.1": {
+ "name": "petgraph",
+ "version": "0.5.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/petgraph/0.5.1/download",
+ "sha256": "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "petgraph",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "petgraph",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "fixedbitset 0.2.0",
+ "target": "fixedbitset"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "indexmap"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.5.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "phf_shared 0.10.0": {
+ "name": "phf_shared",
+ "version": "0.10.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/phf_shared/0.10.0/download",
+ "sha256": "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "phf_shared",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "phf_shared",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "siphasher 0.3.10",
+ "target": "siphasher"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.10.0"
+ },
+ "license": "MIT"
+ },
+ "pico-args 0.4.2": {
+ "name": "pico-args",
+ "version": "0.4.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pico-args/0.4.2/download",
+ "sha256": "db8bcd96cb740d03149cbad5518db9fd87126a10ab519c011893b1754134c468"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pico_args",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pico_args",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.4.2"
+ },
+ "license": "MIT"
+ },
+ "pin-project 1.0.10": {
+ "name": "pin-project",
+ "version": "1.0.10",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-project/1.0.10/download",
+ "sha256": "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pin_project",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_project",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "pin-project-internal 1.0.10",
+ "target": "pin_project_internal"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.10"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "pin-project-internal 1.0.10": {
+ "name": "pin-project-internal",
+ "version": "1.0.10",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-project-internal/1.0.10/download",
+ "sha256": "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "pin_project_internal",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_project_internal",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.10"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "pin-project-lite 0.2.8": {
+ "name": "pin-project-lite",
+ "version": "0.2.8",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-project-lite/0.2.8/download",
+ "sha256": "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pin_project_lite",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_project_lite",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.2.8"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "pin-utils 0.1.0": {
+ "name": "pin-utils",
+ "version": "0.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-utils/0.1.0/download",
+ "sha256": "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pin_utils",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_utils",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "pkg-config 0.3.24": {
+ "name": "pkg-config",
+ "version": "0.3.24",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pkg-config/0.3.24/download",
+ "sha256": "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pkg_config",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pkg_config",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.3.24"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "pkg_a 0.1.0": {
+ "name": "pkg_a",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pkg_a",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pkg_a",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "anyhow 1.0.55",
+ "target": "anyhow"
+ },
+ {
+ "id": "reqwest 0.11.9",
+ "target": "reqwest"
+ }
+ ],
+ "selects": {}
+ },
+ "deps_dev": {
+ "common": [
+ {
+ "id": "httpmock 0.6.6",
+ "target": "httpmock"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "pkg_b 0.1.0": {
+ "name": "pkg_b",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pkg_b",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pkg_b",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "openssl 0.10.38",
+ "target": "openssl"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "pkg_c 0.1.0": {
+ "name": "pkg_c",
+ "version": "0.1.0",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pkg_c",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pkg_c",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "md-5 0.9.1",
+ "target": "md5"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps_dev": {
+ "common": [
+ {
+ "id": "hex-literal 0.3.4",
+ "target": "hex_literal"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.1.0"
+ },
+ "license": null
+ },
+ "polling 2.2.0": {
+ "name": "polling",
+ "version": "2.2.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/polling/2.2.0/download",
+ "sha256": "685404d509889fade3e86fe3a5803bca2ec09b0c0778d5ada6ec8bf7a8de5259"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "polling",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "polling",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ }
+ ],
+ "selects": {
+ "cfg(any(unix, target_os = \"fuchsia\", target_os = \"vxworks\"))": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "wepoll-ffi 0.1.2",
+ "target": "wepoll_ffi"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "2.2.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "precomputed-hash 0.1.1": {
+ "name": "precomputed-hash",
+ "version": "0.1.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/precomputed-hash/0.1.1/download",
+ "sha256": "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "precomputed_hash",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "precomputed_hash",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.1"
+ },
+ "license": "MIT"
+ },
+ "proc-macro2 1.0.36": {
+ "name": "proc-macro2",
+ "version": "1.0.36",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download",
+ "sha256": "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "proc_macro2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.36"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "quote 1.0.15": {
+ "name": "quote",
+ "version": "1.0.15",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/quote/1.0.15/download",
+ "sha256": "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "quote",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "quote",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.15"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "redox_syscall 0.2.11": {
+ "name": "redox_syscall",
+ "version": "0.2.11",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/redox_syscall/0.2.11/download",
+ "sha256": "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "syscall",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "syscall",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.11"
+ },
+ "license": "MIT"
+ },
+ "redox_users 0.4.0": {
+ "name": "redox_users",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/redox_users/0.4.0/download",
+ "sha256": "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "redox_users",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "redox_users",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "getrandom 0.2.5",
+ "target": "getrandom"
+ },
+ {
+ "id": "redox_syscall 0.2.11",
+ "target": "syscall"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.0"
+ },
+ "license": "MIT"
+ },
+ "regex 1.5.4": {
+ "name": "regex",
+ "version": "1.5.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/regex/1.5.4/download",
+ "sha256": "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "regex",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "regex",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "aho-corasick",
+ "default",
+ "memchr",
+ "perf",
+ "perf-cache",
+ "perf-dfa",
+ "perf-inline",
+ "perf-literal",
+ "std",
+ "unicode",
+ "unicode-age",
+ "unicode-bool",
+ "unicode-case",
+ "unicode-gencat",
+ "unicode-perl",
+ "unicode-script",
+ "unicode-segment"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "aho-corasick 0.7.18",
+ "target": "aho_corasick"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "regex-syntax 0.6.25",
+ "target": "regex_syntax"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.5.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "regex-syntax 0.6.25": {
+ "name": "regex-syntax",
+ "version": "0.6.25",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download",
+ "sha256": "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "regex_syntax",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "regex_syntax",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "unicode",
+ "unicode-age",
+ "unicode-bool",
+ "unicode-case",
+ "unicode-gencat",
+ "unicode-perl",
+ "unicode-script",
+ "unicode-segment"
+ ],
+ "edition": "2018",
+ "version": "0.6.25"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "remove_dir_all 0.5.3": {
+ "name": "remove_dir_all",
+ "version": "0.5.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/remove_dir_all/0.5.3/download",
+ "sha256": "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "remove_dir_all",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "remove_dir_all",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.5.3"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "reqwest 0.11.9": {
+ "name": "reqwest",
+ "version": "0.11.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/reqwest/0.11.9/download",
+ "sha256": "87f242f1488a539a79bac6dbe7c8609ae43b7914b7736210f239a37cccb32525"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "reqwest",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "reqwest",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "__tls",
+ "blocking",
+ "default",
+ "default-tls",
+ "hyper-tls",
+ "json",
+ "native-tls-crate",
+ "serde_json",
+ "tokio-native-tls"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "serde_json"
+ },
+ {
+ "id": "serde_urlencoded 0.7.1",
+ "target": "serde_urlencoded"
+ },
+ {
+ "id": "url 2.2.2",
+ "target": "url"
+ }
+ ],
+ "selects": {
+ "cfg(not(target_arch = \"wasm32\"))": [
+ {
+ "id": "base64 0.13.0",
+ "target": "base64"
+ },
+ {
+ "id": "encoding_rs 0.8.30",
+ "target": "encoding_rs"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "h2 0.3.11",
+ "target": "h2"
+ },
+ {
+ "id": "http-body 0.4.4",
+ "target": "http_body"
+ },
+ {
+ "id": "hyper 0.14.17",
+ "target": "hyper"
+ },
+ {
+ "id": "hyper-tls 0.5.0",
+ "target": "hyper_tls"
+ },
+ {
+ "id": "ipnet 2.4.0",
+ "target": "ipnet"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "mime 0.3.16",
+ "target": "mime"
+ },
+ {
+ "id": "native-tls 0.2.8",
+ "target": "native_tls",
+ "alias": "native_tls_crate"
+ },
+ {
+ "id": "percent-encoding 2.1.0",
+ "target": "percent_encoding"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tokio-native-tls 0.3.0",
+ "target": "tokio_native_tls"
+ }
+ ],
+ "cfg(target_arch = \"wasm32\")": [
+ {
+ "id": "js-sys 0.3.56",
+ "target": "js_sys"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "serde_json"
+ },
+ {
+ "id": "wasm-bindgen 0.2.79",
+ "target": "wasm_bindgen"
+ },
+ {
+ "id": "wasm-bindgen-futures 0.4.29",
+ "target": "wasm_bindgen_futures"
+ },
+ {
+ "id": "web-sys 0.3.56",
+ "target": "web_sys"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winreg 0.7.0",
+ "target": "winreg"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.11.9"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "rustversion 1.0.6": {
+ "name": "rustversion",
+ "version": "1.0.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/rustversion/1.0.6/download",
+ "sha256": "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "rustversion",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build/build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "rustversion",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "rustversion 1.0.6",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.6"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "ryu 1.0.9": {
+ "name": "ryu",
+ "version": "1.0.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ryu/1.0.9/download",
+ "sha256": "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ryu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ryu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.9"
+ },
+ "license": "Apache-2.0 OR BSL-1.0"
+ },
+ "schannel 0.1.19": {
+ "name": "schannel",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/schannel/0.1.19/download",
+ "sha256": "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "schannel",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "schannel",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.1.19"
+ },
+ "license": "MIT"
+ },
+ "scopeguard 1.1.0": {
+ "name": "scopeguard",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/scopeguard/1.1.0/download",
+ "sha256": "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "scopeguard",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "scopeguard",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "security-framework 2.6.1": {
+ "name": "security-framework",
+ "version": "2.6.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/security-framework/2.6.1/download",
+ "sha256": "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "security_framework",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "security_framework",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "OSX_10_9",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "core-foundation 0.9.3",
+ "target": "core_foundation"
+ },
+ {
+ "id": "core-foundation-sys 0.8.3",
+ "target": "core_foundation_sys"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "security-framework-sys 2.6.1",
+ "target": "security_framework_sys"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.6.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "security-framework-sys 2.6.1": {
+ "name": "security-framework-sys",
+ "version": "2.6.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/security-framework-sys/2.6.1/download",
+ "sha256": "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "security_framework_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "security_framework_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "OSX_10_9",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "core-foundation-sys 0.8.3",
+ "target": "core_foundation_sys"
+ },
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.6.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "serde 1.0.136": {
+ "name": "serde",
+ "version": "1.0.136",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde/1.0.136/download",
+ "sha256": "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "derive",
+ "serde_derive",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "serde 1.0.136",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "serde_derive 1.0.136",
+ "target": "serde_derive"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.136"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "serde_derive 1.0.136": {
+ "name": "serde_derive",
+ "version": "1.0.136",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde_derive/1.0.136/download",
+ "sha256": "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "serde_derive",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde_derive",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "serde_derive 1.0.136",
+ "target": "build_script_build"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.0.136"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "serde_json 1.0.79": {
+ "name": "serde_json",
+ "version": "1.0.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde_json/1.0.79/download",
+ "sha256": "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde_json",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde_json",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ },
+ {
+ "id": "ryu 1.0.9",
+ "target": "ryu"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.79"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "serde_regex 1.1.0": {
+ "name": "serde_regex",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde_regex/1.1.0/download",
+ "sha256": "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde_regex",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde_regex",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "regex 1.5.4",
+ "target": "regex"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.1.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "serde_urlencoded 0.7.1": {
+ "name": "serde_urlencoded",
+ "version": "0.7.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde_urlencoded/0.7.1/download",
+ "sha256": "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde_urlencoded",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde_urlencoded",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "form_urlencoded 1.0.1",
+ "target": "form_urlencoded"
+ },
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ },
+ {
+ "id": "ryu 1.0.9",
+ "target": "ryu"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.7.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "signal-hook 0.3.13": {
+ "name": "signal-hook",
+ "version": "0.3.13",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/signal-hook/0.3.13/download",
+ "sha256": "647c97df271007dcea485bb74ffdb57f2e683f1306c854f468a0c244badabf2d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "signal_hook",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "signal_hook",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "channel",
+ "iterator"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "signal-hook 0.3.13",
+ "target": "build_script_build"
+ },
+ {
+ "id": "signal-hook-registry 1.4.0",
+ "target": "signal_hook_registry"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.13"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "signal-hook-registry 1.4.0": {
+ "name": "signal-hook-registry",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/signal-hook-registry/1.4.0/download",
+ "sha256": "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "signal_hook_registry",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "signal_hook_registry",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.4.0"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "similar 2.1.0": {
+ "name": "similar",
+ "version": "2.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/similar/2.1.0/download",
+ "sha256": "2e24979f63a11545f5f2c60141afe249d4f19f84581ea2138065e400941d83d3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "similar",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "similar",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "text"
+ ],
+ "edition": "2018",
+ "version": "2.1.0"
+ },
+ "license": "Apache-2.0"
+ },
+ "siphasher 0.3.10": {
+ "name": "siphasher",
+ "version": "0.3.10",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/siphasher/0.3.10/download",
+ "sha256": "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "siphasher",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "siphasher",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.3.10"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "slab 0.4.5": {
+ "name": "slab",
+ "version": "0.4.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/slab/0.4.5/download",
+ "sha256": "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "slab",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "slab",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.4.5"
+ },
+ "license": "MIT"
+ },
+ "sluice 0.5.5": {
+ "name": "sluice",
+ "version": "0.5.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/sluice/0.5.5/download",
+ "sha256": "6d7400c0eff44aa2fcb5e31a5f24ba9716ed90138769e4977a2ba6014ae63eb5"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "sluice",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "sluice",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-channel 1.6.1",
+ "target": "async_channel"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-io 0.3.21",
+ "target": "futures_io"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.5.5"
+ },
+ "license": "MIT"
+ },
+ "smallvec 1.8.0": {
+ "name": "smallvec",
+ "version": "1.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/smallvec/1.8.0/download",
+ "sha256": "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "smallvec",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "smallvec",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.8.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "socket2 0.4.4": {
+ "name": "socket2",
+ "version": "0.4.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/socket2/0.4.4/download",
+ "sha256": "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "socket2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "socket2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "all"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.4.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "string_cache 0.8.3": {
+ "name": "string_cache",
+ "version": "0.8.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/string_cache/0.8.3/download",
+ "sha256": "33994d0838dc2d152d17a62adf608a869b5e846b65b389af7f3dbc1de45c5b26"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "string_cache",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "string_cache",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "new_debug_unreachable 1.0.4",
+ "target": "debug_unreachable"
+ },
+ {
+ "id": "parking_lot 0.11.2",
+ "target": "parking_lot"
+ },
+ {
+ "id": "phf_shared 0.10.0",
+ "target": "phf_shared"
+ },
+ {
+ "id": "precomputed-hash 0.1.1",
+ "target": "precomputed_hash"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.8.3"
+ },
+ "license": "MIT / Apache-2.0"
+ },
+ "syn 1.0.86": {
+ "name": "syn",
+ "version": "1.0.86",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/syn/1.0.86/download",
+ "sha256": "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "syn",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "syn",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit",
+ "visit-mut"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.86"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "tempfile 3.3.0": {
+ "name": "tempfile",
+ "version": "3.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tempfile/3.3.0/download",
+ "sha256": "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tempfile",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tempfile",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "fastrand 1.7.0",
+ "target": "fastrand"
+ },
+ {
+ "id": "remove_dir_all 0.5.3",
+ "target": "remove_dir_all"
+ }
+ ],
+ "selects": {
+ "cfg(any(unix, target_os = \"wasi\"))": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(target_os = \"redox\")": [
+ {
+ "id": "redox_syscall 0.2.11",
+ "target": "syscall"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "3.3.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "term 0.7.0": {
+ "name": "term",
+ "version": "0.7.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/term/0.7.0/download",
+ "sha256": "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "term",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "term",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "dirs-next 2.0.0",
+ "target": "dirs_next"
+ }
+ ],
+ "selects": {
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [],
+ "selects": {
+ "cfg(windows)": [
+ {
+ "id": "rustversion 1.0.6",
+ "target": "rustversion"
+ }
+ ]
+ }
+ },
+ "version": "0.7.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "tiny-keccak 2.0.2": {
+ "name": "tiny-keccak",
+ "version": "2.0.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tiny-keccak/2.0.2/download",
+ "sha256": "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tiny_keccak",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tiny_keccak",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "sha3"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "crunchy 0.2.2",
+ "target": "crunchy"
+ },
+ {
+ "id": "tiny-keccak 2.0.2",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.0.2"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "CC0-1.0"
+ },
+ "tinyvec 1.5.1": {
+ "name": "tinyvec",
+ "version": "1.5.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tinyvec/1.5.1/download",
+ "sha256": "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tinyvec",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tinyvec",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "tinyvec_macros"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "tinyvec_macros 0.1.0",
+ "target": "tinyvec_macros"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.5.1"
+ },
+ "license": "Zlib OR Apache-2.0 OR MIT"
+ },
+ "tinyvec_macros 0.1.0": {
+ "name": "tinyvec_macros",
+ "version": "0.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download",
+ "sha256": "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tinyvec_macros",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tinyvec_macros",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": "MIT OR Apache-2.0 OR Zlib"
+ },
+ "tokio 1.17.0": {
+ "name": "tokio",
+ "version": "1.17.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio/1.17.0/download",
+ "sha256": "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tokio",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "bytes",
+ "default",
+ "io-util",
+ "libc",
+ "macros",
+ "memchr",
+ "mio",
+ "net",
+ "num_cpus",
+ "once_cell",
+ "rt",
+ "rt-multi-thread",
+ "signal",
+ "signal-hook-registry",
+ "socket2",
+ "sync",
+ "time",
+ "tokio-macros",
+ "winapi"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "mio 0.8.0",
+ "target": "mio"
+ },
+ {
+ "id": "num_cpus 1.13.1",
+ "target": "num_cpus"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "socket2 0.4.4",
+ "target": "socket2"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "signal-hook-registry 1.4.0",
+ "target": "signal_hook_registry"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "tokio-macros 1.7.0",
+ "target": "tokio_macros"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.17.0"
+ },
+ "license": "MIT"
+ },
+ "tokio-macros 1.7.0": {
+ "name": "tokio-macros",
+ "version": "1.7.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio-macros/1.7.0/download",
+ "sha256": "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "tokio_macros",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio_macros",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.7.0"
+ },
+ "license": "MIT"
+ },
+ "tokio-native-tls 0.3.0": {
+ "name": "tokio-native-tls",
+ "version": "0.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio-native-tls/0.3.0/download",
+ "sha256": "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tokio_native_tls",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio_native_tls",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "native-tls 0.2.8",
+ "target": "native_tls"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.0"
+ },
+ "license": "MIT"
+ },
+ "tokio-util 0.6.9": {
+ "name": "tokio-util",
+ "version": "0.6.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio-util/0.6.9/download",
+ "sha256": "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tokio_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "codec",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-sink 0.3.21",
+ "target": "futures_sink"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.6.9"
+ },
+ "license": "MIT"
+ },
+ "tower-service 0.3.1": {
+ "name": "tower-service",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tower-service/0.3.1/download",
+ "sha256": "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tower_service",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tower_service",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT"
+ },
+ "tracing 0.1.31": {
+ "name": "tracing",
+ "version": "0.1.31",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing/0.1.31/download",
+ "sha256": "f6c650a8ef0cd2dd93736f033d21cbd1224c5a967aa0c258d00fcf7dafef9b9f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "attributes",
+ "default",
+ "log",
+ "std",
+ "tracing-attributes"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tracing-core 0.1.22",
+ "target": "tracing_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "tracing-attributes 0.1.19",
+ "target": "tracing_attributes"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.1.31"
+ },
+ "license": "MIT"
+ },
+ "tracing-attributes 0.1.19": {
+ "name": "tracing-attributes",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-attributes/0.1.19/download",
+ "sha256": "8276d9a4a3a558d7b7ad5303ad50b53d58264641b82914b7ada36bd762e7a716"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "tracing_attributes",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_attributes",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT"
+ },
+ "tracing-core 0.1.22": {
+ "name": "tracing-core",
+ "version": "0.1.22",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-core/0.1.22/download",
+ "sha256": "03cfcb51380632a72d3111cb8d3447a8d908e577d31beeac006f836383d29a23"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "lazy_static",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.22"
+ },
+ "license": "MIT"
+ },
+ "tracing-futures 0.2.5": {
+ "name": "tracing-futures",
+ "version": "0.2.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-futures/0.2.5/download",
+ "sha256": "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing_futures",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_futures",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "pin-project",
+ "std",
+ "std-future"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "pin-project 1.0.10",
+ "target": "pin_project"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.5"
+ },
+ "license": "MIT"
+ },
+ "try-lock 0.2.3": {
+ "name": "try-lock",
+ "version": "0.2.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/try-lock/0.2.3/download",
+ "sha256": "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "try_lock",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "try_lock",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.2.3"
+ },
+ "license": "MIT"
+ },
+ "typenum 1.15.0": {
+ "name": "typenum",
+ "version": "1.15.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/typenum/1.15.0/download",
+ "sha256": "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "typenum",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_main",
+ "crate_root": "build/main.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "typenum",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "typenum 1.15.0",
+ "target": "build_script_main"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.15.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "unicode-bidi 0.3.7": {
+ "name": "unicode-bidi",
+ "version": "0.3.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-bidi/0.3.7/download",
+ "sha256": "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_bidi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_bidi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.3.7"
+ },
+ "license": "MIT / Apache-2.0"
+ },
+ "unicode-normalization 0.1.19": {
+ "name": "unicode-normalization",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-normalization/0.1.19/download",
+ "sha256": "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_normalization",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_normalization",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "tinyvec 1.5.1",
+ "target": "tinyvec"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "unicode-xid 0.2.2": {
+ "name": "unicode-xid",
+ "version": "0.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download",
+ "sha256": "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_xid",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_xid",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "0.2.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "url 2.2.2": {
+ "name": "url",
+ "version": "2.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/url/2.2.2/download",
+ "sha256": "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "url",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "url",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "form_urlencoded 1.0.1",
+ "target": "form_urlencoded"
+ },
+ {
+ "id": "idna 0.2.3",
+ "target": "idna"
+ },
+ {
+ "id": "matches 0.1.9",
+ "target": "matches"
+ },
+ {
+ "id": "percent-encoding 2.1.0",
+ "target": "percent_encoding"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.2.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "value-bag 1.0.0-alpha.8": {
+ "name": "value-bag",
+ "version": "1.0.0-alpha.8",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/value-bag/1.0.0-alpha.8/download",
+ "sha256": "79923f7731dc61ebfba3633098bf3ac533bbd35ccd8c57e7088d9a5eebe0263f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "value_bag",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "value_bag",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "value-bag 1.0.0-alpha.8",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "ctor 0.1.21",
+ "target": "ctor"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.0-alpha.8"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "version_check 0.9.4",
+ "target": "version_check",
+ "alias": "rustc"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "vcpkg 0.2.15": {
+ "name": "vcpkg",
+ "version": "0.2.15",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/vcpkg/0.2.15/download",
+ "sha256": "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "vcpkg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "vcpkg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.2.15"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "version_check 0.9.4": {
+ "name": "version_check",
+ "version": "0.9.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/version_check/0.9.4/download",
+ "sha256": "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "version_check",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "version_check",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.9.4"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "waker-fn 1.1.0": {
+ "name": "waker-fn",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/waker-fn/1.1.0/download",
+ "sha256": "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "waker_fn",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "waker_fn",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.1.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "want 0.3.0": {
+ "name": "want",
+ "version": "0.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/want/0.3.0/download",
+ "sha256": "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "want",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "want",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "try-lock 0.2.3",
+ "target": "try_lock"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.0"
+ },
+ "license": "MIT"
+ },
+ "wasi 0.10.2+wasi-snapshot-preview1": {
+ "name": "wasi",
+ "version": "0.10.2+wasi-snapshot-preview1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download",
+ "sha256": "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.10.2+wasi-snapshot-preview1"
+ },
+ "license": "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
+ },
+ "wasm-bindgen 0.2.79": {
+ "name": "wasm-bindgen",
+ "version": "0.2.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasm-bindgen/0.2.79/download",
+ "sha256": "25f1af7423d8588a3d840681122e72e6a24ddbcb3f0ec385cac0d12d24256c06"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasm_bindgen",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasm_bindgen",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "spans",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "wasm-bindgen 0.2.79",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "wasm-bindgen-macro 0.2.79",
+ "target": "wasm_bindgen_macro"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.2.79"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasm-bindgen-backend 0.2.79": {
+ "name": "wasm-bindgen-backend",
+ "version": "0.2.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasm-bindgen-backend/0.2.79/download",
+ "sha256": "8b21c0df030f5a177f3cba22e9bc4322695ec43e7257d865302900290bcdedca"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasm_bindgen_backend",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasm_bindgen_backend",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "spans"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bumpalo 3.9.1",
+ "target": "bumpalo"
+ },
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ },
+ {
+ "id": "wasm-bindgen-shared 0.2.79",
+ "target": "wasm_bindgen_shared"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.79"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasm-bindgen-futures 0.4.29": {
+ "name": "wasm-bindgen-futures",
+ "version": "0.4.29",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasm-bindgen-futures/0.4.29/download",
+ "sha256": "2eb6ec270a31b1d3c7e266b999739109abce8b6c87e4b31fcfcd788b65267395"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasm_bindgen_futures",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasm_bindgen_futures",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "js-sys 0.3.56",
+ "target": "js_sys"
+ },
+ {
+ "id": "wasm-bindgen 0.2.79",
+ "target": "wasm_bindgen"
+ }
+ ],
+ "selects": {
+ "cfg(target_feature = \"atomics\")": [
+ {
+ "id": "web-sys 0.3.56",
+ "target": "web_sys"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.4.29"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasm-bindgen-macro 0.2.79": {
+ "name": "wasm-bindgen-macro",
+ "version": "0.2.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasm-bindgen-macro/0.2.79/download",
+ "sha256": "2f4203d69e40a52ee523b2529a773d5ffc1dc0071801c87b3d270b471b80ed01"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "wasm_bindgen_macro",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasm_bindgen_macro",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "spans"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "wasm-bindgen-macro-support 0.2.79",
+ "target": "wasm_bindgen_macro_support"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.79"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasm-bindgen-macro-support 0.2.79": {
+ "name": "wasm-bindgen-macro-support",
+ "version": "0.2.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasm-bindgen-macro-support/0.2.79/download",
+ "sha256": "bfa8a30d46208db204854cadbb5d4baf5fcf8071ba5bf48190c3e59937962ebc"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasm_bindgen_macro_support",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasm_bindgen_macro_support",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "spans"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ },
+ {
+ "id": "wasm-bindgen-backend 0.2.79",
+ "target": "wasm_bindgen_backend"
+ },
+ {
+ "id": "wasm-bindgen-shared 0.2.79",
+ "target": "wasm_bindgen_shared"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.79"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wasm-bindgen-shared 0.2.79": {
+ "name": "wasm-bindgen-shared",
+ "version": "0.2.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wasm-bindgen-shared/0.2.79/download",
+ "sha256": "3d958d035c4438e28c70e4321a2911302f10135ce78a9c7834c0cab4123d06a2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wasm_bindgen_shared",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wasm_bindgen_shared",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "wasm-bindgen-shared 0.2.79",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.79"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "links": "wasm_bindgen"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "web-sys 0.3.56": {
+ "name": "web-sys",
+ "version": "0.3.56",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/web-sys/0.3.56/download",
+ "sha256": "c060b319f29dd25724f09a2ba1418f142f539b2be99fbf4d2d5a8f7330afb8eb"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "web_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "web_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "Blob",
+ "BlobPropertyBag",
+ "Event",
+ "EventTarget",
+ "File",
+ "FormData",
+ "Headers",
+ "MessageEvent",
+ "Request",
+ "RequestCredentials",
+ "RequestInit",
+ "RequestMode",
+ "Response",
+ "ServiceWorkerGlobalScope",
+ "Window",
+ "Worker",
+ "WorkerGlobalScope"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "js-sys 0.3.56",
+ "target": "js_sys"
+ },
+ {
+ "id": "wasm-bindgen 0.2.79",
+ "target": "wasm_bindgen"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.56"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "wepoll-ffi 0.1.2": {
+ "name": "wepoll-ffi",
+ "version": "0.1.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/wepoll-ffi/0.1.2/download",
+ "sha256": "d743fdedc5c64377b5fc2bc036b01c7fd642205a0d96356034ae3404d49eb7fb"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "wepoll_ffi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "wepoll_ffi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "null-overlapped-wakeups-patch"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "wepoll-ffi 0.1.2",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.2"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**",
+ "vendor/**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cc 1.0.73",
+ "target": "cc"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "MIT OR Apache-2.0 OR BSD-2-Clause"
+ },
+ "winapi 0.3.9": {
+ "name": "winapi",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi/0.3.9/download",
+ "sha256": "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "impl-debug",
+ "impl-default",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "knownfolders",
+ "libloaderapi",
+ "lmcons",
+ "minschannel",
+ "minwinbase",
+ "minwindef",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "objbase",
+ "processenv",
+ "schannel",
+ "securitybaseapi",
+ "shlobj",
+ "sspi",
+ "std",
+ "synchapi",
+ "sysinfoapi",
+ "timezoneapi",
+ "winbase",
+ "wincon",
+ "wincrypt",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winreg",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "i686-pc-windows-gnu": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "winapi_i686_pc_windows_gnu"
+ }
+ ],
+ "x86_64-pc-windows-gnu": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "winapi_x86_64_pc_windows_gnu"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.3.9"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-i686-pc-windows-gnu 0.4.0": {
+ "name": "winapi-i686-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download",
+ "sha256": "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_i686_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_i686_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-x86_64-pc-windows-gnu 0.4.0": {
+ "name": "winapi-x86_64-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download",
+ "sha256": "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_x86_64_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_x86_64_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winreg 0.7.0": {
+ "name": "winreg",
+ "version": "0.7.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winreg/0.7.0/download",
+ "sha256": "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winreg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winreg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.7.0"
+ },
+ "license": "MIT"
+ }
+ },
+ "binary_crates": [
+ "cc 1.0.73",
+ "httpmock 0.6.6",
+ "lalrpop 0.19.7"
+ ],
+ "workspace_members": {
+ "direct-cargo-bazel-deps 0.0.1": "",
+ "pkg_a 0.1.0": "multi_package/pkg_a",
+ "pkg_b 0.1.0": "multi_package/sub_pkgs/pkg_b",
+ "pkg_c 0.1.0": "multi_package/sub_pkgs/pkg_c"
+ },
+ "conditions": {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(all(unix, not(target_os = \"macos\")))": [
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(any(target_os = \"macos\", target_os = \"ios\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "i686-apple-darwin",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios"
+ ],
+ "cfg(any(unix, target_os = \"fuchsia\", target_os = \"vxworks\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(any(unix, target_os = \"wasi\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(not(any(target_os = \"windows\", target_os = \"macos\", target_os = \"ios\")))": [
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-unknown-unknown",
+ "wasm32-wasi",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(not(target_arch = \"wasm32\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-pc-windows-msvc",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-pc-windows-msvc",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(not(target_os = \"unknown\"))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-pc-windows-msvc",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-pc-windows-msvc",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(not(windows))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-unknown-unknown",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(target_arch = \"wasm32\")": [
+ "wasm32-unknown-unknown",
+ "wasm32-wasi"
+ ],
+ "cfg(target_env = \"msvc\")": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "cfg(target_feature = \"atomics\")": [],
+ "cfg(target_os = \"hermit\")": [],
+ "cfg(target_os = \"redox\")": [],
+ "cfg(target_os = \"wasi\")": [
+ "wasm32-wasi"
+ ],
+ "cfg(target_os = \"windows\")": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "cfg(unix)": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(windows)": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": []
+ }
+}
diff --git a/examples/crate_universe/multi_package/pkg_a/BUILD.bazel b/examples/crate_universe/multi_package/pkg_a/BUILD.bazel
new file mode 100644
index 0000000..ff809ad
--- /dev/null
+++ b/examples/crate_universe/multi_package/pkg_a/BUILD.bazel
@@ -0,0 +1,32 @@
+load("@m_pkgs//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+rust_library(
+ name = "pkg_a",
+ srcs = glob(["src/**/*.rs"]),
+ aliases = aliases(),
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ # TODO: There's an issue building OpenSSL on Windows in GitHub CI so for
+ # now all targets that depend on it are disabled
+ target_compatible_with = select({
+ "@platforms//os:linux": [],
+ "@platforms//os:macos": [],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ aliases = aliases(),
+ crate = ":pkg_a",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ # TODO: There's an issue building OpenSSL on Windows in GitHub CI so for
+ # now all targets that depend on it are disabled
+ target_compatible_with = select({
+ "@platforms//os:linux": [],
+ "@platforms//os:macos": [],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
+ deps = all_crate_deps(normal_dev = True),
+)
diff --git a/examples/crate_universe/multi_package/pkg_a/Cargo.lock b/examples/crate_universe/multi_package/pkg_a/Cargo.lock
new file mode 100644
index 0000000..9360870
--- /dev/null
+++ b/examples/crate_universe/multi_package/pkg_a/Cargo.lock
@@ -0,0 +1,1864 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "aho-corasick"
+version = "0.7.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "anyhow"
+version = "1.0.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7"
+
+[[package]]
+name = "ascii-canvas"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6"
+dependencies = [
+ "term",
+]
+
+[[package]]
+name = "assert-json-diff"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50f1c3703dd33532d7f0ca049168930e9099ecac238e23cf932f3a69c42f06da"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "async-channel"
+version = "1.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2114d64672151c0c5eaa5e131ec84a74f06e1e559830dabba01ca30605d66319"
+dependencies = [
+ "concurrent-queue",
+ "event-listener",
+ "futures-core",
+]
+
+[[package]]
+name = "async-executor"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "871f9bb5e0a22eeb7e8cf16641feb87c9dc67032ccf8ff49e772eb9941d3a965"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "once_cell",
+ "slab",
+]
+
+[[package]]
+name = "async-global-executor"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9586ec52317f36de58453159d48351bc244bc24ced3effc1fce22f3d48664af6"
+dependencies = [
+ "async-channel",
+ "async-executor",
+ "async-io",
+ "async-mutex",
+ "blocking",
+ "futures-lite",
+ "num_cpus",
+ "once_cell",
+]
+
+[[package]]
+name = "async-io"
+version = "1.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a811e6a479f2439f0c04038796b5cfb3d2ad56c230e0f2d3f7b04d68cfee607b"
+dependencies = [
+ "concurrent-queue",
+ "futures-lite",
+ "libc",
+ "log",
+ "once_cell",
+ "parking",
+ "polling",
+ "slab",
+ "socket2",
+ "waker-fn",
+ "winapi",
+]
+
+[[package]]
+name = "async-lock"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6a8ea61bf9947a1007c5cada31e647dbc77b103c679858150003ba697ea798b"
+dependencies = [
+ "event-listener",
+]
+
+[[package]]
+name = "async-mutex"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156e"
+dependencies = [
+ "event-listener",
+]
+
+[[package]]
+name = "async-object-pool"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aeb901c30ebc2fc4ab46395bbfbdba9542c16559d853645d75190c3056caf3bc"
+dependencies = [
+ "async-std",
+]
+
+[[package]]
+name = "async-process"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b21b63ab5a0db0369deb913540af2892750e42d949faacc7a61495ac418a1692"
+dependencies = [
+ "async-io",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "libc",
+ "once_cell",
+ "signal-hook",
+ "winapi",
+]
+
+[[package]]
+name = "async-std"
+version = "1.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8056f1455169ab86dd47b47391e4ab0cbd25410a70e9fe675544f49bafaf952"
+dependencies = [
+ "async-channel",
+ "async-global-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "crossbeam-utils",
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-lite",
+ "gloo-timers",
+ "kv-log-macro",
+ "log",
+ "memchr",
+ "num_cpus",
+ "once_cell",
+ "pin-project-lite",
+ "pin-utils",
+ "slab",
+ "wasm-bindgen-futures",
+]
+
+[[package]]
+name = "async-task"
+version = "4.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0"
+
+[[package]]
+name = "async-trait"
+version = "0.1.51"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44318e776df68115a881de9a8fd1b9e53368d7a4a5ce4cc48517da3393233a5e"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "atomic-waker"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a"
+
+[[package]]
+name = "atty"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
+dependencies = [
+ "hermit-abi",
+ "libc",
+ "winapi",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+
+[[package]]
+name = "base64"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
+
+[[package]]
+name = "basic-cookies"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb53b6b315f924c7f113b162e53b3901c05fc9966baf84d201dfcc7432a4bb38"
+dependencies = [
+ "lalrpop",
+ "lalrpop-util",
+ "regex",
+]
+
+[[package]]
+name = "bit-set"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de"
+dependencies = [
+ "bit-vec",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "blocking"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5e170dbede1f740736619b776d7251cb1b9095c435c34d8ca9f57fcd2f335e9"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "atomic-waker",
+ "fastrand",
+ "futures-lite",
+ "once_cell",
+]
+
+[[package]]
+name = "bumpalo"
+version = "3.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f1e260c3a9040a7c19a12468758f4c16f31a81a1fe087482be9570ec864bb6c"
+
+[[package]]
+name = "bytes"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
+
+[[package]]
+name = "cache-padded"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba"
+
+[[package]]
+name = "castaway"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed247d1586918e46f2bbe0f13b06498db8dab5a8c1093f156652e9f2e0a73fc3"
+
+[[package]]
+name = "cc"
+version = "1.0.71"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd"
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "concurrent-queue"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "30ed07550be01594c6026cff2a1d7fe9c8f683caa798e12b68694ac9e88286a3"
+dependencies = [
+ "cache-padded",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6888e10551bb93e424d8df1d07f1a8b4fceb0001a3a4b048bfc47554946f47b3"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db"
+dependencies = [
+ "cfg-if",
+ "lazy_static",
+]
+
+[[package]]
+name = "crunchy"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
+
+[[package]]
+name = "ctor"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa"
+dependencies = [
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "curl"
+version = "0.4.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "877cc2f9b8367e32b6dabb9d581557e651cb3aa693a37f8679091bbf42687d5d"
+dependencies = [
+ "curl-sys",
+ "libc",
+ "openssl-probe",
+ "openssl-sys",
+ "schannel",
+ "socket2",
+ "winapi",
+]
+
+[[package]]
+name = "curl-sys"
+version = "0.4.50+curl-7.79.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4856b76919dd599f31236bb18db5f5bd36e2ce131e64f857ca5c259665b76171"
+dependencies = [
+ "cc",
+ "libc",
+ "libnghttp2-sys",
+ "libz-sys",
+ "openssl-sys",
+ "pkg-config",
+ "vcpkg",
+ "winapi",
+]
+
+[[package]]
+name = "diff"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499"
+
+[[package]]
+name = "difference"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
+
+[[package]]
+name = "dirs-next"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
+dependencies = [
+ "cfg-if",
+ "dirs-sys-next",
+]
+
+[[package]]
+name = "dirs-sys-next"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
+dependencies = [
+ "libc",
+ "redox_users",
+ "winapi",
+]
+
+[[package]]
+name = "either"
+version = "1.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
+
+[[package]]
+name = "ena"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "encoding_rs"
+version = "0.8.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a74ea89a0a1b98f6332de42c95baff457ada66d1cb4030f9ff151b2041a1c746"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "event-listener"
+version = "2.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59"
+
+[[package]]
+name = "fastrand"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b394ed3d285a429378d3b384b9eb1285267e7df4b166df24b7a6939a04dc392e"
+dependencies = [
+ "instant",
+]
+
+[[package]]
+name = "fixedbitset"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d"
+
+[[package]]
+name = "fnv"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+
+[[package]]
+name = "foreign-types"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
+dependencies = [
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
+dependencies = [
+ "matches",
+ "percent-encoding",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5da6ba8c3bb3c165d3c7319fc1cc8304facf1fb8db99c5de877183c08a273888"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88d1c26957f23603395cd326b0ffe64124b818f4449552f960d815cfba83a53d"
+
+[[package]]
+name = "futures-io"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "522de2a0fe3e380f1bc577ba0474108faf3f6b18321dbf60b3b9c39a75073377"
+
+[[package]]
+name = "futures-lite"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "memchr",
+ "parking",
+ "pin-project-lite",
+ "waker-fn",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18e4a4b95cea4b4ccbcf1c5675ca7c4ee4e9e75eb79944d07defde18068f79bb"
+dependencies = [
+ "autocfg",
+ "proc-macro-hack",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36ea153c13024fe480590b3e3d4cad89a0cfacecc24577b68f86c6ced9c2bc11"
+
+[[package]]
+name = "futures-task"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d3d00f4eddb73e498a54394f228cd55853bdf059259e8e7bc6e69d408892e99"
+
+[[package]]
+name = "futures-util"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36568465210a3a6ee45e1f165136d68671471a501e632e9a98d96872222b5481"
+dependencies = [
+ "autocfg",
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "pin-utils",
+ "proc-macro-hack",
+ "proc-macro-nested",
+ "slab",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "gloo-timers"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47204a46aaff920a1ea58b11d03dec6f704287d27561724a4631e450654a891f"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "js-sys",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "h2"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7fd819562fcebdac5afc5c113c3ec36f902840b70fd4fc458799c8ce4607ae55"
+dependencies = [
+ "bytes",
+ "fnv",
+ "futures-core",
+ "futures-sink",
+ "futures-util",
+ "http",
+ "indexmap",
+ "slab",
+ "tokio",
+ "tokio-util",
+ "tracing",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
+
+[[package]]
+name = "hermit-abi"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "http"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b"
+dependencies = [
+ "bytes",
+ "fnv",
+ "itoa",
+]
+
+[[package]]
+name = "http-body"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
+dependencies = [
+ "bytes",
+ "http",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "httparse"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503"
+
+[[package]]
+name = "httpdate"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440"
+
+[[package]]
+name = "httpmock"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "218c2c3dabf4497c87d042b43984a5fd03bcd8a6adb0056ade7df20f88df225a"
+dependencies = [
+ "assert-json-diff",
+ "async-object-pool",
+ "async-trait",
+ "base64",
+ "basic-cookies",
+ "crossbeam-utils",
+ "difference",
+ "form_urlencoded",
+ "futures-util",
+ "hyper",
+ "isahc",
+ "lazy_static",
+ "levenshtein",
+ "log",
+ "qstring",
+ "regex",
+ "serde",
+ "serde_json",
+ "serde_regex",
+ "tokio",
+]
+
+[[package]]
+name = "hyper"
+version = "0.14.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b91bb1f221b6ea1f1e4371216b70f40748774c2fb5971b450c07773fb92d26b"
+dependencies = [
+ "bytes",
+ "futures-channel",
+ "futures-core",
+ "futures-util",
+ "h2",
+ "http",
+ "http-body",
+ "httparse",
+ "httpdate",
+ "itoa",
+ "pin-project-lite",
+ "socket2",
+ "tokio",
+ "tower-service",
+ "tracing",
+ "want",
+]
+
+[[package]]
+name = "hyper-tls"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
+dependencies = [
+ "bytes",
+ "hyper",
+ "native-tls",
+ "tokio",
+ "tokio-native-tls",
+]
+
+[[package]]
+name = "idna"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+dependencies = [
+ "matches",
+ "unicode-bidi",
+ "unicode-normalization",
+]
+
+[[package]]
+name = "indexmap"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5"
+dependencies = [
+ "autocfg",
+ "hashbrown",
+]
+
+[[package]]
+name = "instant"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "ipnet"
+version = "2.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9"
+
+[[package]]
+name = "isahc"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40ef5402b1791c9fc479ef9871601a2f10e4cc0f14414a5c9c6e043fb51e5a56"
+dependencies = [
+ "async-channel",
+ "castaway",
+ "crossbeam-utils",
+ "curl",
+ "curl-sys",
+ "encoding_rs",
+ "event-listener",
+ "futures-lite",
+ "http",
+ "log",
+ "mime",
+ "once_cell",
+ "polling",
+ "slab",
+ "sluice",
+ "tracing",
+ "tracing-futures",
+ "url",
+ "waker-fn",
+]
+
+[[package]]
+name = "itertools"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itoa"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
+
+[[package]]
+name = "js-sys"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7cc9ffccd38c451a86bf13657df244e9c3f37493cce8e5e21e940963777acc84"
+dependencies = [
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "kv-log-macro"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "lalrpop"
+version = "0.19.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b15174f1c529af5bf1283c3bc0058266b483a67156f79589fab2a25e23cf8988"
+dependencies = [
+ "ascii-canvas",
+ "atty",
+ "bit-set",
+ "diff",
+ "ena",
+ "itertools",
+ "lalrpop-util",
+ "petgraph",
+ "pico-args",
+ "regex",
+ "regex-syntax",
+ "string_cache",
+ "term",
+ "tiny-keccak",
+ "unicode-xid",
+]
+
+[[package]]
+name = "lalrpop-util"
+version = "0.19.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3e58cce361efcc90ba8a0a5f982c741ff86b603495bb15a998412e957dcd278"
+dependencies = [
+ "regex",
+]
+
+[[package]]
+name = "lazy_static"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+
+[[package]]
+name = "levenshtein"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760"
+
+[[package]]
+name = "libc"
+version = "0.2.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219"
+
+[[package]]
+name = "libnghttp2-sys"
+version = "0.1.7+1.45.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57ed28aba195b38d5ff02b9170cbff627e336a20925e43b4945390401c5dc93f"
+dependencies = [
+ "cc",
+ "libc",
+]
+
+[[package]]
+name = "libz-sys"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "lock_api"
+version = "0.4.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712a4d093c9976e24e7dbca41db895dabcbac38eb5f4045393d17a95bdfb1109"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+dependencies = [
+ "cfg-if",
+ "value-bag",
+]
+
+[[package]]
+name = "matches"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
+
+[[package]]
+name = "memchr"
+version = "2.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+
+[[package]]
+name = "mime"
+version = "0.3.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
+
+[[package]]
+name = "mio"
+version = "0.7.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc"
+dependencies = [
+ "libc",
+ "log",
+ "miow",
+ "ntapi",
+ "winapi",
+]
+
+[[package]]
+name = "miow"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "native-tls"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d"
+dependencies = [
+ "lazy_static",
+ "libc",
+ "log",
+ "openssl",
+ "openssl-probe",
+ "openssl-sys",
+ "schannel",
+ "security-framework",
+ "security-framework-sys",
+ "tempfile",
+]
+
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
+
+[[package]]
+name = "ntapi"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "num_cpus"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
+dependencies = [
+ "hermit-abi",
+ "libc",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
+
+[[package]]
+name = "openssl"
+version = "0.10.38"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c7ae222234c30df141154f159066c5093ff73b63204dcda7121eb082fc56a95"
+dependencies = [
+ "bitflags",
+ "cfg-if",
+ "foreign-types",
+ "libc",
+ "once_cell",
+ "openssl-sys",
+]
+
+[[package]]
+name = "openssl-probe"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
+
+[[package]]
+name = "openssl-sys"
+version = "0.9.70"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6517987b3f8226b5da3661dad65ff7f300cc59fb5ea8333ca191fc65fde3edf"
+dependencies = [
+ "autocfg",
+ "cc",
+ "libc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "parking"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72"
+
+[[package]]
+name = "parking_lot"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
+dependencies = [
+ "instant",
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
+dependencies = [
+ "cfg-if",
+ "instant",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "winapi",
+]
+
+[[package]]
+name = "percent-encoding"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
+
+[[package]]
+name = "petgraph"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
+dependencies = [
+ "fixedbitset",
+ "indexmap",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "pico-args"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db8bcd96cb740d03149cbad5518db9fd87126a10ab519c011893b1754134c468"
+
+[[package]]
+name = "pin-project"
+version = "1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "576bc800220cc65dac09e99e97b08b358cfab6e17078de8dc5fee223bd2d0c08"
+dependencies = [
+ "pin-project-internal",
+]
+
+[[package]]
+name = "pin-project-internal"
+version = "1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e8fe8163d14ce7f0cdac2e040116f22eac817edabff0be91e8aff7e9accf389"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
+
+[[package]]
+name = "pin-utils"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+
+[[package]]
+name = "pkg-config"
+version = "0.3.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12295df4f294471248581bc09bef3c38a5e46f1e36d6a37353621a0c6c357e1f"
+
+[[package]]
+name = "pkg_a"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+ "httpmock",
+ "reqwest",
+]
+
+[[package]]
+name = "polling"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92341d779fa34ea8437ef4d82d440d5e1ce3f3ff7f824aa64424cd481f9a1f25"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "log",
+ "wepoll-ffi",
+ "winapi",
+]
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba"
+
+[[package]]
+name = "precomputed-hash"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+
+[[package]]
+name = "proc-macro-hack"
+version = "0.5.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5"
+
+[[package]]
+name = "proc-macro-nested"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43"
+dependencies = [
+ "unicode-xid",
+]
+
+[[package]]
+name = "qstring"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rand"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core",
+ "rand_hc",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "rand_hc"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
+dependencies = [
+ "rand_core",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.2.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"
+dependencies = [
+ "bitflags",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64"
+dependencies = [
+ "getrandom",
+ "redox_syscall",
+]
+
+[[package]]
+name = "regex"
+version = "1.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.6.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
+
+[[package]]
+name = "remove_dir_all"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "reqwest"
+version = "0.11.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66d2927ca2f685faf0fc620ac4834690d29e7abb153add10f5812eef20b5e280"
+dependencies = [
+ "base64",
+ "bytes",
+ "encoding_rs",
+ "futures-core",
+ "futures-util",
+ "http",
+ "http-body",
+ "hyper",
+ "hyper-tls",
+ "ipnet",
+ "js-sys",
+ "lazy_static",
+ "log",
+ "mime",
+ "native-tls",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde",
+ "serde_json",
+ "serde_urlencoded",
+ "tokio",
+ "tokio-native-tls",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "winreg",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61b3909d758bb75c79f23d4736fac9433868679d3ad2ea7a61e3c25cfda9a088"
+
+[[package]]
+name = "ryu"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
+
+[[package]]
+name = "schannel"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75"
+dependencies = [
+ "lazy_static",
+ "winapi",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+
+[[package]]
+name = "security-framework"
+version = "2.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "525bc1abfda2e1998d152c45cf13e696f76d0a4972310b22fac1658b05df7c87"
+dependencies = [
+ "bitflags",
+ "core-foundation",
+ "core-foundation-sys",
+ "libc",
+ "security-framework-sys",
+]
+
+[[package]]
+name = "security-framework-sys"
+version = "2.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9dd14d83160b528b7bfd66439110573efcfbe281b17fc2ca9f39f550d619c7e"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "serde"
+version = "1.0.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e466864e431129c7e0d3476b92f20458e5879919a0596c6472738d9fa2d342f8"
+dependencies = [
+ "itoa",
+ "ryu",
+ "serde",
+]
+
+[[package]]
+name = "serde_regex"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf"
+dependencies = [
+ "regex",
+ "serde",
+]
+
+[[package]]
+name = "serde_urlencoded"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9"
+dependencies = [
+ "form_urlencoded",
+ "itoa",
+ "ryu",
+ "serde",
+]
+
+[[package]]
+name = "signal-hook"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c98891d737e271a2954825ef19e46bd16bdb98e2746f2eec4f7a4ef7946efd1"
+dependencies = [
+ "libc",
+ "signal-hook-registry",
+]
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "siphasher"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "533494a8f9b724d33625ab53c6c4800f7cc445895924a8ef649222dcb76e938b"
+
+[[package]]
+name = "slab"
+version = "0.4.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
+
+[[package]]
+name = "sluice"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d7400c0eff44aa2fcb5e31a5f24ba9716ed90138769e4977a2ba6014ae63eb5"
+dependencies = [
+ "async-channel",
+ "futures-core",
+ "futures-io",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309"
+
+[[package]]
+name = "socket2"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5dc90fe6c7be1a323296982db1836d1ea9e47b6839496dde9a541bc496df3516"
+dependencies = [
+ "libc",
+ "winapi",
+]
+
+[[package]]
+name = "string_cache"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "923f0f39b6267d37d23ce71ae7235602134b250ace715dd2c90421998ddac0c6"
+dependencies = [
+ "lazy_static",
+ "new_debug_unreachable",
+ "parking_lot",
+ "phf_shared",
+ "precomputed-hash",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.81"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-xid",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "rand",
+ "redox_syscall",
+ "remove_dir_all",
+ "winapi",
+]
+
+[[package]]
+name = "term"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f"
+dependencies = [
+ "dirs-next",
+ "rustversion",
+ "winapi",
+]
+
+[[package]]
+name = "tiny-keccak"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"
+dependencies = [
+ "crunchy",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f83b2a3d4d9091d0abd7eba4dc2710b1718583bd4d8992e2190720ea38f391f7"
+dependencies = [
+ "tinyvec_macros",
+]
+
+[[package]]
+name = "tinyvec_macros"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
+
+[[package]]
+name = "tokio"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "588b2d10a336da58d877567cd8fb8a14b463e2104910f8132cd054b4b96e29ee"
+dependencies = [
+ "autocfg",
+ "bytes",
+ "libc",
+ "memchr",
+ "mio",
+ "num_cpus",
+ "once_cell",
+ "pin-project-lite",
+ "signal-hook-registry",
+ "tokio-macros",
+ "winapi",
+]
+
+[[package]]
+name = "tokio-macros"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "114383b041aa6212c579467afa0075fbbdd0718de036100bc0ba7961d8cb9095"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "tokio-native-tls"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b"
+dependencies = [
+ "native-tls",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-util"
+version = "0.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "futures-sink",
+ "log",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "tower-service"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
+
+[[package]]
+name = "tracing"
+version = "0.1.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105"
+dependencies = [
+ "cfg-if",
+ "log",
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4"
+dependencies = [
+ "lazy_static",
+]
+
+[[package]]
+name = "tracing-futures"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"
+dependencies = [
+ "pin-project",
+ "tracing",
+]
+
+[[package]]
+name = "try-lock"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
+
+[[package]]
+name = "unicode-bidi"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f"
+
+[[package]]
+name = "unicode-normalization"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9"
+dependencies = [
+ "tinyvec",
+]
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+
+[[package]]
+name = "url"
+version = "2.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "matches",
+ "percent-encoding",
+]
+
+[[package]]
+name = "value-bag"
+version = "1.0.0-alpha.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "79923f7731dc61ebfba3633098bf3ac533bbd35ccd8c57e7088d9a5eebe0263f"
+dependencies = [
+ "ctor",
+ "version_check",
+]
+
+[[package]]
+name = "vcpkg"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+
+[[package]]
+name = "version_check"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
+
+[[package]]
+name = "waker-fn"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca"
+
+[[package]]
+name = "want"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
+dependencies = [
+ "log",
+ "try-lock",
+]
+
+[[package]]
+name = "wasi"
+version = "0.10.2+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.78"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "632f73e236b219150ea279196e54e610f5dbafa5d61786303d4da54f84e47fce"
+dependencies = [
+ "cfg-if",
+ "wasm-bindgen-macro",
+]
+
+[[package]]
+name = "wasm-bindgen-backend"
+version = "0.2.78"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b"
+dependencies = [
+ "bumpalo",
+ "lazy_static",
+ "log",
+ "proc-macro2",
+ "quote",
+ "syn",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e8d7523cb1f2a4c96c1317ca690031b714a51cc14e05f712446691f413f5d39"
+dependencies = [
+ "cfg-if",
+ "js-sys",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.78"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56146e7c495528bf6587663bea13a8eb588d39b36b679d83972e1a2dbbdacf9"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.78"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+ "wasm-bindgen-backend",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.78"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc"
+
+[[package]]
+name = "web-sys"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38eb105f1c59d9eaa6b5cdc92b859d85b926e82cb2e0945cd0c9259faa6fe9fb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wepoll-ffi"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d743fdedc5c64377b5fc2bc036b01c7fd642205a0d96356034ae3404d49eb7fb"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "winreg"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69"
+dependencies = [
+ "winapi",
+]
diff --git a/examples/crate_universe/multi_package/pkg_a/Cargo.toml b/examples/crate_universe/multi_package/pkg_a/Cargo.toml
new file mode 100644
index 0000000..2005a59
--- /dev/null
+++ b/examples/crate_universe/multi_package/pkg_a/Cargo.toml
@@ -0,0 +1,13 @@
+[package]
+name = "pkg_a"
+version = "0.1.0"
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+anyhow = "1.0.44"
+reqwest = { version = "0.11.4", features = ["blocking", "json"] }
+
+[dev-dependencies]
+httpmock = "0.6.2"
diff --git a/examples/crate_universe/multi_package/pkg_a/src/lib.rs b/examples/crate_universe/multi_package/pkg_a/src/lib.rs
new file mode 100644
index 0000000..790c3a5
--- /dev/null
+++ b/examples/crate_universe/multi_package/pkg_a/src/lib.rs
@@ -0,0 +1,40 @@
+use anyhow::{Context, Result};
+
+pub fn request(url: &str) -> Result<reqwest::blocking::Response> {
+ reqwest::blocking::get(url).context("Failed to make request")
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ use httpmock::prelude::*;
+
+ #[test]
+ fn test_request() {
+ // Start a lightweight mock server.
+ let server = MockServer::start();
+
+ // Create a mock on the server.
+ let hello_mock = server.mock(|when, then| {
+ when.method(GET)
+ .path("/translate")
+ .query_param("word", "hello");
+ then.status(200)
+ .header("content-type", "text/html; charset=UTF-8")
+ .body("Hallo");
+ });
+
+ // Send an HTTP request to the mock server. This simulates your code.
+ let response = request(&server.url("/translate?word=hello")).unwrap();
+
+ // Ensure the specified mock was called exactly one time (or fail with a detailed error description).
+ hello_mock.assert();
+
+ // Ensure the mock server did respond as specified.
+ assert_eq!(response.status(), 200);
+
+ // Ensure the body contains the results we expect
+ assert_eq!(response.text().unwrap(), "Hallo")
+ }
+}
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_b/BUILD.bazel b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/BUILD.bazel
new file mode 100644
index 0000000..8ede88d
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/BUILD.bazel
@@ -0,0 +1,32 @@
+load("@m_pkgs//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+rust_library(
+ name = "pkg_b",
+ srcs = glob(["src/**/*.rs"]),
+ aliases = aliases(),
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ # TODO: There's an issue building OpenSSL on Windows in GitHub CI so for
+ # now all targets that depend on it are disabled
+ target_compatible_with = select({
+ "@platforms//os:linux": [],
+ "@platforms//os:macos": [],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ aliases = aliases(),
+ crate = ":pkg_b",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ # TODO: There's an issue building OpenSSL on Windows in GitHub CI so for
+ # now all targets that depend on it are disabled
+ target_compatible_with = select({
+ "@platforms//os:linux": [],
+ "@platforms//os:macos": [],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
+ deps = all_crate_deps(normal_dev = True),
+)
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_b/Cargo.lock b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/Cargo.lock
new file mode 100644
index 0000000..78dff50
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/Cargo.lock
@@ -0,0 +1,100 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "autocfg"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "cc"
+version = "1.0.71"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd"
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "foreign-types"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
+dependencies = [
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
+
+[[package]]
+name = "libc"
+version = "0.2.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219"
+
+[[package]]
+name = "once_cell"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
+
+[[package]]
+name = "openssl"
+version = "0.10.38"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c7ae222234c30df141154f159066c5093ff73b63204dcda7121eb082fc56a95"
+dependencies = [
+ "bitflags",
+ "cfg-if",
+ "foreign-types",
+ "libc",
+ "once_cell",
+ "openssl-sys",
+]
+
+[[package]]
+name = "openssl-sys"
+version = "0.9.70"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6517987b3f8226b5da3661dad65ff7f300cc59fb5ea8333ca191fc65fde3edf"
+dependencies = [
+ "autocfg",
+ "cc",
+ "libc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12295df4f294471248581bc09bef3c38a5e46f1e36d6a37353621a0c6c357e1f"
+
+[[package]]
+name = "pkg_b"
+version = "0.1.0"
+dependencies = [
+ "openssl",
+]
+
+[[package]]
+name = "vcpkg"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_b/Cargo.toml b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/Cargo.toml
new file mode 100644
index 0000000..fbc4c51
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "pkg_b"
+version = "0.1.0"
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+openssl = "0.10.36"
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_b/src/lib.rs b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/src/lib.rs
new file mode 100644
index 0000000..3610031
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_b/src/lib.rs
@@ -0,0 +1,13 @@
+pub fn openssl_version() -> i64 {
+ openssl::version::number()
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ #[test]
+ fn test_opnessl_version() {
+ assert_ne!(openssl_version(), 0)
+ }
+}
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_c/BUILD.bazel b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/BUILD.bazel
new file mode 100644
index 0000000..37ca0b8
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/BUILD.bazel
@@ -0,0 +1,18 @@
+load("@m_pkgs//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+rust_library(
+ name = "pkg_b",
+ srcs = glob(["src/**/*.rs"]),
+ aliases = aliases(),
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ aliases = aliases(),
+ crate = ":pkg_b",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ deps = all_crate_deps(normal_dev = True),
+)
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_c/Cargo.lock b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/Cargo.lock
new file mode 100644
index 0000000..e684bd3
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/Cargo.lock
@@ -0,0 +1,74 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "block-buffer"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "digest"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "generic-array"
+version = "0.14.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817"
+dependencies = [
+ "typenum",
+ "version_check",
+]
+
+[[package]]
+name = "hex-literal"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "21e4590e13640f19f249fe3e4eca5113bc4289f2497710378190e7f4bd96f45b"
+
+[[package]]
+name = "md-5"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b5a279bb9607f9f53c22d496eade00d138d1bdcccd07d74650387cf94942a15"
+dependencies = [
+ "block-buffer",
+ "digest",
+ "opaque-debug",
+]
+
+[[package]]
+name = "opaque-debug"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
+
+[[package]]
+name = "pkg_c"
+version = "0.1.0"
+dependencies = [
+ "hex-literal",
+ "md-5",
+]
+
+[[package]]
+name = "typenum"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63708a265f51345575b27fe43f9500ad611579e764c79edbc2037b1121959ec"
+
+[[package]]
+name = "version_check"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_c/Cargo.toml b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/Cargo.toml
new file mode 100644
index 0000000..1b9a0b4
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/Cargo.toml
@@ -0,0 +1,12 @@
+[package]
+name = "pkg_c"
+version = "0.1.0"
+edition = "2018"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
+md-5 = "0.9.1"
+
+[dev-dependencies]
+hex-literal = "0.3.3"
diff --git a/examples/crate_universe/multi_package/sub_pkgs/pkg_c/src/lib.rs b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/src/lib.rs
new file mode 100644
index 0000000..092d273
--- /dev/null
+++ b/examples/crate_universe/multi_package/sub_pkgs/pkg_c/src/lib.rs
@@ -0,0 +1,29 @@
+use md5::{Digest, Md5};
+
+pub fn hash(bytes: impl AsRef<[u8]>) -> Vec<u8> {
+ // create a Md5 hasher instance
+ let mut hasher = Md5::new();
+
+ // process input message
+ hasher.update(bytes);
+
+ // acquire hash digest in the form of GenericArray,
+ // which in this case is equivalent to [u8; 16]
+ let result = hasher.finalize();
+ result[..].into()
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ use hex_literal::hex;
+
+ #[test]
+ fn test_hash() {
+ assert_eq!(
+ hash(b"hello world")[..],
+ hex!("5eb63bbbe01eeed093cb22bb8f5acdc3")
+ )
+ }
+}
diff --git a/examples/crate_universe/no_cargo_manifests/.bazelrc b/examples/crate_universe/no_cargo_manifests/.bazelrc
new file mode 100644
index 0000000..d63c809
--- /dev/null
+++ b/examples/crate_universe/no_cargo_manifests/.bazelrc
@@ -0,0 +1,13 @@
+# A config file containing Bazel settings
+
+# Enable rustfmt
+build:strict --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
+build:strict --output_groups=+rustfmt_checks
+
+# Enable clippy
+build:strict --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
+build:strict --output_groups=+clippy_checks
+
+# This import should always be last to allow users to override
+# settings for local development.
+try-import %workspace%/user.bazelrc
diff --git a/examples/crate_universe/no_cargo_manifests/BUILD.bazel b/examples/crate_universe/no_cargo_manifests/BUILD.bazel
new file mode 100644
index 0000000..2691eb2
--- /dev/null
+++ b/examples/crate_universe/no_cargo_manifests/BUILD.bazel
@@ -0,0 +1,25 @@
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
+
+rust_binary(
+ name = "no_cargo_manifests",
+ srcs = glob(["**/*.rs"]),
+ edition = "2018",
+ deps = [
+ "@no_cargo//:axum",
+ "@no_cargo//:hyper",
+ "@no_cargo//:mime",
+ "@no_cargo//:serde_json",
+ "@no_cargo//:tokio",
+ "@no_cargo//:tower",
+ "@no_cargo//:tower-http",
+ "@no_cargo//:tracing",
+ "@no_cargo//:tracing-subscriber",
+ ],
+)
+
+rust_test(
+ name = "unit_test",
+ srcs = glob(["**/*.rs"]),
+ crate = ":no_cargo_manifests",
+ edition = "2018",
+)
diff --git a/examples/crate_universe/no_cargo_manifests/Cargo.Bazel.lock b/examples/crate_universe/no_cargo_manifests/Cargo.Bazel.lock
new file mode 100644
index 0000000..6164f28
--- /dev/null
+++ b/examples/crate_universe/no_cargo_manifests/Cargo.Bazel.lock
@@ -0,0 +1,5006 @@
+{
+ "checksum": "5c8bd4f7527784376a1667a00ecf8f9ddd398a2a3ccefee5201b383f56d2c99b",
+ "crates": {
+ "ansi_term 0.12.1": {
+ "name": "ansi_term",
+ "version": "0.12.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ansi_term/0.12.1/download",
+ "sha256": "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ansi_term",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ansi_term",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(target_os = \"windows\")": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.12.1"
+ },
+ "license": "MIT"
+ },
+ "async-trait 0.1.52": {
+ "name": "async-trait",
+ "version": "0.1.52",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/async-trait/0.1.52/download",
+ "sha256": "061a7acccaa286c011ddc30970520b98fa40e00c9d644633fb26b5fc63a265e3"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "async_trait",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "async_trait",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "async-trait 0.1.52",
+ "target": "build_script_build"
+ },
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.52"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "autocfg 1.1.0": {
+ "name": "autocfg",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/autocfg/1.1.0/download",
+ "sha256": "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "autocfg",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "autocfg",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "axum 0.4.8": {
+ "name": "axum",
+ "version": "0.4.8",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/axum/0.4.8/download",
+ "sha256": "c9f346c92c1e9a71d14fe4aaf7c2a5d9932cc4e5e48d8fb6641524416eb79ddd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "axum",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "axum",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**",
+ "**/*.md"
+ ],
+ "crate_features": [
+ "default",
+ "http1",
+ "json",
+ "serde_json",
+ "tower-log"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "axum-core 0.1.2",
+ "target": "axum_core"
+ },
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "http-body 0.4.4",
+ "target": "http_body"
+ },
+ {
+ "id": "hyper 0.14.17",
+ "target": "hyper"
+ },
+ {
+ "id": "matchit 0.4.6",
+ "target": "matchit"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "mime 0.3.16",
+ "target": "mime"
+ },
+ {
+ "id": "percent-encoding 2.1.0",
+ "target": "percent_encoding"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "serde_json"
+ },
+ {
+ "id": "serde_urlencoded 0.7.1",
+ "target": "serde_urlencoded"
+ },
+ {
+ "id": "sync_wrapper 0.1.1",
+ "target": "sync_wrapper"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tower 0.4.12",
+ "target": "tower"
+ },
+ {
+ "id": "tower-http 0.2.4",
+ "target": "tower_http"
+ },
+ {
+ "id": "tower-layer 0.3.1",
+ "target": "tower_layer"
+ },
+ {
+ "id": "tower-service 0.3.1",
+ "target": "tower_service"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "async-trait 0.1.52",
+ "target": "async_trait"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.4.8"
+ },
+ "license": "MIT"
+ },
+ "axum-core 0.1.2": {
+ "name": "axum-core",
+ "version": "0.1.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/axum-core/0.1.2/download",
+ "sha256": "6dbcda393bef9c87572779cb8ef916f12d77750b27535dd6819fa86591627a51"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "axum_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "axum_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "http-body 0.4.4",
+ "target": "http_body"
+ },
+ {
+ "id": "mime 0.3.16",
+ "target": "mime"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "async-trait 0.1.52",
+ "target": "async_trait"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.1.2"
+ },
+ "license": "MIT"
+ },
+ "bitflags 1.3.2": {
+ "name": "bitflags",
+ "version": "1.3.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bitflags/1.3.2/download",
+ "sha256": "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bitflags",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bitflags",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "1.3.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "bytes 1.1.0": {
+ "name": "bytes",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/bytes/1.1.0/download",
+ "sha256": "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "bytes",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "bytes",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.1.0"
+ },
+ "license": "MIT"
+ },
+ "cfg-if 1.0.0": {
+ "name": "cfg-if",
+ "version": "1.0.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
+ "sha256": "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "cfg_if",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "cfg_if",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "direct-cargo-bazel-deps 0.0.1": {
+ "name": "direct-cargo-bazel-deps",
+ "version": "0.0.1",
+ "repository": null,
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "direct_cargo_bazel_deps",
+ "crate_root": ".direct_cargo_bazel_deps.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "direct_cargo_bazel_deps",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "axum 0.4.8",
+ "target": "axum"
+ },
+ {
+ "id": "hyper 0.14.17",
+ "target": "hyper"
+ },
+ {
+ "id": "mime 0.3.16",
+ "target": "mime"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "serde_json"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tower 0.4.12",
+ "target": "tower"
+ },
+ {
+ "id": "tower-http 0.2.4",
+ "target": "tower_http"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ },
+ {
+ "id": "tracing-subscriber 0.3.9",
+ "target": "tracing_subscriber"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.0.1"
+ },
+ "license": null
+ },
+ "fnv 1.0.7": {
+ "name": "fnv",
+ "version": "1.0.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/fnv/1.0.7/download",
+ "sha256": "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "fnv",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "fnv",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2015",
+ "version": "1.0.7"
+ },
+ "license": "Apache-2.0 / MIT"
+ },
+ "form_urlencoded 1.0.1": {
+ "name": "form_urlencoded",
+ "version": "1.0.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download",
+ "sha256": "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "form_urlencoded",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "form_urlencoded",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "matches 0.1.9",
+ "target": "matches"
+ },
+ {
+ "id": "percent-encoding 2.1.0",
+ "target": "percent_encoding"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "futures-channel 0.3.21": {
+ "name": "futures-channel",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-channel/0.3.21/download",
+ "sha256": "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_channel",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_channel",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-channel 0.3.21",
+ "target": "build_script_build"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-core 0.3.21": {
+ "name": "futures-core",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-core/0.3.21/download",
+ "sha256": "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-core 0.3.21",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-sink 0.3.21": {
+ "name": "futures-sink",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-sink/0.3.21/download",
+ "sha256": "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_sink",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_sink",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-task 0.3.21": {
+ "name": "futures-task",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-task/0.3.21/download",
+ "sha256": "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_task",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_task",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-task 0.3.21",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "futures-util 0.3.21": {
+ "name": "futures-util",
+ "version": "0.3.21",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/futures-util/0.3.21/download",
+ "sha256": "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "futures_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "futures_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-task 0.3.21",
+ "target": "futures_task"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "build_script_build"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "pin-utils 0.1.0",
+ "target": "pin_utils"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.21"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "h2 0.3.11": {
+ "name": "h2",
+ "version": "0.3.11",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/h2/0.3.11/download",
+ "sha256": "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "h2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "h2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "fnv 1.0.7",
+ "target": "fnv"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-sink 0.3.21",
+ "target": "futures_sink"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "indexmap"
+ },
+ {
+ "id": "slab 0.4.5",
+ "target": "slab"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tokio-util 0.6.9",
+ "target": "tokio_util"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.11"
+ },
+ "license": "MIT"
+ },
+ "hashbrown 0.11.2": {
+ "name": "hashbrown",
+ "version": "0.11.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hashbrown/0.11.2/download",
+ "sha256": "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hashbrown",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hashbrown",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "raw"
+ ],
+ "edition": "2018",
+ "version": "0.11.2"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "hermit-abi 0.1.19": {
+ "name": "hermit-abi",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download",
+ "sha256": "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hermit_abi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hermit_abi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "http 0.2.6": {
+ "name": "http",
+ "version": "0.2.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/http/0.2.6/download",
+ "sha256": "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "http",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "http",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "fnv 1.0.7",
+ "target": "fnv"
+ },
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.6"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "http-body 0.4.4": {
+ "name": "http-body",
+ "version": "0.4.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/http-body/0.4.4/download",
+ "sha256": "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "http_body",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "http_body",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.4"
+ },
+ "license": "MIT"
+ },
+ "http-range-header 0.3.0": {
+ "name": "http-range-header",
+ "version": "0.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/http-range-header/0.3.0/download",
+ "sha256": "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "http_range_header",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "http_range_header",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.0"
+ },
+ "license": "MIT"
+ },
+ "httparse 1.6.0": {
+ "name": "httparse",
+ "version": "1.6.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/httparse/1.6.0/download",
+ "sha256": "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "httparse",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "httparse",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "httparse 1.6.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.6.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "httpdate 1.0.2": {
+ "name": "httpdate",
+ "version": "1.0.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/httpdate/1.0.2/download",
+ "sha256": "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "httpdate",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "httpdate",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.2"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "hyper 0.14.17": {
+ "name": "hyper",
+ "version": "0.14.17",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/hyper/0.14.17/download",
+ "sha256": "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "hyper",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "hyper",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "client",
+ "default",
+ "full",
+ "h2",
+ "http1",
+ "http2",
+ "runtime",
+ "server",
+ "socket2",
+ "stream",
+ "tcp"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-channel 0.3.21",
+ "target": "futures_channel"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "h2 0.3.11",
+ "target": "h2"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "http-body 0.4.4",
+ "target": "http_body"
+ },
+ {
+ "id": "httparse 1.6.0",
+ "target": "httparse"
+ },
+ {
+ "id": "httpdate 1.0.2",
+ "target": "httpdate"
+ },
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "socket2 0.4.4",
+ "target": "socket2"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tower-service 0.3.1",
+ "target": "tower_service"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ },
+ {
+ "id": "want 0.3.0",
+ "target": "want"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.14.17"
+ },
+ "license": "MIT"
+ },
+ "indexmap 1.8.0": {
+ "name": "indexmap",
+ "version": "1.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/indexmap/1.8.0/download",
+ "sha256": "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "indexmap",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "indexmap",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "hashbrown 0.11.2",
+ "target": "hashbrown"
+ },
+ {
+ "id": "indexmap 1.8.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.8.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "autocfg 1.1.0",
+ "target": "autocfg"
+ }
+ ],
+ "selects": {}
+ }
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "itoa 1.0.1": {
+ "name": "itoa",
+ "version": "1.0.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/itoa/1.0.1/download",
+ "sha256": "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "itoa",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "itoa",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "lazy_static 1.4.0": {
+ "name": "lazy_static",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lazy_static/1.4.0/download",
+ "sha256": "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lazy_static",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lazy_static",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.4.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "libc 0.2.119": {
+ "name": "libc",
+ "version": "0.2.119",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/libc/0.2.119/download",
+ "sha256": "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "libc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "libc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.2.119"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "lock_api 0.4.6": {
+ "name": "lock_api",
+ "version": "0.4.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/lock_api/0.4.6/download",
+ "sha256": "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "lock_api",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "lock_api",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "scopeguard 1.1.0",
+ "target": "scopeguard"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.6"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "log 0.4.14": {
+ "name": "log",
+ "version": "0.4.14",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/log/0.4.14/download",
+ "sha256": "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "log",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "log",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.14"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "matches 0.1.9": {
+ "name": "matches",
+ "version": "0.1.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/matches/0.1.9/download",
+ "sha256": "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "matches",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "matches",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.1.9"
+ },
+ "license": "MIT"
+ },
+ "matchit 0.4.6": {
+ "name": "matchit",
+ "version": "0.4.6",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/matchit/0.4.6/download",
+ "sha256": "9376a4f0340565ad675d11fc1419227faf5f60cd7ac9cb2e7185a471f30af833"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "matchit",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "matchit",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2018",
+ "version": "0.4.6"
+ },
+ "license": "MIT"
+ },
+ "memchr 2.4.1": {
+ "name": "memchr",
+ "version": "2.4.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/memchr/2.4.1/download",
+ "sha256": "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "memchr",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "memchr",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "memchr 2.4.1",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "2.4.1"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Unlicense/MIT"
+ },
+ "mime 0.3.16": {
+ "name": "mime",
+ "version": "0.3.16",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/mime/0.3.16/download",
+ "sha256": "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "mime",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "mime",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.3.16"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "mio 0.8.0": {
+ "name": "mio",
+ "version": "0.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/mio/0.8.0/download",
+ "sha256": "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "mio",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "mio",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "net",
+ "os-ext",
+ "os-poll"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "miow 0.3.7",
+ "target": "miow"
+ },
+ {
+ "id": "ntapi 0.3.7",
+ "target": "ntapi"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.8.0"
+ },
+ "license": "MIT"
+ },
+ "miow 0.3.7": {
+ "name": "miow",
+ "version": "0.3.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/miow/0.3.7/download",
+ "sha256": "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "miow",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "miow",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.7"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "ntapi 0.3.7": {
+ "name": "ntapi",
+ "version": "0.3.7",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ntapi/0.3.7/download",
+ "sha256": "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ntapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ntapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "user"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ntapi 0.3.7",
+ "target": "build_script_build"
+ },
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.7"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "num_cpus 1.13.1": {
+ "name": "num_cpus",
+ "version": "1.13.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/num_cpus/1.13.1/download",
+ "sha256": "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "num_cpus",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "num_cpus",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [
+ {
+ "id": "hermit-abi 0.1.19",
+ "target": "hermit_abi"
+ }
+ ],
+ "cfg(not(windows))": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "1.13.1"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "once_cell 1.10.0": {
+ "name": "once_cell",
+ "version": "1.10.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/once_cell/1.10.0/download",
+ "sha256": "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "once_cell",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "once_cell",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "default",
+ "race",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "1.10.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "parking_lot 0.12.0": {
+ "name": "parking_lot",
+ "version": "0.12.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/parking_lot/0.12.0/download",
+ "sha256": "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "parking_lot",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "parking_lot",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lock_api 0.4.6",
+ "target": "lock_api"
+ },
+ {
+ "id": "parking_lot_core 0.9.1",
+ "target": "parking_lot_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.12.0"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "parking_lot_core 0.9.1": {
+ "name": "parking_lot_core",
+ "version": "0.9.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/parking_lot_core/0.9.1/download",
+ "sha256": "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "parking_lot_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "parking_lot_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "parking_lot_core 0.9.1",
+ "target": "build_script_build"
+ },
+ {
+ "id": "smallvec 1.8.0",
+ "target": "smallvec"
+ }
+ ],
+ "selects": {
+ "cfg(target_os = \"redox\")": [
+ {
+ "id": "redox_syscall 0.2.11",
+ "target": "syscall"
+ }
+ ],
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "windows-sys 0.32.0",
+ "target": "windows_sys"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.9.1"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "percent-encoding 2.1.0": {
+ "name": "percent-encoding",
+ "version": "2.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/percent-encoding/2.1.0/download",
+ "sha256": "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "percent_encoding",
+ "crate_root": "lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "percent_encoding",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "2.1.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "pin-project 1.0.10": {
+ "name": "pin-project",
+ "version": "1.0.10",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-project/1.0.10/download",
+ "sha256": "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pin_project",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_project",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "pin-project-internal 1.0.10",
+ "target": "pin_project_internal"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.0.10"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "pin-project-internal 1.0.10": {
+ "name": "pin-project-internal",
+ "version": "1.0.10",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-project-internal/1.0.10/download",
+ "sha256": "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "pin_project_internal",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_project_internal",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.10"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "pin-project-lite 0.2.8": {
+ "name": "pin-project-lite",
+ "version": "0.2.8",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-project-lite/0.2.8/download",
+ "sha256": "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pin_project_lite",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_project_lite",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.2.8"
+ },
+ "license": "Apache-2.0 OR MIT"
+ },
+ "pin-utils 0.1.0": {
+ "name": "pin-utils",
+ "version": "0.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/pin-utils/0.1.0/download",
+ "sha256": "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "pin_utils",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "pin_utils",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "proc-macro2 1.0.36": {
+ "name": "proc-macro2",
+ "version": "1.0.36",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download",
+ "sha256": "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "proc_macro2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "proc_macro2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.36"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "quote 1.0.15": {
+ "name": "quote",
+ "version": "1.0.15",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/quote/1.0.15/download",
+ "sha256": "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "quote",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "quote",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "proc-macro"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.15"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "redox_syscall 0.2.11": {
+ "name": "redox_syscall",
+ "version": "0.2.11",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/redox_syscall/0.2.11/download",
+ "sha256": "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "syscall",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "syscall",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.11"
+ },
+ "license": "MIT"
+ },
+ "ryu 1.0.9": {
+ "name": "ryu",
+ "version": "1.0.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/ryu/1.0.9/download",
+ "sha256": "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "ryu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "ryu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.0.9"
+ },
+ "license": "Apache-2.0 OR BSL-1.0"
+ },
+ "scopeguard 1.1.0": {
+ "name": "scopeguard",
+ "version": "1.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/scopeguard/1.1.0/download",
+ "sha256": "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "scopeguard",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "scopeguard",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "1.1.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "serde 1.0.136": {
+ "name": "serde",
+ "version": "1.0.136",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde/1.0.136/download",
+ "sha256": "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "serde 1.0.136",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.0.136"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "serde_json 1.0.79": {
+ "name": "serde_json",
+ "version": "1.0.79",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde_json/1.0.79/download",
+ "sha256": "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde_json",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde_json",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "raw_value",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ },
+ {
+ "id": "ryu 1.0.9",
+ "target": "ryu"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ },
+ {
+ "id": "serde_json 1.0.79",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.79"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "serde_urlencoded 0.7.1": {
+ "name": "serde_urlencoded",
+ "version": "0.7.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/serde_urlencoded/0.7.1/download",
+ "sha256": "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "serde_urlencoded",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "serde_urlencoded",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "form_urlencoded 1.0.1",
+ "target": "form_urlencoded"
+ },
+ {
+ "id": "itoa 1.0.1",
+ "target": "itoa"
+ },
+ {
+ "id": "ryu 1.0.9",
+ "target": "ryu"
+ },
+ {
+ "id": "serde 1.0.136",
+ "target": "serde"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.7.1"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "sharded-slab 0.1.4": {
+ "name": "sharded-slab",
+ "version": "0.1.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/sharded-slab/0.1.4/download",
+ "sha256": "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "sharded_slab",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "sharded_slab",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.4"
+ },
+ "license": "MIT"
+ },
+ "signal-hook-registry 1.4.0": {
+ "name": "signal-hook-registry",
+ "version": "1.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/signal-hook-registry/1.4.0/download",
+ "sha256": "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "signal_hook_registry",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "signal_hook_registry",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "1.4.0"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "slab 0.4.5": {
+ "name": "slab",
+ "version": "0.4.5",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/slab/0.4.5/download",
+ "sha256": "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "slab",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "slab",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "std"
+ ],
+ "edition": "2018",
+ "version": "0.4.5"
+ },
+ "license": "MIT"
+ },
+ "smallvec 1.8.0": {
+ "name": "smallvec",
+ "version": "1.8.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/smallvec/1.8.0/download",
+ "sha256": "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "smallvec",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "smallvec",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "1.8.0"
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "socket2 0.4.4": {
+ "name": "socket2",
+ "version": "0.4.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/socket2/0.4.4/download",
+ "sha256": "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "socket2",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "socket2",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "all"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.4.4"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "syn 1.0.86": {
+ "name": "syn",
+ "version": "1.0.86",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/syn/1.0.86/download",
+ "sha256": "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "syn",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "syn",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit",
+ "visit-mut"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "build_script_build"
+ },
+ {
+ "id": "unicode-xid 0.2.2",
+ "target": "unicode_xid"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.0.86"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "sync_wrapper 0.1.1": {
+ "name": "sync_wrapper",
+ "version": "0.1.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/sync_wrapper/0.1.1/download",
+ "sha256": "20518fe4a4c9acf048008599e464deb21beeae3d3578418951a189c235a7a9a8"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "sync_wrapper",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "sync_wrapper",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.1.1"
+ },
+ "license": "Apache-2.0"
+ },
+ "thread_local 1.1.4": {
+ "name": "thread_local",
+ "version": "1.1.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/thread_local/1.1.4/download",
+ "sha256": "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "thread_local",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "thread_local",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.1.4"
+ },
+ "license": "Apache-2.0/MIT"
+ },
+ "tokio 1.17.0": {
+ "name": "tokio",
+ "version": "1.17.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio/1.17.0/download",
+ "sha256": "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tokio",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "bytes",
+ "default",
+ "fs",
+ "full",
+ "io-std",
+ "io-util",
+ "libc",
+ "macros",
+ "memchr",
+ "mio",
+ "net",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "process",
+ "rt",
+ "rt-multi-thread",
+ "signal",
+ "signal-hook-registry",
+ "socket2",
+ "sync",
+ "time",
+ "tokio-macros",
+ "winapi"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "memchr 2.4.1",
+ "target": "memchr"
+ },
+ {
+ "id": "mio 0.8.0",
+ "target": "mio"
+ },
+ {
+ "id": "num_cpus 1.13.1",
+ "target": "num_cpus"
+ },
+ {
+ "id": "once_cell 1.10.0",
+ "target": "once_cell"
+ },
+ {
+ "id": "parking_lot 0.12.0",
+ "target": "parking_lot"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "socket2 0.4.4",
+ "target": "socket2"
+ }
+ ],
+ "selects": {
+ "cfg(unix)": [
+ {
+ "id": "libc 0.2.119",
+ "target": "libc"
+ },
+ {
+ "id": "signal-hook-registry 1.4.0",
+ "target": "signal_hook_registry"
+ }
+ ],
+ "cfg(windows)": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "winapi"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "tokio-macros 1.7.0",
+ "target": "tokio_macros"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "1.17.0"
+ },
+ "license": "MIT"
+ },
+ "tokio-macros 1.7.0": {
+ "name": "tokio-macros",
+ "version": "1.7.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio-macros/1.7.0/download",
+ "sha256": "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "tokio_macros",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio_macros",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "1.7.0"
+ },
+ "license": "MIT"
+ },
+ "tokio-util 0.6.9": {
+ "name": "tokio-util",
+ "version": "0.6.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio-util/0.6.9/download",
+ "sha256": "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tokio_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "codec",
+ "default"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-sink 0.3.21",
+ "target": "futures_sink"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.6.9"
+ },
+ "license": "MIT"
+ },
+ "tokio-util 0.7.0": {
+ "name": "tokio-util",
+ "version": "0.7.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tokio-util/0.7.0/download",
+ "sha256": "64910e1b9c1901aaf5375561e35b9c057d95ff41a44ede043a03e09279eabaf1"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tokio_util",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tokio_util",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-sink 0.3.21",
+ "target": "futures_sink"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.7.0"
+ },
+ "license": "MIT"
+ },
+ "tower 0.4.12": {
+ "name": "tower",
+ "version": "0.4.12",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tower/0.4.12/download",
+ "sha256": "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tower",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tower",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "__common",
+ "buffer",
+ "default",
+ "futures-core",
+ "futures-util",
+ "log",
+ "make",
+ "pin-project",
+ "pin-project-lite",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "util"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "pin-project 1.0.10",
+ "target": "pin_project"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tokio 1.17.0",
+ "target": "tokio"
+ },
+ {
+ "id": "tokio-util 0.7.0",
+ "target": "tokio_util"
+ },
+ {
+ "id": "tower-layer 0.3.1",
+ "target": "tower_layer"
+ },
+ {
+ "id": "tower-service 0.3.1",
+ "target": "tower_service"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.4.12"
+ },
+ "license": "MIT"
+ },
+ "tower-http 0.2.4": {
+ "name": "tower-http",
+ "version": "0.2.4",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tower-http/0.2.4/download",
+ "sha256": "90c125fdea84614a4368fd35786b51d0682ab8d42705e061e92f0b955dea40fb"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tower_http",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tower_http",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "map-response-body",
+ "tower",
+ "trace",
+ "tracing",
+ "util"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "bitflags 1.3.2",
+ "target": "bitflags"
+ },
+ {
+ "id": "bytes 1.1.0",
+ "target": "bytes"
+ },
+ {
+ "id": "futures-core 0.3.21",
+ "target": "futures_core"
+ },
+ {
+ "id": "futures-util 0.3.21",
+ "target": "futures_util"
+ },
+ {
+ "id": "http 0.2.6",
+ "target": "http"
+ },
+ {
+ "id": "http-body 0.4.4",
+ "target": "http_body"
+ },
+ {
+ "id": "http-range-header 0.3.0",
+ "target": "http_range_header"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tower 0.4.12",
+ "target": "tower"
+ },
+ {
+ "id": "tower-layer 0.3.1",
+ "target": "tower_layer"
+ },
+ {
+ "id": "tower-service 0.3.1",
+ "target": "tower_service"
+ },
+ {
+ "id": "tracing 0.1.31",
+ "target": "tracing"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.2.4"
+ },
+ "license": "MIT"
+ },
+ "tower-layer 0.3.1": {
+ "name": "tower-layer",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tower-layer/0.3.1/download",
+ "sha256": "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tower_layer",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tower_layer",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT"
+ },
+ "tower-service 0.3.1": {
+ "name": "tower-service",
+ "version": "0.3.1",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tower-service/0.3.1/download",
+ "sha256": "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tower_service",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tower_service",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2018",
+ "version": "0.3.1"
+ },
+ "license": "MIT"
+ },
+ "tracing 0.1.31": {
+ "name": "tracing",
+ "version": "0.1.31",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing/0.1.31/download",
+ "sha256": "f6c650a8ef0cd2dd93736f033d21cbd1224c5a967aa0c258d00fcf7dafef9b9f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "attributes",
+ "default",
+ "log",
+ "std",
+ "tracing-attributes"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "cfg-if 1.0.0",
+ "target": "cfg_if"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "pin-project-lite 0.2.8",
+ "target": "pin_project_lite"
+ },
+ {
+ "id": "tracing-core 0.1.22",
+ "target": "tracing_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "proc_macro_deps": {
+ "common": [
+ {
+ "id": "tracing-attributes 0.1.19",
+ "target": "tracing_attributes"
+ }
+ ],
+ "selects": {}
+ },
+ "version": "0.1.31"
+ },
+ "license": "MIT"
+ },
+ "tracing-attributes 0.1.19": {
+ "name": "tracing-attributes",
+ "version": "0.1.19",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-attributes/0.1.19/download",
+ "sha256": "8276d9a4a3a558d7b7ad5303ad50b53d58264641b82914b7ada36bd762e7a716"
+ }
+ },
+ "targets": [
+ {
+ "ProcMacro": {
+ "crate_name": "tracing_attributes",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_attributes",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "proc-macro2 1.0.36",
+ "target": "proc_macro2"
+ },
+ {
+ "id": "quote 1.0.15",
+ "target": "quote"
+ },
+ {
+ "id": "syn 1.0.86",
+ "target": "syn"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.19"
+ },
+ "license": "MIT"
+ },
+ "tracing-core 0.1.22": {
+ "name": "tracing-core",
+ "version": "0.1.22",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-core/0.1.22/download",
+ "sha256": "03cfcb51380632a72d3111cb8d3447a8d908e577d31beeac006f836383d29a23"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing_core",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_core",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default",
+ "lazy_static",
+ "std",
+ "valuable"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ }
+ ],
+ "selects": {
+ "cfg(tracing_unstable)": [
+ {
+ "id": "valuable 0.1.0",
+ "target": "valuable"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.1.22"
+ },
+ "license": "MIT"
+ },
+ "tracing-log 0.1.2": {
+ "name": "tracing-log",
+ "version": "0.1.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-log/0.1.2/download",
+ "sha256": "a6923477a48e41c1951f1999ef8bb5a3023eb723ceadafe78ffb65dc366761e3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing_log",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_log",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "log-tracer",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "lazy_static 1.4.0",
+ "target": "lazy_static"
+ },
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "tracing-core 0.1.22",
+ "target": "tracing_core"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.2"
+ },
+ "license": "MIT"
+ },
+ "tracing-subscriber 0.3.9": {
+ "name": "tracing-subscriber",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/tracing-subscriber/0.3.9/download",
+ "sha256": "9e0ab7bdc962035a87fba73f3acca9b8a8d0034c2e6f60b84aeaaddddc155dce"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "tracing_subscriber",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "tracing_subscriber",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "ansi",
+ "ansi_term",
+ "default",
+ "fmt",
+ "registry",
+ "sharded-slab",
+ "smallvec",
+ "std",
+ "thread_local",
+ "tracing-log"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "ansi_term 0.12.1",
+ "target": "ansi_term"
+ },
+ {
+ "id": "sharded-slab 0.1.4",
+ "target": "sharded_slab"
+ },
+ {
+ "id": "smallvec 1.8.0",
+ "target": "smallvec"
+ },
+ {
+ "id": "thread_local 1.1.4",
+ "target": "thread_local"
+ },
+ {
+ "id": "tracing-core 0.1.22",
+ "target": "tracing_core"
+ },
+ {
+ "id": "tracing-log 0.1.2",
+ "target": "tracing_log"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.9"
+ },
+ "license": "MIT"
+ },
+ "try-lock 0.2.3": {
+ "name": "try-lock",
+ "version": "0.2.3",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/try-lock/0.2.3/download",
+ "sha256": "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "try_lock",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "try_lock",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "edition": "2015",
+ "version": "0.2.3"
+ },
+ "license": "MIT"
+ },
+ "unicode-xid 0.2.2": {
+ "name": "unicode-xid",
+ "version": "0.2.2",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download",
+ "sha256": "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "unicode_xid",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "unicode_xid",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "default"
+ ],
+ "edition": "2015",
+ "version": "0.2.2"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "valuable 0.1.0": {
+ "name": "valuable",
+ "version": "0.1.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/valuable/0.1.0/download",
+ "sha256": "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "valuable",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "valuable",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "alloc",
+ "std"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "valuable 0.1.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.1.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT"
+ },
+ "want 0.3.0": {
+ "name": "want",
+ "version": "0.3.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/want/0.3.0/download",
+ "sha256": "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "want",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "want",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "log 0.4.14",
+ "target": "log"
+ },
+ {
+ "id": "try-lock 0.2.3",
+ "target": "try_lock"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.3.0"
+ },
+ "license": "MIT"
+ },
+ "winapi 0.3.9": {
+ "name": "winapi",
+ "version": "0.3.9",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi/0.3.9/download",
+ "sha256": "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "processenv",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi 0.3.9",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {
+ "i686-pc-windows-gnu": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "winapi_i686_pc_windows_gnu"
+ }
+ ],
+ "x86_64-pc-windows-gnu": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "winapi_x86_64_pc_windows_gnu"
+ }
+ ]
+ }
+ },
+ "edition": "2015",
+ "version": "0.3.9"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-i686-pc-windows-gnu 0.4.0": {
+ "name": "winapi-i686-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download",
+ "sha256": "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_i686_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_i686_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-i686-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "winapi-x86_64-pc-windows-gnu 0.4.0": {
+ "name": "winapi-x86_64-pc-windows-gnu",
+ "version": "0.4.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download",
+ "sha256": "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "winapi_x86_64_pc_windows_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "winapi_x86_64_pc_windows_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "winapi-x86_64-pc-windows-gnu 0.4.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2015",
+ "version": "0.4.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT/Apache-2.0"
+ },
+ "windows-sys 0.32.0": {
+ "name": "windows-sys",
+ "version": "0.32.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/windows-sys/0.32.0/download",
+ "sha256": "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "windows_sys",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "windows_sys",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "crate_features": [
+ "Win32",
+ "Win32_Foundation",
+ "Win32_System",
+ "Win32_System_LibraryLoader",
+ "Win32_System_SystemServices",
+ "Win32_System_WindowsProgramming",
+ "default"
+ ],
+ "deps": {
+ "common": [],
+ "selects": {
+ "aarch64-pc-windows-msvc": [
+ {
+ "id": "windows_aarch64_msvc 0.32.0",
+ "target": "windows_aarch64_msvc"
+ }
+ ],
+ "aarch64-uwp-windows-msvc": [
+ {
+ "id": "windows_aarch64_msvc 0.32.0",
+ "target": "windows_aarch64_msvc"
+ }
+ ],
+ "i686-pc-windows-gnu": [
+ {
+ "id": "windows_i686_gnu 0.32.0",
+ "target": "windows_i686_gnu"
+ }
+ ],
+ "i686-pc-windows-msvc": [
+ {
+ "id": "windows_i686_msvc 0.32.0",
+ "target": "windows_i686_msvc"
+ }
+ ],
+ "i686-uwp-windows-gnu": [
+ {
+ "id": "windows_i686_gnu 0.32.0",
+ "target": "windows_i686_gnu"
+ }
+ ],
+ "i686-uwp-windows-msvc": [
+ {
+ "id": "windows_i686_msvc 0.32.0",
+ "target": "windows_i686_msvc"
+ }
+ ],
+ "x86_64-pc-windows-gnu": [
+ {
+ "id": "windows_x86_64_gnu 0.32.0",
+ "target": "windows_x86_64_gnu"
+ }
+ ],
+ "x86_64-pc-windows-msvc": [
+ {
+ "id": "windows_x86_64_msvc 0.32.0",
+ "target": "windows_x86_64_msvc"
+ }
+ ],
+ "x86_64-uwp-windows-gnu": [
+ {
+ "id": "windows_x86_64_gnu 0.32.0",
+ "target": "windows_x86_64_gnu"
+ }
+ ],
+ "x86_64-uwp-windows-msvc": [
+ {
+ "id": "windows_x86_64_msvc 0.32.0",
+ "target": "windows_x86_64_msvc"
+ }
+ ]
+ }
+ },
+ "edition": "2018",
+ "version": "0.32.0"
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "windows_aarch64_msvc 0.32.0": {
+ "name": "windows_aarch64_msvc",
+ "version": "0.32.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.32.0/download",
+ "sha256": "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "windows_aarch64_msvc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "windows_aarch64_msvc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "windows_aarch64_msvc 0.32.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.32.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "windows_i686_gnu 0.32.0": {
+ "name": "windows_i686_gnu",
+ "version": "0.32.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/windows_i686_gnu/0.32.0/download",
+ "sha256": "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "windows_i686_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "windows_i686_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "windows_i686_gnu 0.32.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.32.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "windows_i686_msvc 0.32.0": {
+ "name": "windows_i686_msvc",
+ "version": "0.32.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/windows_i686_msvc/0.32.0/download",
+ "sha256": "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "windows_i686_msvc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "windows_i686_msvc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "windows_i686_msvc 0.32.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.32.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "windows_x86_64_gnu 0.32.0": {
+ "name": "windows_x86_64_gnu",
+ "version": "0.32.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.32.0/download",
+ "sha256": "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "windows_x86_64_gnu",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "windows_x86_64_gnu",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "windows_x86_64_gnu 0.32.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.32.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ },
+ "windows_x86_64_msvc 0.32.0": {
+ "name": "windows_x86_64_msvc",
+ "version": "0.32.0",
+ "repository": {
+ "Http": {
+ "url": "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.32.0/download",
+ "sha256": "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316"
+ }
+ },
+ "targets": [
+ {
+ "Library": {
+ "crate_name": "windows_x86_64_msvc",
+ "crate_root": "src/lib.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ },
+ {
+ "BuildScript": {
+ "crate_name": "build_script_build",
+ "crate_root": "build.rs",
+ "srcs": {
+ "include": [
+ "**/*.rs"
+ ],
+ "exclude": []
+ }
+ }
+ }
+ ],
+ "library_target_name": "windows_x86_64_msvc",
+ "common_attrs": {
+ "compile_data_glob": [
+ "**"
+ ],
+ "deps": {
+ "common": [
+ {
+ "id": "windows_x86_64_msvc 0.32.0",
+ "target": "build_script_build"
+ }
+ ],
+ "selects": {}
+ },
+ "edition": "2018",
+ "version": "0.32.0"
+ },
+ "build_script_attrs": {
+ "data_glob": [
+ "**"
+ ]
+ },
+ "license": "MIT OR Apache-2.0"
+ }
+ },
+ "binary_crates": [],
+ "workspace_members": {
+ "direct-cargo-bazel-deps 0.0.1": ""
+ },
+ "conditions": {
+ "aarch64-pc-windows-msvc": [],
+ "aarch64-uwp-windows-msvc": [],
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(not(windows))": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "wasm32-unknown-unknown",
+ "wasm32-wasi",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(target_os = \"redox\")": [],
+ "cfg(target_os = \"windows\")": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "cfg(tracing_unstable)": [],
+ "cfg(unix)": [
+ "aarch64-apple-darwin",
+ "aarch64-apple-ios",
+ "aarch64-linux-android",
+ "aarch64-unknown-linux-gnu",
+ "arm-unknown-linux-gnueabi",
+ "armv7-unknown-linux-gnueabi",
+ "i686-apple-darwin",
+ "i686-linux-android",
+ "i686-unknown-freebsd",
+ "i686-unknown-linux-gnu",
+ "powerpc-unknown-linux-gnu",
+ "s390x-unknown-linux-gnu",
+ "x86_64-apple-darwin",
+ "x86_64-apple-ios",
+ "x86_64-linux-android",
+ "x86_64-unknown-freebsd",
+ "x86_64-unknown-linux-gnu"
+ ],
+ "cfg(windows)": [
+ "i686-pc-windows-msvc",
+ "x86_64-pc-windows-msvc"
+ ],
+ "i686-pc-windows-gnu": [],
+ "i686-pc-windows-msvc": [
+ "i686-pc-windows-msvc"
+ ],
+ "i686-uwp-windows-gnu": [],
+ "i686-uwp-windows-msvc": [],
+ "x86_64-pc-windows-gnu": [],
+ "x86_64-pc-windows-msvc": [
+ "x86_64-pc-windows-msvc"
+ ],
+ "x86_64-uwp-windows-gnu": [],
+ "x86_64-uwp-windows-msvc": []
+ }
+}
diff --git a/examples/crate_universe/no_cargo_manifests/src/main.rs b/examples/crate_universe/no_cargo_manifests/src/main.rs
new file mode 100644
index 0000000..edde4b6
--- /dev/null
+++ b/examples/crate_universe/no_cargo_manifests/src/main.rs
@@ -0,0 +1,150 @@
+//! Copied from https://github.com/tokio-rs/axum/blob/v0.2.5/examples/testing/src/main.rs
+
+use axum::{
+ routing::{get, post},
+ Json, Router,
+};
+use tower_http::trace::TraceLayer;
+
+#[tokio::main]
+async fn main() {
+ // Set the RUST_LOG, if it hasn't been explicitly defined
+ if std::env::var_os("RUST_LOG").is_none() {
+ std::env::set_var("RUST_LOG", "example_testing=debug,tower_http=debug")
+ }
+ tracing_subscriber::fmt::init();
+
+ let addr = std::net::SocketAddr::from(([127, 0, 0, 1], 3000));
+
+ tracing::debug!("listening on {}", addr);
+
+ axum::Server::bind(&addr)
+ .serve(app().into_make_service())
+ .await
+ .unwrap();
+}
+
+/// Having a function that produces our app makes it easy to call it from tests
+/// without having to create an HTTP server.
+#[allow(dead_code)]
+fn app() -> Router {
+ Router::new()
+ .route("/", get(|| async { "Hello, World!" }))
+ .route(
+ "/json",
+ post(|payload: Json<serde_json::Value>| async move {
+ Json(serde_json::json!({ "data": payload.0 }))
+ }),
+ )
+ // We can still add middleware
+ .layer(TraceLayer::new_for_http())
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[cfg(not(target_os = "windows"))]
+ use std::net::{SocketAddr, TcpListener};
+
+ use axum::{
+ body::Body,
+ http::{self, Request, StatusCode},
+ };
+ use serde_json::{json, Value};
+ use tower::ServiceExt; // for `app.oneshot()`
+
+ #[tokio::test]
+ async fn hello_world() {
+ let app = app();
+
+ // `Router` implements `tower::Service<Request<Body>>` so we can
+ // call it like any tower service, no need to run an HTTP server.
+ let response = app
+ .oneshot(Request::builder().uri("/").body(Body::empty()).unwrap())
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::OK);
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert_eq!(&body[..], b"Hello, World!");
+ }
+
+ #[tokio::test]
+ async fn json() {
+ let app = app();
+
+ let response = app
+ .oneshot(
+ Request::builder()
+ .method(http::Method::POST)
+ .uri("/json")
+ .header(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.as_ref())
+ .body(Body::from(
+ serde_json::to_vec(&json!([1_i8, 2_i8, 3_i8, 4_i8])).unwrap(),
+ ))
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::OK);
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ let body: Value = serde_json::from_slice(&body).unwrap();
+ assert_eq!(body, json!({ "data": [1_i8, 2_i8, 3_i8, 4_i8] }));
+ }
+
+ #[tokio::test]
+ async fn not_found() {
+ let app = app();
+
+ let response = app
+ .oneshot(
+ Request::builder()
+ .uri("/does-not-exist")
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::NOT_FOUND);
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert!(body.is_empty());
+ }
+
+ // TODO: This test fails on Windows, it shouldn't but it's unclear to me
+ // if this is an issue on the host or with the test.
+ #[cfg(not(target_os = "windows"))]
+ // You can also spawn a server and talk to it like any other HTTP server:
+ #[tokio::test]
+ async fn the_real_deal() {
+ let listener = TcpListener::bind("0.0.0.0:0".parse::<SocketAddr>().unwrap()).unwrap();
+ let addr = listener.local_addr().unwrap();
+
+ tokio::spawn(async move {
+ axum::Server::from_tcp(listener)
+ .unwrap()
+ .serve(app().into_make_service())
+ .await
+ .unwrap();
+ });
+
+ let client = hyper::Client::new();
+
+ let response = client
+ .request(
+ Request::builder()
+ .uri(format!("http://{}", addr))
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert_eq!(&body[..], b"Hello, World!");
+ }
+}
diff --git a/examples/crate_universe/vendor_local_manifests/.gitignore b/examples/crate_universe/vendor_local_manifests/.gitignore
new file mode 100644
index 0000000..a1b775e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/.gitignore
@@ -0,0 +1,3 @@
+# Ignore everything but the `BUILD` files within the vendored directories
+crates/*/*
+!crates/*/BUILD.bazel
diff --git a/examples/crate_universe/vendor_local_manifests/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/BUILD.bazel
new file mode 100644
index 0000000..19fef1d
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/BUILD.bazel
@@ -0,0 +1,25 @@
+load("@rules_rust//crate_universe:defs.bzl", "crates_vendor")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+load("//vendor_local_manifests/crates:defs.bzl", "aliases", "all_crate_deps")
+
+crates_vendor(
+ name = "crates_vendor",
+ manifests = [":Cargo.toml"],
+ mode = "local",
+)
+
+rust_library(
+ name = "cargo_local",
+ srcs = glob(["**/*.rs"]),
+ aliases = aliases(),
+ edition = "2018",
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ crate = ":cargo_local",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ deps = all_crate_deps(normal_dev = True),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/Cargo.lock b/examples/crate_universe/vendor_local_manifests/Cargo.lock
new file mode 100644
index 0000000..3b522a3
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/Cargo.lock
@@ -0,0 +1,356 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "async-stream"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "171374e7e3b2504e0e5236e3b59260560f9fe94bfe9ac39ba5e4e929c5590625"
+dependencies = [
+ "async-stream-impl",
+ "futures-core",
+]
+
+[[package]]
+name = "async-stream-impl"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "648ed8c8d2ce5409ccd57453d9d1b214b342a0d69376a6feda1fd6cae3299308"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bytes"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
+
+[[package]]
+name = "cargo_local"
+version = "0.1.0"
+dependencies = [
+ "tempfile",
+ "tokio",
+ "tokio-test",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "fastrand"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"
+dependencies = [
+ "instant",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
+
+[[package]]
+name = "hermit-abi"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "instant"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+
+[[package]]
+name = "lock_api"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "memchr"
+version = "2.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+
+[[package]]
+name = "mio"
+version = "0.7.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc"
+dependencies = [
+ "libc",
+ "log",
+ "miow",
+ "ntapi",
+ "winapi",
+]
+
+[[package]]
+name = "miow"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "ntapi"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "num_cpus"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
+dependencies = [
+ "hermit-abi",
+ "libc",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5"
+
+[[package]]
+name = "parking_lot"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
+dependencies = [
+ "instant",
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216"
+dependencies = [
+ "cfg-if",
+ "instant",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "winapi",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+dependencies = [
+ "unicode-xid",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.2.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"
+dependencies = [
+ "bitflags",
+]
+
+[[package]]
+name = "remove_dir_all"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"
+
+[[package]]
+name = "syn"
+version = "1.0.86"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-xid",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
+dependencies = [
+ "cfg-if",
+ "fastrand",
+ "libc",
+ "redox_syscall",
+ "remove_dir_all",
+ "winapi",
+]
+
+[[package]]
+name = "tokio"
+version = "1.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a"
+dependencies = [
+ "bytes",
+ "libc",
+ "memchr",
+ "mio",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "pin-project-lite",
+ "signal-hook-registry",
+ "tokio-macros",
+ "winapi",
+]
+
+[[package]]
+name = "tokio-macros"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "tokio-stream"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50145484efff8818b5ccd256697f36863f587da82cf8b409c53adf1e840798e3"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-test"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53474327ae5e166530d17f2d956afcb4f8a004de581b3cae10f12006bc8163e3"
+dependencies = [
+ "async-stream",
+ "bytes",
+ "futures-core",
+ "tokio",
+ "tokio-stream",
+]
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
diff --git a/examples/crate_universe/vendor_local_manifests/Cargo.toml b/examples/crate_universe/vendor_local_manifests/Cargo.toml
new file mode 100644
index 0000000..b798bfd
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/Cargo.toml
@@ -0,0 +1,14 @@
+[package]
+name = "cargo_local"
+version = "0.1.0"
+authors = ["UebelAndre <github@uebelandre.com>"]
+edition = "2018"
+
+[dependencies]
+# TODO: For some reason this fails only for locally vendored crates
+# https://github.com/abrisco/cargo-bazel/issues/173
+tokio = { version = "=1.16.1", features = ["full"] }
+
+[dev-dependencies]
+tempfile = "3.2.0"
+tokio-test = "0.4.2"
diff --git a/examples/crate_universe/vendor_local_manifests/crates/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/BUILD.bazel
new file mode 100644
index 0000000..866840e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/BUILD.bazel
@@ -0,0 +1,46 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+
+package(default_visibility = ["//visibility:public"])
+
+exports_files(
+ [
+ "cargo-bazel.json",
+ "defs.bzl",
+ ] + glob([
+ "*.bazel",
+ ]),
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob([
+ "*.bazel",
+ "*.bzl",
+ ]),
+)
+
+# Workspace Member Dependencies
+alias(
+ name = "tempfile",
+ actual = "//vendor_local_manifests/crates/tempfile-3.3.0:tempfile",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tokio",
+ actual = "//vendor_local_manifests/crates/tokio-1.16.1:tokio",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tokio-test",
+ actual = "//vendor_local_manifests/crates/tokio-test-0.4.2:tokio_test",
+ tags = ["manual"],
+)
+
+# Binaries
diff --git a/examples/crate_universe/vendor_local_manifests/crates/async-stream-0.3.2/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/async-stream-0.3.2/BUILD.bazel
new file mode 100644
index 0000000..b6de9af
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/async-stream-0.3.2/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "async_stream",
+ 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": [
+ "//vendor_local_manifests/crates/async-stream-impl-0.3.2:async_stream_impl",
+ ],
+ }),
+ 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({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/futures-core-0.3.21:futures_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/async-stream-impl-0.3.2/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/async-stream-impl-0.3.2/BUILD.bazel
new file mode 100644
index 0000000..a33e572
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/async-stream-impl-0.3.2/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "async_stream_impl",
+ 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({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_manifests/crates/quote-1.0.15:quote",
+ "//vendor_local_manifests/crates/syn-1.0.86:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/bitflags-1.3.2/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/bitflags-1.3.2/BUILD.bazel
new file mode 100644
index 0000000..6894746
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/bitflags-1.3.2/BUILD.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "bitflags",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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 = "1.3.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/bytes-1.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/bytes-1.1.0/BUILD.bazel
new file mode 100644
index 0000000..b679f2e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/bytes-1.1.0/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "bytes",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/cfg-if-1.0.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/cfg-if-1.0.0/BUILD.bazel
new file mode 100644
index 0000000..e4aab64
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/cfg-if-1.0.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "cfg_if",
+ 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 = "1.0.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/defs.bzl b/examples/crate_universe/vendor_local_manifests/crates/defs.bzl
new file mode 100644
index 0000000..9950158
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/defs.bzl
@@ -0,0 +1,368 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+"""
+# `crates_repository` API
+
+- [aliases](#aliases)
+- [crate_deps](#crate_deps)
+- [all_crate_deps](#all_crate_deps)
+- [crate_repositories](#crate_repositories)
+
+"""
+
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+###############################################################################
+# MACROS API
+###############################################################################
+
+# An identifier that represent common dependencies (unconditional).
+_COMMON_CONDITION = ""
+
+def _flatten_dependency_maps(all_dependency_maps):
+ """Flatten a list of dependency maps into one dictionary.
+
+ Dependency maps have the following structure:
+
+ ```python
+ DEPENDENCIES_MAP = {
+ # The first key in the map is a Bazel package
+ # name of the workspace this file is defined in.
+ "workspace_member_package": {
+
+ # Not all dependnecies are supported for all platforms.
+ # the condition key is the condition required to be true
+ # on the host platform.
+ "condition": {
+
+ # An alias to a crate target. # The label of the crate target the
+ # Aliases are only crate names. # package name refers to.
+ "package_name": "@full//:label",
+ }
+ }
+ }
+ ```
+
+ Args:
+ all_dependency_maps (list): A list of dicts as described above
+
+ Returns:
+ dict: A dictionary as described above
+ """
+ dependencies = {}
+
+ for workspace_deps_map in all_dependency_maps:
+ for pkg_name, conditional_deps_map in workspace_deps_map.items():
+ if pkg_name not in dependencies:
+ non_frozen_map = dict()
+ for key, values in conditional_deps_map.items():
+ non_frozen_map.update({key: dict(values.items())})
+ dependencies.setdefault(pkg_name, non_frozen_map)
+ continue
+
+ for condition, deps_map in conditional_deps_map.items():
+ # If the condition has not been recorded, do so and continue
+ if condition not in dependencies[pkg_name]:
+ dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))
+ continue
+
+ # Alert on any miss-matched dependencies
+ inconsistent_entries = []
+ for crate_name, crate_label in deps_map.items():
+ existing = dependencies[pkg_name][condition].get(crate_name)
+ if existing and existing != crate_label:
+ inconsistent_entries.append((crate_name, existing, crate_label))
+ dependencies[pkg_name][condition].update({crate_name: crate_label})
+
+ return dependencies
+
+def crate_deps(deps, package_name = None):
+ """Finds the fully qualified label of the requested crates for the package where this macro is called.
+
+ Args:
+ deps (list): The desired list of crate targets.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()`.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if not deps:
+ return []
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Join both sets of dependencies
+ dependencies = _flatten_dependency_maps([
+ _NORMAL_DEPENDENCIES,
+ _NORMAL_DEV_DEPENDENCIES,
+ _PROC_MACRO_DEPENDENCIES,
+ _PROC_MACRO_DEV_DEPENDENCIES,
+ _BUILD_DEPENDENCIES,
+ _BUILD_PROC_MACRO_DEPENDENCIES,
+ ]).pop(package_name, {})
+
+ # Combine all conditional packages so we can easily index over a flat list
+ # TODO: Perhaps this should actually return select statements and maintain
+ # the conditionals of the dependencies
+ flat_deps = {}
+ for deps_set in dependencies.values():
+ for crate_name, crate_label in deps_set.items():
+ flat_deps.update({crate_name: crate_label})
+
+ missing_crates = []
+ crate_targets = []
+ for crate_target in deps:
+ if crate_target not in flat_deps:
+ missing_crates.append(crate_target)
+ else:
+ crate_targets.append(flat_deps[crate_target])
+
+ if missing_crates:
+ fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format(
+ missing_crates,
+ package_name,
+ dependencies,
+ ))
+
+ return crate_targets
+
+def all_crate_deps(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Finds the fully qualified label of all requested direct crate dependencies \
+ for the package where this macro is called.
+
+ If no parameters are set, all normal dependencies are returned. Setting any one flag will
+ otherwise impact the contents of the returned list.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_dependency_maps = []
+ if normal:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+ if normal_dev:
+ all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)
+ if proc_macro:
+ all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)
+ if proc_macro_dev:
+ all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)
+ if build:
+ all_dependency_maps.append(_BUILD_DEPENDENCIES)
+ if build_proc_macro:
+ all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)
+
+ # Default to always using normal dependencies
+ if not all_dependency_maps:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+
+ dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)
+
+ if not dependencies:
+ return []
+
+ crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())
+ for condition, deps in dependencies.items():
+ crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()})
+
+ return crate_deps
+
+def aliases(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Produces a map of Crate alias names to their original label
+
+ If no dependency kinds are specified, `normal` and `proc_macro` are used by default.
+ Setting any one flag will otherwise determine the contents of the returned dict.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ dict: The aliases of all associated packages
+ """
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_aliases_maps = []
+ if normal:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ if normal_dev:
+ all_aliases_maps.append(_NORMAL_DEV_ALIASES)
+ if proc_macro:
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+ if proc_macro_dev:
+ all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)
+ if build:
+ all_aliases_maps.append(_BUILD_ALIASES)
+ if build_proc_macro:
+ all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)
+
+ # Default to always using normal aliases
+ if not all_aliases_maps:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+
+ aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)
+
+ if not aliases:
+ return dict()
+
+ common_items = aliases.pop(_COMMON_CONDITION, {}).items()
+
+ # If there are only common items in the dictionary, immediately return them
+ if not len(aliases.keys()) == 1:
+ return dict(common_items)
+
+ # Build a single select statement where each conditional has accounted for the
+ # common set of aliases.
+ crate_aliases = {"//conditions:default": common_items}
+ for condition, deps in aliases.items():
+ condition_triples = _CONDITIONS[condition]
+ if condition_triples in crate_aliases:
+ crate_aliases[condition_triples].update(deps)
+ else:
+ crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)})
+
+ return selects.with_or(crate_aliases)
+
+###############################################################################
+# WORKSPACE MEMBER DEPS AND ALIASES
+###############################################################################
+
+_NORMAL_DEPENDENCIES = {
+ "vendor_local_manifests": {
+ _COMMON_CONDITION: {
+ "tokio": "//vendor_local_manifests/crates/tokio-1.16.1:tokio",
+ },
+ },
+}
+
+_NORMAL_ALIASES = {
+ "vendor_local_manifests": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_NORMAL_DEV_DEPENDENCIES = {
+ "vendor_local_manifests": {
+ _COMMON_CONDITION: {
+ "tempfile": "//vendor_local_manifests/crates/tempfile-3.3.0:tempfile",
+ "tokio-test": "//vendor_local_manifests/crates/tokio-test-0.4.2:tokio_test",
+ },
+ },
+}
+
+_NORMAL_DEV_ALIASES = {
+ "vendor_local_manifests": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_PROC_MACRO_DEPENDENCIES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_PROC_MACRO_ALIASES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_PROC_MACRO_DEV_DEPENDENCIES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_PROC_MACRO_DEV_ALIASES = {
+ "vendor_local_manifests": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_BUILD_DEPENDENCIES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_BUILD_ALIASES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_BUILD_PROC_MACRO_DEPENDENCIES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_BUILD_PROC_MACRO_ALIASES = {
+ "vendor_local_manifests": {
+ },
+}
+
+_CONDITIONS = {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(any(unix, target_os = \"wasi\"))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(not(windows))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(target_arch = \"wasm32\")": ["wasm32-unknown-unknown", "wasm32-wasi"],
+ "cfg(target_os = \"redox\")": [],
+ "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": [],
+}
diff --git a/examples/crate_universe/vendor_local_manifests/crates/fastrand-1.7.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/fastrand-1.7.0/BUILD.bazel
new file mode 100644
index 0000000..a421204
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/fastrand-1.7.0/BUILD.bazel
@@ -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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "fastrand",
+ 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 = "1.7.0",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_arch = "wasm32")
+ (
+ "@rules_rust//rust/platform:wasm32-unknown-unknown",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/instant-0.1.12:instant",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/futures-core-0.3.21/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/futures-core-0.3.21/BUILD.bazel
new file mode 100644
index 0000000..fa2bd35
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/futures-core-0.3.21/BUILD.bazel
@@ -0,0 +1,177 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_core",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/futures-core-0.3.21:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/hermit-abi-0.1.19/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/hermit-abi-0.1.19/BUILD.bazel
new file mode 100644
index 0000000..0d57813
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/hermit-abi-0.1.19/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "hermit_abi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.1.19",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/instant-0.1.12/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/instant-0.1.12/BUILD.bazel
new file mode 100644
index 0000000..3793223
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/instant-0.1.12/BUILD.bazel
@@ -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", # BSD-3-Clause
+# ])
+
+rust_library(
+ name = "instant",
+ 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.1.12",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/libc-0.2.119/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/libc-0.2.119/BUILD.bazel
new file mode 100644
index 0000000..b41bc90
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/libc-0.2.119/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "libc",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.119",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/libc-0.2.119:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "libc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.2.119",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "libc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/lock_api-0.4.6/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/lock_api-0.4.6/BUILD.bazel
new file mode 100644
index 0000000..4d93580
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/lock_api-0.4.6/BUILD.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "lock_api",
+ 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.4.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/scopeguard-1.1.0:scopeguard",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/log-0.4.14/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/log-0.4.14/BUILD.bazel
new file mode 100644
index 0000000..b32f242
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/log-0.4.14/BUILD.bazel
@@ -0,0 +1,172 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "log",
+ 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 = "2015",
+ 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.4.14",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/log-0.4.14:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "log_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.14",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "log_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/memchr-2.4.1/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/memchr-2.4.1/BUILD.bazel
new file mode 100644
index 0000000..29f02e0
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/memchr-2.4.1/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Unlicense/MIT
+# ])
+
+rust_library(
+ name = "memchr",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "2.4.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/memchr-2.4.1:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "memchr_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "2.4.1",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "memchr_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/mio-0.7.14/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/mio-0.7.14/BUILD.bazel
new file mode 100644
index 0000000..78472d8
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/mio-0.7.14/BUILD.bazel
@@ -0,0 +1,132 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "mio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "net",
+ "os-ext",
+ "os-poll",
+ "os-util",
+ "tcp",
+ "udp",
+ "uds",
+ ],
+ 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.7.14",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/log-0.4.14:log",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/miow-0.3.7:miow",
+ "//vendor_local_manifests/crates/ntapi-0.3.7:ntapi",
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/log-0.4.14:log",
+ ],
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/log-0.4.14:log",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/miow-0.3.7/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/miow-0.3.7/BUILD.bazel
new file mode 100644
index 0000000..13a2472
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/miow-0.3.7/BUILD.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "miow",
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/ntapi-0.3.7/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/ntapi-0.3.7/BUILD.bazel
new file mode 100644
index 0000000..b90789b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/ntapi-0.3.7/BUILD.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "ntapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/ntapi-0.3.7:build_script_build",
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "ntapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.7",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "ntapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/num_cpus-1.13.1/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/num_cpus-1.13.1/BUILD.bazel
new file mode 100644
index 0000000..ecdf236
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/num_cpus-1.13.1/BUILD.bazel
@@ -0,0 +1,116 @@
+###############################################################################
+# @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 = "num_cpus",
+ 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 = "2015",
+ 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 = "1.13.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))
+ #
+ # No supported platform triples for cfg: 'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'
+ # Skipped dependencies: [{"id":"hermit-abi 0.1.19","target":"hermit_abi"}]
+ #
+ # cfg(not(windows))
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:wasm32-unknown-unknown",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/once_cell-1.9.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/once_cell-1.9.0/BUILD.bazel
new file mode 100644
index 0000000..f2a936a
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/once_cell-1.9.0/BUILD.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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 = "once_cell",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "race",
+ "std",
+ ],
+ 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 = "1.9.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/parking_lot-0.11.2/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/parking_lot-0.11.2/BUILD.bazel
new file mode 100644
index 0000000..4d944c2
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/parking_lot-0.11.2/BUILD.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.11.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/instant-0.1.12:instant",
+ "//vendor_local_manifests/crates/lock_api-0.4.6:lock_api",
+ "//vendor_local_manifests/crates/parking_lot_core-0.8.5:parking_lot_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/parking_lot_core-0.8.5/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/parking_lot_core-0.8.5/BUILD.bazel
new file mode 100644
index 0000000..0fc55d5
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/parking_lot_core-0.8.5/BUILD.bazel
@@ -0,0 +1,222 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot_core",
+ 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.8.5",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_os = "redox")
+ #
+ # No supported platform triples for cfg: 'cfg(target_os = "redox")'
+ # Skipped dependencies: [{"id":"redox_syscall 0.2.11","target":"syscall"}]
+ #
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/instant-0.1.12:instant",
+ "//vendor_local_manifests/crates/parking_lot_core-0.8.5:build_script_build",
+ "//vendor_local_manifests/crates/smallvec-1.8.0:smallvec",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/instant-0.1.12:instant",
+ "//vendor_local_manifests/crates/parking_lot_core-0.8.5:build_script_build",
+ "//vendor_local_manifests/crates/smallvec-1.8.0:smallvec",
+ ],
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/instant-0.1.12:instant",
+ "//vendor_local_manifests/crates/parking_lot_core-0.8.5:build_script_build",
+ "//vendor_local_manifests/crates/smallvec-1.8.0:smallvec",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "parking_lot_core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.8.5",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "parking_lot_core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/pin-project-lite-0.2.8/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/pin-project-lite-0.2.8/BUILD.bazel
new file mode 100644
index 0000000..cfd3870
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/pin-project-lite-0.2.8/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "pin_project_lite",
+ 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.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/proc-macro2-1.0.36/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/proc-macro2-1.0.36/BUILD.bazel
new file mode 100644
index 0000000..95239eb
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/proc-macro2-1.0.36/BUILD.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "proc_macro2",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.36",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/proc-macro2-1.0.36:build_script_build",
+ "//vendor_local_manifests/crates/unicode-xid-0.2.2:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "proc-macro2_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.36",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "proc-macro2_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/quote-1.0.15/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/quote-1.0.15/BUILD.bazel
new file mode 100644
index 0000000..3c8a69f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/quote-1.0.15/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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 = "quote",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.15",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/proc-macro2-1.0.36:proc_macro2",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/redox_syscall-0.2.11/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/redox_syscall-0.2.11/BUILD.bazel
new file mode 100644
index 0000000..9057648
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/redox_syscall-0.2.11/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "syscall",
+ 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.11",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/bitflags-1.3.2:bitflags",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/remove_dir_all-0.5.3/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/remove_dir_all-0.5.3/BUILD.bazel
new file mode 100644
index 0000000..9b8cded
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/remove_dir_all-0.5.3/BUILD.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "remove_dir_all",
+ 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 = "2015",
+ 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.5.3",
+ 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
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/scopeguard-1.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/scopeguard-1.1.0/BUILD.bazel
new file mode 100644
index 0000000..0bc1e13
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/scopeguard-1.1.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "scopeguard",
+ 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 = "2015",
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/signal-hook-registry-1.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/signal-hook-registry-1.4.0/BUILD.bazel
new file mode 100644
index 0000000..022c182
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/signal-hook-registry-1.4.0/BUILD.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "signal_hook_registry",
+ 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 = "2015",
+ 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 = "1.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/smallvec-1.8.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/smallvec-1.8.0/BUILD.bazel
new file mode 100644
index 0000000..a9ae389
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/smallvec-1.8.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "smallvec",
+ 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 = "1.8.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/syn-1.0.86/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/syn-1.0.86/BUILD.bazel
new file mode 100644
index 0000000..0b72df3
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/syn-1.0.86/BUILD.bazel
@@ -0,0 +1,194 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "syn",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit-mut",
+ ],
+ 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 = "1.0.86",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_manifests/crates/quote-1.0.15:quote",
+ "//vendor_local_manifests/crates/syn-1.0.86:build_script_build",
+ "//vendor_local_manifests/crates/unicode-xid-0.2.2:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "syn_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit-mut",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.86",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "syn_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/tempfile-3.3.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/tempfile-3.3.0/BUILD.bazel
new file mode 100644
index 0000000..d685cc8
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/tempfile-3.3.0/BUILD.bazel
@@ -0,0 +1,134 @@
+###############################################################################
+# @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 = "tempfile",
+ 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 = "3.3.0",
+ deps = [
+ ] + select_with_or({
+ # cfg(any(unix, target_os = "wasi"))
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/fastrand-1.7.0:fastrand",
+ "//vendor_local_manifests/crates/remove_dir_all-0.5.3:remove_dir_all",
+ ],
+ # cfg(target_os = "redox")
+ #
+ # No supported platform triples for cfg: 'cfg(target_os = "redox")'
+ # Skipped dependencies: [{"id":"redox_syscall 0.2.11","target":"syscall"}]
+ #
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/fastrand-1.7.0:fastrand",
+ "//vendor_local_manifests/crates/remove_dir_all-0.5.3:remove_dir_all",
+ ],
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_manifests/crates/fastrand-1.7.0:fastrand",
+ "//vendor_local_manifests/crates/remove_dir_all-0.5.3:remove_dir_all",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/tokio-1.16.1/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/tokio-1.16.1/BUILD.bazel
new file mode 100644
index 0000000..3e662a5
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/tokio-1.16.1/BUILD.bazel
@@ -0,0 +1,166 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "bytes",
+ "default",
+ "fs",
+ "full",
+ "io-std",
+ "io-util",
+ "libc",
+ "macros",
+ "memchr",
+ "mio",
+ "net",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "process",
+ "rt",
+ "rt-multi-thread",
+ "signal",
+ "signal-hook-registry",
+ "sync",
+ "test-util",
+ "time",
+ "tokio-macros",
+ "winapi",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/tokio-macros-1.7.0:tokio_macros",
+ ],
+ }),
+ 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 = "1.16.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/libc-0.2.119:libc",
+ "//vendor_local_manifests/crates/signal-hook-registry-1.4.0:signal_hook_registry",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/bytes-1.1.0:bytes",
+ "//vendor_local_manifests/crates/memchr-2.4.1:memchr",
+ "//vendor_local_manifests/crates/mio-0.7.14:mio",
+ "//vendor_local_manifests/crates/num_cpus-1.13.1:num_cpus",
+ "//vendor_local_manifests/crates/once_cell-1.9.0:once_cell",
+ "//vendor_local_manifests/crates/parking_lot-0.11.2:parking_lot",
+ "//vendor_local_manifests/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_manifests/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_manifests/crates/bytes-1.1.0:bytes",
+ "//vendor_local_manifests/crates/memchr-2.4.1:memchr",
+ "//vendor_local_manifests/crates/mio-0.7.14:mio",
+ "//vendor_local_manifests/crates/num_cpus-1.13.1:num_cpus",
+ "//vendor_local_manifests/crates/once_cell-1.9.0:once_cell",
+ "//vendor_local_manifests/crates/parking_lot-0.11.2:parking_lot",
+ "//vendor_local_manifests/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/bytes-1.1.0:bytes",
+ "//vendor_local_manifests/crates/memchr-2.4.1:memchr",
+ "//vendor_local_manifests/crates/mio-0.7.14:mio",
+ "//vendor_local_manifests/crates/num_cpus-1.13.1:num_cpus",
+ "//vendor_local_manifests/crates/once_cell-1.9.0:once_cell",
+ "//vendor_local_manifests/crates/parking_lot-0.11.2:parking_lot",
+ "//vendor_local_manifests/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/tokio-macros-1.7.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/tokio-macros-1.7.0/BUILD.bazel
new file mode 100644
index 0000000..ba51873
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/tokio-macros-1.7.0/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "tokio_macros",
+ 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 = "1.7.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_manifests/crates/quote-1.0.15:quote",
+ "//vendor_local_manifests/crates/syn-1.0.86:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/tokio-stream-0.1.8/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/tokio-stream-0.1.8/BUILD.bazel
new file mode 100644
index 0000000..bdc973a
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/tokio-stream-0.1.8/BUILD.bazel
@@ -0,0 +1,89 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_stream",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "time",
+ ],
+ 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.1.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_manifests/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_manifests/crates/tokio-1.16.1:tokio",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/tokio-test-0.4.2/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/tokio-test-0.4.2/BUILD.bazel
new file mode 100644
index 0000000..6ecccfc
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/tokio-test-0.4.2/BUILD.bazel
@@ -0,0 +1,89 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_test",
+ 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.4.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/async-stream-0.3.2:async_stream",
+ "//vendor_local_manifests/crates/bytes-1.1.0:bytes",
+ "//vendor_local_manifests/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_manifests/crates/tokio-1.16.1:tokio",
+ "//vendor_local_manifests/crates/tokio-stream-0.1.8:tokio_stream",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/unicode-xid-0.2.2/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/unicode-xid-0.2.2/BUILD.bazel
new file mode 100644
index 0000000..30562c1
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/unicode-xid-0.2.2/BUILD.bazel
@@ -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 = "unicode_xid",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/winapi-0.3.9/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/winapi-0.3.9/BUILD.bazel
new file mode 100644
index 0000000..28e223c
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/winapi-0.3.9/BUILD.bazel
@@ -0,0 +1,237 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mstcpip",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.9",
+ deps = [
+ ] + select_with_or({
+ # i686-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'i686-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}]
+ #
+ # x86_64-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}]
+ #
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/winapi-0.3.9:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mstcpip",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.9",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/winapi-i686-pc-windows-gnu-0.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/winapi-i686-pc-windows-gnu-0.4.0/BUILD.bazel
new file mode 100644
index 0000000..fbf405f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/winapi-i686-pc-windows-gnu-0.4.0/BUILD.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_i686_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/winapi-i686-pc-windows-gnu-0.4.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-i686-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-i686-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/crates/winapi-x86_64-pc-windows-gnu-0.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_manifests/crates/winapi-x86_64-pc-windows-gnu-0.4.0/BUILD.bazel
new file mode 100644
index 0000000..f0fe920
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/crates/winapi-x86_64-pc-windows-gnu-0.4.0/BUILD.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_x86_64_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_manifests/crates/winapi-x86_64-pc-windows-gnu-0.4.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-x86_64-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-x86_64-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_manifests/src/lib.rs b/examples/crate_universe/vendor_local_manifests/src/lib.rs
new file mode 100644
index 0000000..0e49d04
--- /dev/null
+++ b/examples/crate_universe/vendor_local_manifests/src/lib.rs
@@ -0,0 +1,44 @@
+use std::path::Path;
+
+use tokio::fs::File;
+use tokio::io::{AsyncBufReadExt, BufReader};
+
+pub async fn fill_buf_file(path: &Path) -> Vec<u8> {
+ let file = File::open(path).await.unwrap();
+ let mut file = BufReader::new(file);
+
+ let mut contents = Vec::new();
+
+ loop {
+ let consumed = {
+ let buffer = file.fill_buf().await.unwrap();
+ if buffer.is_empty() {
+ break;
+ }
+ contents.extend_from_slice(buffer);
+ buffer.len()
+ };
+
+ file.consume(consumed);
+ }
+
+ contents
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ use tempfile::NamedTempFile;
+ use tokio_test::assert_ok;
+
+ #[tokio::test]
+ async fn test_fill_buf_file() {
+ let file = NamedTempFile::new().unwrap();
+ assert_ok!(std::fs::write(file.path(), b"hello"));
+
+ let contents = fill_buf_file(file.path()).await;
+
+ assert_eq!(contents, b"hello");
+ }
+}
diff --git a/examples/crate_universe/vendor_local_pkgs/.gitignore b/examples/crate_universe/vendor_local_pkgs/.gitignore
new file mode 100644
index 0000000..a1b775e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/.gitignore
@@ -0,0 +1,3 @@
+# Ignore everything but the `BUILD` files within the vendored directories
+crates/*/*
+!crates/*/BUILD.bazel
diff --git a/examples/crate_universe/vendor_local_pkgs/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/BUILD.bazel
new file mode 100644
index 0000000..b04b739
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/BUILD.bazel
@@ -0,0 +1,72 @@
+load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
+
+crates_vendor(
+ name = "crates_vendor",
+ annotations = {
+ "axum": [crate.annotation(
+ compile_data_glob = ["**/*.md"],
+ )],
+ },
+ mode = "local",
+ packages = {
+ "axum": crate.spec(
+ version = "0.4.0",
+ ),
+ "hyper": crate.spec(
+ features = ["full"],
+ version = "0.14",
+ ),
+ "mime": crate.spec(
+ version = "0.3",
+ ),
+ "serde_json": crate.spec(
+ version = "1.0",
+ ),
+ # TODO: This is pinned due to a build failure introduced by 1.17
+ # bringing in windows-sys and introduces linker errors.
+ # https://github.com/abrisco/cargo-bazel/issues/173
+ "tokio": crate.spec(
+ features = ["full"],
+ version = "=1.16.1",
+ ),
+ "tower": crate.spec(
+ features = ["util"],
+ version = "0.4",
+ ),
+ "tower-http": crate.spec(
+ features = ["trace"],
+ version = "0.2.1",
+ ),
+ "tracing": crate.spec(
+ version = "0.1",
+ ),
+ "tracing-subscriber": crate.spec(
+ version = "0.3",
+ ),
+ },
+)
+
+rust_binary(
+ name = "vendor_local",
+ srcs = glob(["**/*.rs"]),
+ edition = "2018",
+ deps = [
+ "//vendor_local_pkgs/crates:axum",
+ "//vendor_local_pkgs/crates:hyper",
+ "//vendor_local_pkgs/crates:mime",
+ "//vendor_local_pkgs/crates:serde_json",
+ "//vendor_local_pkgs/crates:tokio",
+ "//vendor_local_pkgs/crates:tower",
+ "//vendor_local_pkgs/crates:tower-http",
+ "//vendor_local_pkgs/crates:tracing",
+ "//vendor_local_pkgs/crates:tracing-subscriber",
+ ],
+)
+
+rust_test(
+ name = "unit_test",
+ srcs = glob(["**/*.rs"]),
+ crate = ":vendor_local",
+ edition = "2018",
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/BUILD.bazel
new file mode 100644
index 0000000..3e93a62
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/BUILD.bazel
@@ -0,0 +1,82 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+
+package(default_visibility = ["//visibility:public"])
+
+exports_files(
+ [
+ "cargo-bazel.json",
+ "defs.bzl",
+ ] + glob([
+ "*.bazel",
+ ]),
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob([
+ "*.bazel",
+ "*.bzl",
+ ]),
+)
+
+# Workspace Member Dependencies
+alias(
+ name = "axum",
+ actual = "//vendor_local_pkgs/crates/axum-0.4.8:axum",
+ tags = ["manual"],
+)
+
+alias(
+ name = "hyper",
+ actual = "//vendor_local_pkgs/crates/hyper-0.14.17:hyper",
+ tags = ["manual"],
+)
+
+alias(
+ name = "mime",
+ actual = "//vendor_local_pkgs/crates/mime-0.3.16:mime",
+ tags = ["manual"],
+)
+
+alias(
+ name = "serde_json",
+ actual = "//vendor_local_pkgs/crates/serde_json-1.0.79:serde_json",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tokio",
+ actual = "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tower",
+ actual = "//vendor_local_pkgs/crates/tower-0.4.12:tower",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tower-http",
+ actual = "//vendor_local_pkgs/crates/tower-http-0.2.3:tower_http",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tracing",
+ actual = "//vendor_local_pkgs/crates/tracing-0.1.31:tracing",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tracing-subscriber",
+ actual = "//vendor_local_pkgs/crates/tracing-subscriber-0.3.9:tracing_subscriber",
+ tags = ["manual"],
+)
+
+# Binaries
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/ansi_term-0.12.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/ansi_term-0.12.1/BUILD.bazel
new file mode 100644
index 0000000..8fd8de6
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/ansi_term-0.12.1/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "ansi_term",
+ 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 = "2015",
+ 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.12.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_os = "windows")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/async-trait-0.1.52/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/async-trait-0.1.52/BUILD.bazel
new file mode 100644
index 0000000..ec371b8
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/async-trait-0.1.52/BUILD.bazel
@@ -0,0 +1,174 @@
+###############################################################################
+# @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",
+)
+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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_proc_macro(
+ name = "async_trait",
+ 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.1.52",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/async-trait-0.1.52:build_script_build",
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_pkgs/crates/quote-1.0.15:quote",
+ "//vendor_local_pkgs/crates/syn-1.0.86:syn",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "async-trait_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.1.52",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "async-trait_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/autocfg-1.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/autocfg-1.1.0/BUILD.bazel
new file mode 100644
index 0000000..bd2fcd9
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/autocfg-1.1.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "autocfg",
+ 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 = "2015",
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/axum-0.4.8/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/axum-0.4.8/BUILD.bazel
new file mode 100644
index 0000000..92fea8b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/axum-0.4.8/BUILD.bazel
@@ -0,0 +1,114 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "axum",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob([
+ "**",
+ "**/*.md",
+ ]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "http1",
+ "json",
+ "serde_json",
+ "tower-log",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/async-trait-0.1.52:async_trait",
+ ],
+ }),
+ 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.4.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/axum-core-0.1.2:axum_core",
+ "//vendor_local_pkgs/crates/bitflags-1.3.2:bitflags",
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:futures_util",
+ "//vendor_local_pkgs/crates/http-0.2.6:http",
+ "//vendor_local_pkgs/crates/http-body-0.4.4:http_body",
+ "//vendor_local_pkgs/crates/hyper-0.14.17:hyper",
+ "//vendor_local_pkgs/crates/matchit-0.4.6:matchit",
+ "//vendor_local_pkgs/crates/memchr-2.4.1:memchr",
+ "//vendor_local_pkgs/crates/mime-0.3.16:mime",
+ "//vendor_local_pkgs/crates/percent-encoding-2.1.0:percent_encoding",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/serde-1.0.136:serde",
+ "//vendor_local_pkgs/crates/serde_json-1.0.79:serde_json",
+ "//vendor_local_pkgs/crates/serde_urlencoded-0.7.1:serde_urlencoded",
+ "//vendor_local_pkgs/crates/sync_wrapper-0.1.1:sync_wrapper",
+ "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ "//vendor_local_pkgs/crates/tower-0.4.12:tower",
+ "//vendor_local_pkgs/crates/tower-http-0.2.3:tower_http",
+ "//vendor_local_pkgs/crates/tower-layer-0.3.1:tower_layer",
+ "//vendor_local_pkgs/crates/tower-service-0.3.1:tower_service",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/axum-core-0.1.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/axum-core-0.1.2/BUILD.bazel
new file mode 100644
index 0000000..1d5427f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/axum-core-0.1.2/BUILD.bazel
@@ -0,0 +1,90 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "axum_core",
+ 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": [
+ "//vendor_local_pkgs/crates/async-trait-0.1.52:async_trait",
+ ],
+ }),
+ 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.1.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:futures_util",
+ "//vendor_local_pkgs/crates/http-0.2.6:http",
+ "//vendor_local_pkgs/crates/http-body-0.4.4:http_body",
+ "//vendor_local_pkgs/crates/mime-0.3.16:mime",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/bitflags-1.3.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/bitflags-1.3.2/BUILD.bazel
new file mode 100644
index 0000000..6894746
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/bitflags-1.3.2/BUILD.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "bitflags",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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 = "1.3.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/bytes-1.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/bytes-1.1.0/BUILD.bazel
new file mode 100644
index 0000000..b679f2e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/bytes-1.1.0/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "bytes",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/cfg-if-1.0.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/cfg-if-1.0.0/BUILD.bazel
new file mode 100644
index 0000000..e4aab64
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/cfg-if-1.0.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "cfg_if",
+ 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 = "1.0.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/defs.bzl b/examples/crate_universe/vendor_local_pkgs/crates/defs.bzl
new file mode 100644
index 0000000..00a5273
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/defs.bzl
@@ -0,0 +1,368 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+"""
+# `crates_repository` API
+
+- [aliases](#aliases)
+- [crate_deps](#crate_deps)
+- [all_crate_deps](#all_crate_deps)
+- [crate_repositories](#crate_repositories)
+
+"""
+
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+###############################################################################
+# MACROS API
+###############################################################################
+
+# An identifier that represent common dependencies (unconditional).
+_COMMON_CONDITION = ""
+
+def _flatten_dependency_maps(all_dependency_maps):
+ """Flatten a list of dependency maps into one dictionary.
+
+ Dependency maps have the following structure:
+
+ ```python
+ DEPENDENCIES_MAP = {
+ # The first key in the map is a Bazel package
+ # name of the workspace this file is defined in.
+ "workspace_member_package": {
+
+ # Not all dependnecies are supported for all platforms.
+ # the condition key is the condition required to be true
+ # on the host platform.
+ "condition": {
+
+ # An alias to a crate target. # The label of the crate target the
+ # Aliases are only crate names. # package name refers to.
+ "package_name": "@full//:label",
+ }
+ }
+ }
+ ```
+
+ Args:
+ all_dependency_maps (list): A list of dicts as described above
+
+ Returns:
+ dict: A dictionary as described above
+ """
+ dependencies = {}
+
+ for workspace_deps_map in all_dependency_maps:
+ for pkg_name, conditional_deps_map in workspace_deps_map.items():
+ if pkg_name not in dependencies:
+ non_frozen_map = dict()
+ for key, values in conditional_deps_map.items():
+ non_frozen_map.update({key: dict(values.items())})
+ dependencies.setdefault(pkg_name, non_frozen_map)
+ continue
+
+ for condition, deps_map in conditional_deps_map.items():
+ # If the condition has not been recorded, do so and continue
+ if condition not in dependencies[pkg_name]:
+ dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))
+ continue
+
+ # Alert on any miss-matched dependencies
+ inconsistent_entries = []
+ for crate_name, crate_label in deps_map.items():
+ existing = dependencies[pkg_name][condition].get(crate_name)
+ if existing and existing != crate_label:
+ inconsistent_entries.append((crate_name, existing, crate_label))
+ dependencies[pkg_name][condition].update({crate_name: crate_label})
+
+ return dependencies
+
+def crate_deps(deps, package_name = None):
+ """Finds the fully qualified label of the requested crates for the package where this macro is called.
+
+ Args:
+ deps (list): The desired list of crate targets.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()`.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if not deps:
+ return []
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Join both sets of dependencies
+ dependencies = _flatten_dependency_maps([
+ _NORMAL_DEPENDENCIES,
+ _NORMAL_DEV_DEPENDENCIES,
+ _PROC_MACRO_DEPENDENCIES,
+ _PROC_MACRO_DEV_DEPENDENCIES,
+ _BUILD_DEPENDENCIES,
+ _BUILD_PROC_MACRO_DEPENDENCIES,
+ ]).pop(package_name, {})
+
+ # Combine all conditional packages so we can easily index over a flat list
+ # TODO: Perhaps this should actually return select statements and maintain
+ # the conditionals of the dependencies
+ flat_deps = {}
+ for deps_set in dependencies.values():
+ for crate_name, crate_label in deps_set.items():
+ flat_deps.update({crate_name: crate_label})
+
+ missing_crates = []
+ crate_targets = []
+ for crate_target in deps:
+ if crate_target not in flat_deps:
+ missing_crates.append(crate_target)
+ else:
+ crate_targets.append(flat_deps[crate_target])
+
+ if missing_crates:
+ fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format(
+ missing_crates,
+ package_name,
+ dependencies,
+ ))
+
+ return crate_targets
+
+def all_crate_deps(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Finds the fully qualified label of all requested direct crate dependencies \
+ for the package where this macro is called.
+
+ If no parameters are set, all normal dependencies are returned. Setting any one flag will
+ otherwise impact the contents of the returned list.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_dependency_maps = []
+ if normal:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+ if normal_dev:
+ all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)
+ if proc_macro:
+ all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)
+ if proc_macro_dev:
+ all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)
+ if build:
+ all_dependency_maps.append(_BUILD_DEPENDENCIES)
+ if build_proc_macro:
+ all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)
+
+ # Default to always using normal dependencies
+ if not all_dependency_maps:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+
+ dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)
+
+ if not dependencies:
+ return []
+
+ crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())
+ for condition, deps in dependencies.items():
+ crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()})
+
+ return crate_deps
+
+def aliases(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Produces a map of Crate alias names to their original label
+
+ If no dependency kinds are specified, `normal` and `proc_macro` are used by default.
+ Setting any one flag will otherwise determine the contents of the returned dict.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ dict: The aliases of all associated packages
+ """
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_aliases_maps = []
+ if normal:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ if normal_dev:
+ all_aliases_maps.append(_NORMAL_DEV_ALIASES)
+ if proc_macro:
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+ if proc_macro_dev:
+ all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)
+ if build:
+ all_aliases_maps.append(_BUILD_ALIASES)
+ if build_proc_macro:
+ all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)
+
+ # Default to always using normal aliases
+ if not all_aliases_maps:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+
+ aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)
+
+ if not aliases:
+ return dict()
+
+ common_items = aliases.pop(_COMMON_CONDITION, {}).items()
+
+ # If there are only common items in the dictionary, immediately return them
+ if not len(aliases.keys()) == 1:
+ return dict(common_items)
+
+ # Build a single select statement where each conditional has accounted for the
+ # common set of aliases.
+ crate_aliases = {"//conditions:default": common_items}
+ for condition, deps in aliases.items():
+ condition_triples = _CONDITIONS[condition]
+ if condition_triples in crate_aliases:
+ crate_aliases[condition_triples].update(deps)
+ else:
+ crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)})
+
+ return selects.with_or(crate_aliases)
+
+###############################################################################
+# WORKSPACE MEMBER DEPS AND ALIASES
+###############################################################################
+
+_NORMAL_DEPENDENCIES = {
+ "": {
+ _COMMON_CONDITION: {
+ "axum": "//vendor_local_pkgs/crates/axum-0.4.8:axum",
+ "hyper": "//vendor_local_pkgs/crates/hyper-0.14.17:hyper",
+ "mime": "//vendor_local_pkgs/crates/mime-0.3.16:mime",
+ "serde_json": "//vendor_local_pkgs/crates/serde_json-1.0.79:serde_json",
+ "tokio": "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ "tower": "//vendor_local_pkgs/crates/tower-0.4.12:tower",
+ "tower-http": "//vendor_local_pkgs/crates/tower-http-0.2.3:tower_http",
+ "tracing": "//vendor_local_pkgs/crates/tracing-0.1.31:tracing",
+ "tracing-subscriber": "//vendor_local_pkgs/crates/tracing-subscriber-0.3.9:tracing_subscriber",
+ },
+ },
+}
+
+_NORMAL_ALIASES = {
+ "": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_NORMAL_DEV_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_NORMAL_DEV_ALIASES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_ALIASES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_DEV_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_DEV_ALIASES = {
+ "": {
+ },
+}
+
+_BUILD_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_BUILD_ALIASES = {
+ "": {
+ },
+}
+
+_BUILD_PROC_MACRO_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_BUILD_PROC_MACRO_ALIASES = {
+ "": {
+ },
+}
+
+_CONDITIONS = {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(not(windows))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(target_os = \"redox\")": [],
+ "cfg(target_os = \"windows\")": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
+ "cfg(tracing_unstable)": [],
+ "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": [],
+}
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/fnv-1.0.7/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/fnv-1.0.7/BUILD.bazel
new file mode 100644
index 0000000..9b3c6e3
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/fnv-1.0.7/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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", # Apache-2.0 / MIT
+# ])
+
+rust_library(
+ name = "fnv",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "1.0.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/form_urlencoded-1.0.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/form_urlencoded-1.0.1/BUILD.bazel
new file mode 100644
index 0000000..9b0711c
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/form_urlencoded-1.0.1/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "form_urlencoded",
+ 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 = "1.0.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/matches-0.1.9:matches",
+ "//vendor_local_pkgs/crates/percent-encoding-2.1.0:percent_encoding",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/futures-channel-0.3.21/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/futures-channel-0.3.21/BUILD.bazel
new file mode 100644
index 0000000..63a38dd
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/futures-channel-0.3.21/BUILD.bazel
@@ -0,0 +1,178 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_channel",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/futures-channel-0.3.21:build_script_build",
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-channel_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-channel_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/futures-core-0.3.21/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/futures-core-0.3.21/BUILD.bazel
new file mode 100644
index 0000000..fe1f1cb
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/futures-core-0.3.21/BUILD.bazel
@@ -0,0 +1,177 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_core",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/futures-sink-0.3.21/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/futures-sink-0.3.21/BUILD.bazel
new file mode 100644
index 0000000..cbdd96f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/futures-sink-0.3.21/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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 = "futures_sink",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/futures-task-0.3.21/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/futures-task-0.3.21/BUILD.bazel
new file mode 100644
index 0000000..20bc494
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/futures-task-0.3.21/BUILD.bazel
@@ -0,0 +1,173 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_task",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/futures-task-0.3.21:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-task_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-task_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/futures-util-0.3.21/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/futures-util-0.3.21/BUILD.bazel
new file mode 100644
index 0000000..99d0ccd
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/futures-util-0.3.21/BUILD.bazel
@@ -0,0 +1,177 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_util",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-task-0.3.21:futures_task",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:build_script_build",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/pin-utils-0.1.0:pin_utils",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-util_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-util_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/h2-0.3.11/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/h2-0.3.11/BUILD.bazel
new file mode 100644
index 0000000..3aa6ad9
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/h2-0.3.11/BUILD.bazel
@@ -0,0 +1,95 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "h2",
+ 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.11",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/fnv-1.0.7:fnv",
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-sink-0.3.21:futures_sink",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:futures_util",
+ "//vendor_local_pkgs/crates/http-0.2.6:http",
+ "//vendor_local_pkgs/crates/indexmap-1.8.0:indexmap",
+ "//vendor_local_pkgs/crates/slab-0.4.5:slab",
+ "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ "//vendor_local_pkgs/crates/tokio-util-0.6.9:tokio_util",
+ "//vendor_local_pkgs/crates/tracing-0.1.31:tracing",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/hashbrown-0.11.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/hashbrown-0.11.2/BUILD.bazel
new file mode 100644
index 0000000..54a071b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/hashbrown-0.11.2/BUILD.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "hashbrown",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "raw",
+ ],
+ 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.11.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/hermit-abi-0.1.19/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/hermit-abi-0.1.19/BUILD.bazel
new file mode 100644
index 0000000..8bc328d
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/hermit-abi-0.1.19/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "hermit_abi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.1.19",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/http-0.2.6/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/http-0.2.6/BUILD.bazel
new file mode 100644
index 0000000..f2128d1
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/http-0.2.6/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "http",
+ 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.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/fnv-1.0.7:fnv",
+ "//vendor_local_pkgs/crates/itoa-1.0.1:itoa",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/http-body-0.4.4/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/http-body-0.4.4/BUILD.bazel
new file mode 100644
index 0000000..e2010e3
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/http-body-0.4.4/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "http_body",
+ 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.4.4",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/http-0.2.6:http",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/http-range-header-0.3.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/http-range-header-0.3.0/BUILD.bazel
new file mode 100644
index 0000000..c2d71d8
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/http-range-header-0.3.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "http_range_header",
+ 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.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/httparse-1.6.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/httparse-1.6.0/BUILD.bazel
new file mode 100644
index 0000000..34dfd8b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/httparse-1.6.0/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "httparse",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "1.6.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/httparse-1.6.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "httparse_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.6.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "httparse_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/httpdate-1.0.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/httpdate-1.0.2/BUILD.bazel
new file mode 100644
index 0000000..16d4a28
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/httpdate-1.0.2/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "httpdate",
+ 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 = "1.0.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/hyper-0.14.17/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/hyper-0.14.17/BUILD.bazel
new file mode 100644
index 0000000..8120d34
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/hyper-0.14.17/BUILD.bazel
@@ -0,0 +1,111 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "hyper",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "client",
+ "default",
+ "full",
+ "h2",
+ "http1",
+ "http2",
+ "runtime",
+ "server",
+ "socket2",
+ "stream",
+ "tcp",
+ ],
+ 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.14.17",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/futures-channel-0.3.21:futures_channel",
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:futures_util",
+ "//vendor_local_pkgs/crates/h2-0.3.11:h2",
+ "//vendor_local_pkgs/crates/http-0.2.6:http",
+ "//vendor_local_pkgs/crates/http-body-0.4.4:http_body",
+ "//vendor_local_pkgs/crates/httparse-1.6.0:httparse",
+ "//vendor_local_pkgs/crates/httpdate-1.0.2:httpdate",
+ "//vendor_local_pkgs/crates/itoa-1.0.1:itoa",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/socket2-0.4.4:socket2",
+ "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ "//vendor_local_pkgs/crates/tower-service-0.3.1:tower_service",
+ "//vendor_local_pkgs/crates/tracing-0.1.31:tracing",
+ "//vendor_local_pkgs/crates/want-0.3.0:want",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/indexmap-1.8.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/indexmap-1.8.0/BUILD.bazel
new file mode 100644
index 0000000..dca71c5
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/indexmap-1.8.0/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "indexmap",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ 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 = "1.8.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/hashbrown-0.11.2:hashbrown",
+ "//vendor_local_pkgs/crates/indexmap-1.8.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "indexmap_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.8.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/autocfg-1.1.0:autocfg",
+ ],
+ }),
+)
+
+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 = "indexmap_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/instant-0.1.12/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/instant-0.1.12/BUILD.bazel
new file mode 100644
index 0000000..e6d64d7
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/instant-0.1.12/BUILD.bazel
@@ -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", # BSD-3-Clause
+# ])
+
+rust_library(
+ name = "instant",
+ 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.1.12",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/cfg-if-1.0.0:cfg_if",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/itoa-1.0.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/itoa-1.0.1/BUILD.bazel
new file mode 100644
index 0000000..69bfcf9
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/itoa-1.0.1/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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 = "itoa",
+ 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 = "1.0.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/lazy_static-1.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/lazy_static-1.4.0/BUILD.bazel
new file mode 100644
index 0000000..aabde66
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/lazy_static-1.4.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "lazy_static",
+ 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 = "2015",
+ 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 = "1.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/libc-0.2.119/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/libc-0.2.119/BUILD.bazel
new file mode 100644
index 0000000..5728a21
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/libc-0.2.119/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "libc",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.119",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/libc-0.2.119:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "libc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.2.119",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "libc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/lock_api-0.4.6/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/lock_api-0.4.6/BUILD.bazel
new file mode 100644
index 0000000..e0a626e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/lock_api-0.4.6/BUILD.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "lock_api",
+ 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.4.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/scopeguard-1.1.0:scopeguard",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/log-0.4.14/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/log-0.4.14/BUILD.bazel
new file mode 100644
index 0000000..ddae413
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/log-0.4.14/BUILD.bazel
@@ -0,0 +1,174 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "log",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.4.14",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_pkgs/crates/log-0.4.14:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "log_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.14",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "log_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/matches-0.1.9/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/matches-0.1.9/BUILD.bazel
new file mode 100644
index 0000000..b2ec92b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/matches-0.1.9/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "matches",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.1.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/matchit-0.4.6/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/matchit-0.4.6/BUILD.bazel
new file mode 100644
index 0000000..dd3406b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/matchit-0.4.6/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "matchit",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.4.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/memchr-2.4.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/memchr-2.4.1/BUILD.bazel
new file mode 100644
index 0000000..316b2a2
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/memchr-2.4.1/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Unlicense/MIT
+# ])
+
+rust_library(
+ name = "memchr",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "2.4.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/memchr-2.4.1:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "memchr_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "2.4.1",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "memchr_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/mime-0.3.16/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/mime-0.3.16/BUILD.bazel
new file mode 100644
index 0000000..d7f8128
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/mime-0.3.16/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "mime",
+ 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 = "2015",
+ 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.16",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/mio-0.7.14/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/mio-0.7.14/BUILD.bazel
new file mode 100644
index 0000000..3995b37
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/mio-0.7.14/BUILD.bazel
@@ -0,0 +1,132 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "mio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "net",
+ "os-ext",
+ "os-poll",
+ "os-util",
+ "tcp",
+ "udp",
+ "uds",
+ ],
+ 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.7.14",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/miow-0.3.7:miow",
+ "//vendor_local_pkgs/crates/ntapi-0.3.7:ntapi",
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ ],
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/miow-0.3.7/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/miow-0.3.7/BUILD.bazel
new file mode 100644
index 0000000..1bca438
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/miow-0.3.7/BUILD.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "miow",
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/ntapi-0.3.7/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/ntapi-0.3.7/BUILD.bazel
new file mode 100644
index 0000000..0ada3ac
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/ntapi-0.3.7/BUILD.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "ntapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/ntapi-0.3.7:build_script_build",
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "ntapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.7",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "ntapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/num_cpus-1.13.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/num_cpus-1.13.1/BUILD.bazel
new file mode 100644
index 0000000..55e897d
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/num_cpus-1.13.1/BUILD.bazel
@@ -0,0 +1,116 @@
+###############################################################################
+# @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 = "num_cpus",
+ 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 = "2015",
+ 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 = "1.13.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))
+ #
+ # No supported platform triples for cfg: 'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'
+ # Skipped dependencies: [{"id":"hermit-abi 0.1.19","target":"hermit_abi"}]
+ #
+ # cfg(not(windows))
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:wasm32-unknown-unknown",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/once_cell-1.9.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/once_cell-1.9.0/BUILD.bazel
new file mode 100644
index 0000000..f2a936a
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/once_cell-1.9.0/BUILD.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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 = "once_cell",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "race",
+ "std",
+ ],
+ 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 = "1.9.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/parking_lot-0.11.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/parking_lot-0.11.2/BUILD.bazel
new file mode 100644
index 0000000..9cc5a37
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/parking_lot-0.11.2/BUILD.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.11.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/instant-0.1.12:instant",
+ "//vendor_local_pkgs/crates/lock_api-0.4.6:lock_api",
+ "//vendor_local_pkgs/crates/parking_lot_core-0.8.5:parking_lot_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/parking_lot_core-0.8.5/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/parking_lot_core-0.8.5/BUILD.bazel
new file mode 100644
index 0000000..adbd416
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/parking_lot_core-0.8.5/BUILD.bazel
@@ -0,0 +1,222 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot_core",
+ 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.8.5",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_os = "redox")
+ #
+ # No supported platform triples for cfg: 'cfg(target_os = "redox")'
+ # Skipped dependencies: [{"id":"redox_syscall 0.2.11","target":"syscall"}]
+ #
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ "//vendor_local_pkgs/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_pkgs/crates/instant-0.1.12:instant",
+ "//vendor_local_pkgs/crates/parking_lot_core-0.8.5:build_script_build",
+ "//vendor_local_pkgs/crates/smallvec-1.8.0:smallvec",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_pkgs/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_pkgs/crates/instant-0.1.12:instant",
+ "//vendor_local_pkgs/crates/parking_lot_core-0.8.5:build_script_build",
+ "//vendor_local_pkgs/crates/smallvec-1.8.0:smallvec",
+ ],
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_pkgs/crates/instant-0.1.12:instant",
+ "//vendor_local_pkgs/crates/parking_lot_core-0.8.5:build_script_build",
+ "//vendor_local_pkgs/crates/smallvec-1.8.0:smallvec",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "parking_lot_core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.8.5",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "parking_lot_core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/percent-encoding-2.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/percent-encoding-2.1.0/BUILD.bazel
new file mode 100644
index 0000000..1ad467a
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/percent-encoding-2.1.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "percent_encoding",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "2.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/pin-project-1.0.10/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/pin-project-1.0.10/BUILD.bazel
new file mode 100644
index 0000000..50eb667
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/pin-project-1.0.10/BUILD.bazel
@@ -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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "pin_project",
+ 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": [
+ "//vendor_local_pkgs/crates/pin-project-internal-1.0.10:pin_project_internal",
+ ],
+ }),
+ 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 = "1.0.10",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/pin-project-internal-1.0.10/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/pin-project-internal-1.0.10/BUILD.bazel
new file mode 100644
index 0000000..d9fe346
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/pin-project-internal-1.0.10/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0 OR MIT
+# ])
+
+rust_proc_macro(
+ name = "pin_project_internal",
+ 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 = "1.0.10",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_pkgs/crates/quote-1.0.15:quote",
+ "//vendor_local_pkgs/crates/syn-1.0.86:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/pin-project-lite-0.2.8/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/pin-project-lite-0.2.8/BUILD.bazel
new file mode 100644
index 0000000..cfd3870
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/pin-project-lite-0.2.8/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "pin_project_lite",
+ 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.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/pin-utils-0.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/pin-utils-0.1.0/BUILD.bazel
new file mode 100644
index 0000000..de4c1a2
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/pin-utils-0.1.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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 = "pin_utils",
+ 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.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/proc-macro2-1.0.36/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/proc-macro2-1.0.36/BUILD.bazel
new file mode 100644
index 0000000..ab8ac7d
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/proc-macro2-1.0.36/BUILD.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "proc_macro2",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.36",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:build_script_build",
+ "//vendor_local_pkgs/crates/unicode-xid-0.2.2:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "proc-macro2_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.36",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "proc-macro2_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/quote-1.0.15/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/quote-1.0.15/BUILD.bazel
new file mode 100644
index 0000000..f11544c
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/quote-1.0.15/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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 = "quote",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.15",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:proc_macro2",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/redox_syscall-0.2.11/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/redox_syscall-0.2.11/BUILD.bazel
new file mode 100644
index 0000000..ff935f0
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/redox_syscall-0.2.11/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "syscall",
+ 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.11",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bitflags-1.3.2:bitflags",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/ryu-1.0.9/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/ryu-1.0.9/BUILD.bazel
new file mode 100644
index 0000000..c2a9c81
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/ryu-1.0.9/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR BSL-1.0
+# ])
+
+rust_library(
+ name = "ryu",
+ 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 = "1.0.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/scopeguard-1.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/scopeguard-1.1.0/BUILD.bazel
new file mode 100644
index 0000000..0bc1e13
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/scopeguard-1.1.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "scopeguard",
+ 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 = "2015",
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/serde-1.0.136/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/serde-1.0.136/BUILD.bazel
new file mode 100644
index 0000000..16a6c19
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/serde-1.0.136/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "serde",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "1.0.136",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/serde-1.0.136:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "serde_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.136",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "serde_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/serde_json-1.0.79/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/serde_json-1.0.79/BUILD.bazel
new file mode 100644
index 0000000..7c55f8d
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/serde_json-1.0.79/BUILD.bazel
@@ -0,0 +1,180 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "serde_json",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "raw_value",
+ "std",
+ ],
+ 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 = "1.0.79",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/itoa-1.0.1:itoa",
+ "//vendor_local_pkgs/crates/ryu-1.0.9:ryu",
+ "//vendor_local_pkgs/crates/serde-1.0.136:serde",
+ "//vendor_local_pkgs/crates/serde_json-1.0.79:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "serde_json_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "raw_value",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.79",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "serde_json_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/serde_urlencoded-0.7.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/serde_urlencoded-0.7.1/BUILD.bazel
new file mode 100644
index 0000000..98e60e9
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/serde_urlencoded-0.7.1/BUILD.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "serde_urlencoded",
+ 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.7.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/form_urlencoded-1.0.1:form_urlencoded",
+ "//vendor_local_pkgs/crates/itoa-1.0.1:itoa",
+ "//vendor_local_pkgs/crates/ryu-1.0.9:ryu",
+ "//vendor_local_pkgs/crates/serde-1.0.136:serde",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/sharded-slab-0.1.4/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/sharded-slab-0.1.4/BUILD.bazel
new file mode 100644
index 0000000..8731db1
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/sharded-slab-0.1.4/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "sharded_slab",
+ 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.1.4",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/lazy_static-1.4.0:lazy_static",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/signal-hook-registry-1.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/signal-hook-registry-1.4.0/BUILD.bazel
new file mode 100644
index 0000000..e41c37a
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/signal-hook-registry-1.4.0/BUILD.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "signal_hook_registry",
+ 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 = "2015",
+ 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 = "1.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/slab-0.4.5/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/slab-0.4.5/BUILD.bazel
new file mode 100644
index 0000000..d4303ef
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/slab-0.4.5/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "slab",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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.4.5",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/smallvec-1.8.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/smallvec-1.8.0/BUILD.bazel
new file mode 100644
index 0000000..a9ae389
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/smallvec-1.8.0/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "smallvec",
+ 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 = "1.8.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/socket2-0.4.4/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/socket2-0.4.4/BUILD.bazel
new file mode 100644
index 0000000..028f436
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/socket2-0.4.4/BUILD.bazel
@@ -0,0 +1,119 @@
+###############################################################################
+# @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 = "socket2",
+ 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.4.4",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+
+ # Common Deps
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/syn-1.0.86/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/syn-1.0.86/BUILD.bazel
new file mode 100644
index 0000000..2a05ffd
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/syn-1.0.86/BUILD.bazel
@@ -0,0 +1,196 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "syn",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit",
+ "visit-mut",
+ ],
+ 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 = "1.0.86",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_pkgs/crates/quote-1.0.15:quote",
+ "//vendor_local_pkgs/crates/syn-1.0.86:build_script_build",
+ "//vendor_local_pkgs/crates/unicode-xid-0.2.2:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "syn_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit",
+ "visit-mut",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.86",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "syn_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/sync_wrapper-0.1.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/sync_wrapper-0.1.1/BUILD.bazel
new file mode 100644
index 0000000..d3358b4
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/sync_wrapper-0.1.1/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0
+# ])
+
+rust_library(
+ name = "sync_wrapper",
+ 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.1.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/thread_local-1.1.4/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/thread_local-1.1.4/BUILD.bazel
new file mode 100644
index 0000000..f77834f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/thread_local-1.1.4/BUILD.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "thread_local",
+ 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 = "1.1.4",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/once_cell-1.9.0:once_cell",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tokio-1.16.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tokio-1.16.1/BUILD.bazel
new file mode 100644
index 0000000..559800b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tokio-1.16.1/BUILD.bazel
@@ -0,0 +1,165 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "bytes",
+ "default",
+ "fs",
+ "full",
+ "io-std",
+ "io-util",
+ "libc",
+ "macros",
+ "memchr",
+ "mio",
+ "net",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "process",
+ "rt",
+ "rt-multi-thread",
+ "signal",
+ "signal-hook-registry",
+ "sync",
+ "time",
+ "tokio-macros",
+ "winapi",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/tokio-macros-1.7.0:tokio_macros",
+ ],
+ }),
+ 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 = "1.16.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/libc-0.2.119:libc",
+ "//vendor_local_pkgs/crates/signal-hook-registry-1.4.0:signal_hook_registry",
+
+ # Common Deps
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/memchr-2.4.1:memchr",
+ "//vendor_local_pkgs/crates/mio-0.7.14:mio",
+ "//vendor_local_pkgs/crates/num_cpus-1.13.1:num_cpus",
+ "//vendor_local_pkgs/crates/once_cell-1.9.0:once_cell",
+ "//vendor_local_pkgs/crates/parking_lot-0.11.2:parking_lot",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "//vendor_local_pkgs/crates/winapi-0.3.9:winapi",
+
+ # Common Deps
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/memchr-2.4.1:memchr",
+ "//vendor_local_pkgs/crates/mio-0.7.14:mio",
+ "//vendor_local_pkgs/crates/num_cpus-1.13.1:num_cpus",
+ "//vendor_local_pkgs/crates/once_cell-1.9.0:once_cell",
+ "//vendor_local_pkgs/crates/parking_lot-0.11.2:parking_lot",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/memchr-2.4.1:memchr",
+ "//vendor_local_pkgs/crates/mio-0.7.14:mio",
+ "//vendor_local_pkgs/crates/num_cpus-1.13.1:num_cpus",
+ "//vendor_local_pkgs/crates/once_cell-1.9.0:once_cell",
+ "//vendor_local_pkgs/crates/parking_lot-0.11.2:parking_lot",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tokio-macros-1.7.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tokio-macros-1.7.0/BUILD.bazel
new file mode 100644
index 0000000..32e221f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tokio-macros-1.7.0/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "tokio_macros",
+ 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 = "1.7.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_pkgs/crates/quote-1.0.15:quote",
+ "//vendor_local_pkgs/crates/syn-1.0.86:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tokio-util-0.6.9/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tokio-util-0.6.9/BUILD.bazel
new file mode 100644
index 0000000..379638c
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tokio-util-0.6.9/BUILD.bazel
@@ -0,0 +1,92 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_util",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "codec",
+ "default",
+ ],
+ 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.6.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-sink-0.3.21:futures_sink",
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tokio-util-0.7.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tokio-util-0.7.0/BUILD.bazel
new file mode 100644
index 0000000..2758f4b
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tokio-util-0.7.0/BUILD.bazel
@@ -0,0 +1,90 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_util",
+ 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.7.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-sink-0.3.21:futures_sink",
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tower-0.4.12/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tower-0.4.12/BUILD.bazel
new file mode 100644
index 0000000..36d9127
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tower-0.4.12/BUILD.bazel
@@ -0,0 +1,106 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "__common",
+ "buffer",
+ "default",
+ "futures-core",
+ "futures-util",
+ "log",
+ "make",
+ "pin-project",
+ "pin-project-lite",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "util",
+ ],
+ 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.4.12",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:futures_util",
+ "//vendor_local_pkgs/crates/pin-project-1.0.10:pin_project",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/tokio-1.16.1:tokio",
+ "//vendor_local_pkgs/crates/tokio-util-0.7.0:tokio_util",
+ "//vendor_local_pkgs/crates/tower-layer-0.3.1:tower_layer",
+ "//vendor_local_pkgs/crates/tower-service-0.3.1:tower_service",
+ "//vendor_local_pkgs/crates/tracing-0.1.31:tracing",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tower-http-0.2.3/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tower-http-0.2.3/BUILD.bazel
new file mode 100644
index 0000000..4c75db0
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tower-http-0.2.3/BUILD.bazel
@@ -0,0 +1,102 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower_http",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "map-response-body",
+ "tower",
+ "trace",
+ "tracing",
+ "util",
+ ],
+ 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.3",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/bitflags-1.3.2:bitflags",
+ "//vendor_local_pkgs/crates/bytes-1.1.0:bytes",
+ "//vendor_local_pkgs/crates/futures-core-0.3.21:futures_core",
+ "//vendor_local_pkgs/crates/futures-util-0.3.21:futures_util",
+ "//vendor_local_pkgs/crates/http-0.2.6:http",
+ "//vendor_local_pkgs/crates/http-body-0.4.4:http_body",
+ "//vendor_local_pkgs/crates/http-range-header-0.3.0:http_range_header",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/tower-0.4.12:tower",
+ "//vendor_local_pkgs/crates/tower-layer-0.3.1:tower_layer",
+ "//vendor_local_pkgs/crates/tower-service-0.3.1:tower_service",
+ "//vendor_local_pkgs/crates/tracing-0.1.31:tracing",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tower-layer-0.3.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tower-layer-0.3.1/BUILD.bazel
new file mode 100644
index 0000000..9e48ea0
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tower-layer-0.3.1/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower_layer",
+ 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.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tower-service-0.3.1/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tower-service-0.3.1/BUILD.bazel
new file mode 100644
index 0000000..317d496
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tower-service-0.3.1/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower_service",
+ 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.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tracing-0.1.31/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tracing-0.1.31/BUILD.bazel
new file mode 100644
index 0000000..069009a
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tracing-0.1.31/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "tracing",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "attributes",
+ "default",
+ "log",
+ "std",
+ "tracing-attributes",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/tracing-attributes-0.1.19:tracing_attributes",
+ ],
+ }),
+ 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.1.31",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/cfg-if-1.0.0:cfg_if",
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ "//vendor_local_pkgs/crates/pin-project-lite-0.2.8:pin_project_lite",
+ "//vendor_local_pkgs/crates/tracing-core-0.1.22:tracing_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tracing-attributes-0.1.19/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tracing-attributes-0.1.19/BUILD.bazel
new file mode 100644
index 0000000..9ed8663
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tracing-attributes-0.1.19/BUILD.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "tracing_attributes",
+ 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.1.19",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/proc-macro2-1.0.36:proc_macro2",
+ "//vendor_local_pkgs/crates/quote-1.0.15:quote",
+ "//vendor_local_pkgs/crates/syn-1.0.86:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tracing-core-0.1.22/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tracing-core-0.1.22/BUILD.bazel
new file mode 100644
index 0000000..6256b9f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tracing-core-0.1.22/BUILD.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "tracing_core",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "lazy_static",
+ "std",
+ "valuable",
+ ],
+ 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.1.22",
+ deps = [
+ ] + select_with_or({
+ # cfg(tracing_unstable)
+ #
+ # No supported platform triples for cfg: 'cfg(tracing_unstable)'
+ # Skipped dependencies: [{"id":"valuable 0.1.0","target":"valuable"}]
+ #
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/lazy_static-1.4.0:lazy_static",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tracing-log-0.1.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tracing-log-0.1.2/BUILD.bazel
new file mode 100644
index 0000000..3f5ff7d
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tracing-log-0.1.2/BUILD.bazel
@@ -0,0 +1,89 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tracing_log",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "log-tracer",
+ "std",
+ ],
+ 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.1.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/lazy_static-1.4.0:lazy_static",
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ "//vendor_local_pkgs/crates/tracing-core-0.1.22:tracing_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/tracing-subscriber-0.3.9/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/tracing-subscriber-0.3.9/BUILD.bazel
new file mode 100644
index 0000000..17b127e
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/tracing-subscriber-0.3.9/BUILD.bazel
@@ -0,0 +1,101 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tracing_subscriber",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "ansi",
+ "ansi_term",
+ "default",
+ "fmt",
+ "registry",
+ "sharded-slab",
+ "smallvec",
+ "std",
+ "thread_local",
+ "tracing-log",
+ ],
+ 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.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/ansi_term-0.12.1:ansi_term",
+ "//vendor_local_pkgs/crates/sharded-slab-0.1.4:sharded_slab",
+ "//vendor_local_pkgs/crates/smallvec-1.8.0:smallvec",
+ "//vendor_local_pkgs/crates/thread_local-1.1.4:thread_local",
+ "//vendor_local_pkgs/crates/tracing-core-0.1.22:tracing_core",
+ "//vendor_local_pkgs/crates/tracing-log-0.1.2:tracing_log",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/try-lock-0.2.3/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/try-lock-0.2.3/BUILD.bazel
new file mode 100644
index 0000000..10fbaf6
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/try-lock-0.2.3/BUILD.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "try_lock",
+ 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 = "2015",
+ 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.3",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/unicode-xid-0.2.2/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/unicode-xid-0.2.2/BUILD.bazel
new file mode 100644
index 0000000..30562c1
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/unicode-xid-0.2.2/BUILD.bazel
@@ -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 = "unicode_xid",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/valuable-0.1.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/valuable-0.1.0/BUILD.bazel
new file mode 100644
index 0000000..e044513
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/valuable-0.1.0/BUILD.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_library(
+ name = "valuable",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "std",
+ ],
+ 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.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/valuable-0.1.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "valuable_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.1.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "valuable_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/want-0.3.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/want-0.3.0/BUILD.bazel
new file mode 100644
index 0000000..9978792
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/want-0.3.0/BUILD.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "want",
+ 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.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/log-0.4.14:log",
+ "//vendor_local_pkgs/crates/try-lock-0.2.3:try_lock",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/winapi-0.3.9/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/winapi-0.3.9/BUILD.bazel
new file mode 100644
index 0000000..9173bf8
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/winapi-0.3.9/BUILD.bazel
@@ -0,0 +1,241 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mstcpip",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "processenv",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.9",
+ deps = [
+ ] + select_with_or({
+ # i686-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'i686-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}]
+ #
+ # x86_64-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}]
+ #
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/winapi-0.3.9:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mstcpip",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "processenv",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.9",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/winapi-i686-pc-windows-gnu-0.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/winapi-i686-pc-windows-gnu-0.4.0/BUILD.bazel
new file mode 100644
index 0000000..828411f
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/winapi-i686-pc-windows-gnu-0.4.0/BUILD.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_i686_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/winapi-i686-pc-windows-gnu-0.4.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-i686-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-i686-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/crates/winapi-x86_64-pc-windows-gnu-0.4.0/BUILD.bazel b/examples/crate_universe/vendor_local_pkgs/crates/winapi-x86_64-pc-windows-gnu-0.4.0/BUILD.bazel
new file mode 100644
index 0000000..8e4afeb
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/crates/winapi-x86_64-pc-windows-gnu-0.4.0/BUILD.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_x86_64_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "//vendor_local_pkgs/crates/winapi-x86_64-pc-windows-gnu-0.4.0:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-x86_64-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-x86_64-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_local_pkgs/src/main.rs b/examples/crate_universe/vendor_local_pkgs/src/main.rs
new file mode 100644
index 0000000..edde4b6
--- /dev/null
+++ b/examples/crate_universe/vendor_local_pkgs/src/main.rs
@@ -0,0 +1,150 @@
+//! Copied from https://github.com/tokio-rs/axum/blob/v0.2.5/examples/testing/src/main.rs
+
+use axum::{
+ routing::{get, post},
+ Json, Router,
+};
+use tower_http::trace::TraceLayer;
+
+#[tokio::main]
+async fn main() {
+ // Set the RUST_LOG, if it hasn't been explicitly defined
+ if std::env::var_os("RUST_LOG").is_none() {
+ std::env::set_var("RUST_LOG", "example_testing=debug,tower_http=debug")
+ }
+ tracing_subscriber::fmt::init();
+
+ let addr = std::net::SocketAddr::from(([127, 0, 0, 1], 3000));
+
+ tracing::debug!("listening on {}", addr);
+
+ axum::Server::bind(&addr)
+ .serve(app().into_make_service())
+ .await
+ .unwrap();
+}
+
+/// Having a function that produces our app makes it easy to call it from tests
+/// without having to create an HTTP server.
+#[allow(dead_code)]
+fn app() -> Router {
+ Router::new()
+ .route("/", get(|| async { "Hello, World!" }))
+ .route(
+ "/json",
+ post(|payload: Json<serde_json::Value>| async move {
+ Json(serde_json::json!({ "data": payload.0 }))
+ }),
+ )
+ // We can still add middleware
+ .layer(TraceLayer::new_for_http())
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[cfg(not(target_os = "windows"))]
+ use std::net::{SocketAddr, TcpListener};
+
+ use axum::{
+ body::Body,
+ http::{self, Request, StatusCode},
+ };
+ use serde_json::{json, Value};
+ use tower::ServiceExt; // for `app.oneshot()`
+
+ #[tokio::test]
+ async fn hello_world() {
+ let app = app();
+
+ // `Router` implements `tower::Service<Request<Body>>` so we can
+ // call it like any tower service, no need to run an HTTP server.
+ let response = app
+ .oneshot(Request::builder().uri("/").body(Body::empty()).unwrap())
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::OK);
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert_eq!(&body[..], b"Hello, World!");
+ }
+
+ #[tokio::test]
+ async fn json() {
+ let app = app();
+
+ let response = app
+ .oneshot(
+ Request::builder()
+ .method(http::Method::POST)
+ .uri("/json")
+ .header(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.as_ref())
+ .body(Body::from(
+ serde_json::to_vec(&json!([1_i8, 2_i8, 3_i8, 4_i8])).unwrap(),
+ ))
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::OK);
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ let body: Value = serde_json::from_slice(&body).unwrap();
+ assert_eq!(body, json!({ "data": [1_i8, 2_i8, 3_i8, 4_i8] }));
+ }
+
+ #[tokio::test]
+ async fn not_found() {
+ let app = app();
+
+ let response = app
+ .oneshot(
+ Request::builder()
+ .uri("/does-not-exist")
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::NOT_FOUND);
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert!(body.is_empty());
+ }
+
+ // TODO: This test fails on Windows, it shouldn't but it's unclear to me
+ // if this is an issue on the host or with the test.
+ #[cfg(not(target_os = "windows"))]
+ // You can also spawn a server and talk to it like any other HTTP server:
+ #[tokio::test]
+ async fn the_real_deal() {
+ let listener = TcpListener::bind("0.0.0.0:0".parse::<SocketAddr>().unwrap()).unwrap();
+ let addr = listener.local_addr().unwrap();
+
+ tokio::spawn(async move {
+ axum::Server::from_tcp(listener)
+ .unwrap()
+ .serve(app().into_make_service())
+ .await
+ .unwrap();
+ });
+
+ let client = hyper::Client::new();
+
+ let response = client
+ .request(
+ Request::builder()
+ .uri(format!("http://{}", addr))
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert_eq!(&body[..], b"Hello, World!");
+ }
+}
diff --git a/examples/crate_universe/vendor_remote_manifests/BUILD.bazel b/examples/crate_universe/vendor_remote_manifests/BUILD.bazel
new file mode 100644
index 0000000..a0bad79
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/BUILD.bazel
@@ -0,0 +1,24 @@
+load("@crates_vendor_manifests//:defs.bzl", "aliases", "all_crate_deps")
+load("@rules_rust//crate_universe:defs.bzl", "crates_vendor")
+load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
+
+crates_vendor(
+ name = "crates_vendor_manifests",
+ manifests = [":Cargo.toml"],
+)
+
+rust_library(
+ name = "cargo_local",
+ srcs = glob(["**/*.rs"]),
+ aliases = aliases(),
+ edition = "2018",
+ proc_macro_deps = all_crate_deps(proc_macro = True),
+ deps = all_crate_deps(normal = True),
+)
+
+rust_test(
+ name = "unit_test",
+ crate = ":cargo_local",
+ proc_macro_deps = all_crate_deps(proc_macro_dev = True),
+ deps = all_crate_deps(normal_dev = True),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/Cargo.lock b/examples/crate_universe/vendor_remote_manifests/Cargo.lock
new file mode 100644
index 0000000..641895b
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/Cargo.lock
@@ -0,0 +1,408 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "async-stream"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "171374e7e3b2504e0e5236e3b59260560f9fe94bfe9ac39ba5e4e929c5590625"
+dependencies = [
+ "async-stream-impl",
+ "futures-core",
+]
+
+[[package]]
+name = "async-stream-impl"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "648ed8c8d2ce5409ccd57453d9d1b214b342a0d69376a6feda1fd6cae3299308"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bytes"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
+
+[[package]]
+name = "cargo_local"
+version = "0.1.0"
+dependencies = [
+ "tempfile",
+ "tokio",
+ "tokio-test",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "fastrand"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf"
+dependencies = [
+ "instant",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
+
+[[package]]
+name = "hermit-abi"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "instant"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
+
+[[package]]
+name = "lock_api"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "memchr"
+version = "2.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
+
+[[package]]
+name = "mio"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2"
+dependencies = [
+ "libc",
+ "log",
+ "miow",
+ "ntapi",
+ "winapi",
+]
+
+[[package]]
+name = "miow"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "ntapi"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "num_cpus"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
+dependencies = [
+ "hermit-abi",
+ "libc",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-sys",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+dependencies = [
+ "unicode-xid",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.2.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"
+dependencies = [
+ "bitflags",
+]
+
+[[package]]
+name = "remove_dir_all"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"
+
+[[package]]
+name = "socket2"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0"
+dependencies = [
+ "libc",
+ "winapi",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.86"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-xid",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
+dependencies = [
+ "cfg-if",
+ "fastrand",
+ "libc",
+ "redox_syscall",
+ "remove_dir_all",
+ "winapi",
+]
+
+[[package]]
+name = "tokio"
+version = "1.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee"
+dependencies = [
+ "bytes",
+ "libc",
+ "memchr",
+ "mio",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "pin-project-lite",
+ "signal-hook-registry",
+ "socket2",
+ "tokio-macros",
+ "winapi",
+]
+
+[[package]]
+name = "tokio-macros"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "tokio-stream"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50145484efff8818b5ccd256697f36863f587da82cf8b409c53adf1e840798e3"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-test"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53474327ae5e166530d17f2d956afcb4f8a004de581b3cae10f12006bc8163e3"
+dependencies = [
+ "async-stream",
+ "bytes",
+ "futures-core",
+ "tokio",
+ "tokio-stream",
+]
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "windows-sys"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6"
+dependencies = [
+ "windows_aarch64_msvc",
+ "windows_i686_gnu",
+ "windows_i686_msvc",
+ "windows_x86_64_gnu",
+ "windows_x86_64_msvc",
+]
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316"
diff --git a/examples/crate_universe/vendor_remote_manifests/Cargo.toml b/examples/crate_universe/vendor_remote_manifests/Cargo.toml
new file mode 100644
index 0000000..e58d55e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/Cargo.toml
@@ -0,0 +1,12 @@
+[package]
+name = "cargo_local"
+version = "0.1.0"
+authors = ["UebelAndre <github@uebelandre.com>"]
+edition = "2018"
+
+[dependencies]
+tokio = { version = "1.17.0", features = ["full"] }
+
+[dev-dependencies]
+tempfile = "3.2.0"
+tokio-test = "0.4.2"
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.async-stream-0.3.2.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.async-stream-0.3.2.bazel
new file mode 100644
index 0000000..9f22c11
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.async-stream-0.3.2.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "async_stream",
+ 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": [
+ "@crates_vendor_manifests__async-stream-impl-0.3.2//:async_stream_impl",
+ ],
+ }),
+ 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({
+ "//conditions:default": [
+ "@crates_vendor_manifests__futures-core-0.3.21//:futures_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.async-stream-impl-0.3.2.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.async-stream-impl-0.3.2.bazel
new file mode 100644
index 0000000..e73b1ee
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.async-stream-impl-0.3.2.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "async_stream_impl",
+ 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({
+ "//conditions:default": [
+ "@crates_vendor_manifests__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_manifests__quote-1.0.15//:quote",
+ "@crates_vendor_manifests__syn-1.0.86//:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bazel
new file mode 100644
index 0000000..0da6951
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bazel
@@ -0,0 +1,47 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+
+package(default_visibility = ["//visibility:public"])
+
+exports_files(
+ [
+ "cargo-bazel.json",
+ "defs.bzl",
+ "crates.bzl",
+ ] + glob([
+ "*.bazel",
+ ]),
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob([
+ "*.bazel",
+ "*.bzl",
+ ]),
+)
+
+# Workspace Member Dependencies
+alias(
+ name = "tempfile",
+ actual = "@crates_vendor_manifests__tempfile-3.3.0//:tempfile",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tokio",
+ actual = "@crates_vendor_manifests__tokio-1.17.0//:tokio",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tokio-test",
+ actual = "@crates_vendor_manifests__tokio-test-0.4.2//:tokio_test",
+ tags = ["manual"],
+)
+
+# Binaries
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bitflags-1.3.2.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bitflags-1.3.2.bazel
new file mode 100644
index 0000000..6894746
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bitflags-1.3.2.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "bitflags",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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 = "1.3.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bytes-1.1.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bytes-1.1.0.bazel
new file mode 100644
index 0000000..b679f2e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.bytes-1.1.0.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "bytes",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.cfg-if-1.0.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.cfg-if-1.0.0.bazel
new file mode 100644
index 0000000..e4aab64
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.cfg-if-1.0.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "cfg_if",
+ 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 = "1.0.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.fastrand-1.7.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.fastrand-1.7.0.bazel
new file mode 100644
index 0000000..fb44acc
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.fastrand-1.7.0.bazel
@@ -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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "fastrand",
+ 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 = "1.7.0",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_arch = "wasm32")
+ (
+ "@rules_rust//rust/platform:wasm32-unknown-unknown",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__instant-0.1.12//:instant",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.futures-core-0.3.21.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.futures-core-0.3.21.bazel
new file mode 100644
index 0000000..18c784f
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.futures-core-0.3.21.bazel
@@ -0,0 +1,177 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_core",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__futures-core-0.3.21//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.hermit-abi-0.1.19.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.hermit-abi-0.1.19.bazel
new file mode 100644
index 0000000..02c882d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.hermit-abi-0.1.19.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "hermit_abi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.1.19",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.instant-0.1.12.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.instant-0.1.12.bazel
new file mode 100644
index 0000000..9bd589e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.instant-0.1.12.bazel
@@ -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", # BSD-3-Clause
+# ])
+
+rust_library(
+ name = "instant",
+ 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.1.12",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.libc-0.2.119.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.libc-0.2.119.bazel
new file mode 100644
index 0000000..0fd8f4d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.libc-0.2.119.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "libc",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.119",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__libc-0.2.119//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "libc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.2.119",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "libc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.lock_api-0.4.6.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.lock_api-0.4.6.bazel
new file mode 100644
index 0000000..e7a3f40
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.lock_api-0.4.6.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "lock_api",
+ 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.4.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__scopeguard-1.1.0//:scopeguard",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.log-0.4.14.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.log-0.4.14.bazel
new file mode 100644
index 0000000..57df435
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.log-0.4.14.bazel
@@ -0,0 +1,172 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "log",
+ 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 = "2015",
+ 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.4.14",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__log-0.4.14//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "log_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.14",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "log_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.memchr-2.4.1.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.memchr-2.4.1.bazel
new file mode 100644
index 0000000..2dbd77e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.memchr-2.4.1.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Unlicense/MIT
+# ])
+
+rust_library(
+ name = "memchr",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "2.4.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__memchr-2.4.1//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "memchr_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "2.4.1",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "memchr_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.mio-0.8.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.mio-0.8.0.bazel
new file mode 100644
index 0000000..f5e30fc
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.mio-0.8.0.bazel
@@ -0,0 +1,128 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "mio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "net",
+ "os-ext",
+ "os-poll",
+ ],
+ 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.8.0",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+
+ # Common Deps
+ "@crates_vendor_manifests__log-0.4.14//:log",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__miow-0.3.7//:miow",
+ "@crates_vendor_manifests__ntapi-0.3.7//:ntapi",
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ "@crates_vendor_manifests__log-0.4.14//:log",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_manifests__log-0.4.14//:log",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.miow-0.3.7.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.miow-0.3.7.bazel
new file mode 100644
index 0000000..63faa37
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.miow-0.3.7.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "miow",
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.ntapi-0.3.7.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.ntapi-0.3.7.bazel
new file mode 100644
index 0000000..a6479c9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.ntapi-0.3.7.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "ntapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__ntapi-0.3.7//:build_script_build",
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "ntapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.7",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "ntapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.num_cpus-1.13.1.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.num_cpus-1.13.1.bazel
new file mode 100644
index 0000000..3586ee5
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.num_cpus-1.13.1.bazel
@@ -0,0 +1,116 @@
+###############################################################################
+# @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 = "num_cpus",
+ 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 = "2015",
+ 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 = "1.13.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))
+ #
+ # No supported platform triples for cfg: 'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'
+ # Skipped dependencies: [{"id":"hermit-abi 0.1.19","target":"hermit_abi"}]
+ #
+ # cfg(not(windows))
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:wasm32-unknown-unknown",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.once_cell-1.9.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.once_cell-1.9.0.bazel
new file mode 100644
index 0000000..f2a936a
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.once_cell-1.9.0.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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 = "once_cell",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "race",
+ "std",
+ ],
+ 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 = "1.9.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.parking_lot-0.12.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.parking_lot-0.12.0.bazel
new file mode 100644
index 0000000..424b7977
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.parking_lot-0.12.0.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.12.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__lock_api-0.4.6//:lock_api",
+ "@crates_vendor_manifests__parking_lot_core-0.9.1//:parking_lot_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.parking_lot_core-0.9.1.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.parking_lot_core-0.9.1.bazel
new file mode 100644
index 0000000..fd20e37
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.parking_lot_core-0.9.1.bazel
@@ -0,0 +1,219 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot_core",
+ 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.9.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_os = "redox")
+ #
+ # No supported platform triples for cfg: 'cfg(target_os = "redox")'
+ # Skipped dependencies: [{"id":"redox_syscall 0.2.11","target":"syscall"}]
+ #
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+
+ # Common Deps
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__parking_lot_core-0.9.1//:build_script_build",
+ "@crates_vendor_manifests__smallvec-1.8.0//:smallvec",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__windows-sys-0.32.0//:windows_sys",
+
+ # Common Deps
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__parking_lot_core-0.9.1//:build_script_build",
+ "@crates_vendor_manifests__smallvec-1.8.0//:smallvec",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__parking_lot_core-0.9.1//:build_script_build",
+ "@crates_vendor_manifests__smallvec-1.8.0//:smallvec",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "parking_lot_core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.9.1",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "parking_lot_core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.pin-project-lite-0.2.8.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.pin-project-lite-0.2.8.bazel
new file mode 100644
index 0000000..cfd3870
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.pin-project-lite-0.2.8.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "pin_project_lite",
+ 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.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.proc-macro2-1.0.36.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.proc-macro2-1.0.36.bazel
new file mode 100644
index 0000000..5485684
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.proc-macro2-1.0.36.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "proc_macro2",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.36",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__proc-macro2-1.0.36//:build_script_build",
+ "@crates_vendor_manifests__unicode-xid-0.2.2//:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "proc-macro2_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.36",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "proc-macro2_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.quote-1.0.15.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.quote-1.0.15.bazel
new file mode 100644
index 0000000..3dc3818
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.quote-1.0.15.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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 = "quote",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.15",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__proc-macro2-1.0.36//:proc_macro2",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.redox_syscall-0.2.11.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.redox_syscall-0.2.11.bazel
new file mode 100644
index 0000000..590ddd8
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.redox_syscall-0.2.11.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "syscall",
+ 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.11",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__bitflags-1.3.2//:bitflags",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.remove_dir_all-0.5.3.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.remove_dir_all-0.5.3.bazel
new file mode 100644
index 0000000..329b121
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.remove_dir_all-0.5.3.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "remove_dir_all",
+ 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 = "2015",
+ 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.5.3",
+ 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
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.scopeguard-1.1.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.scopeguard-1.1.0.bazel
new file mode 100644
index 0000000..0bc1e13
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.scopeguard-1.1.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "scopeguard",
+ 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 = "2015",
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.signal-hook-registry-1.4.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.signal-hook-registry-1.4.0.bazel
new file mode 100644
index 0000000..320e197
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.signal-hook-registry-1.4.0.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "signal_hook_registry",
+ 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 = "2015",
+ 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 = "1.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.smallvec-1.8.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.smallvec-1.8.0.bazel
new file mode 100644
index 0000000..a9ae389
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.smallvec-1.8.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "smallvec",
+ 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 = "1.8.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.socket2-0.4.4.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.socket2-0.4.4.bazel
new file mode 100644
index 0000000..a2283ce
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.socket2-0.4.4.bazel
@@ -0,0 +1,120 @@
+###############################################################################
+# @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 = "socket2",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "all",
+ ],
+ 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.4.4",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+
+ # Common Deps
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.syn-1.0.86.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.syn-1.0.86.bazel
new file mode 100644
index 0000000..b4ff6d3
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.syn-1.0.86.bazel
@@ -0,0 +1,194 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "syn",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit-mut",
+ ],
+ 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 = "1.0.86",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_manifests__quote-1.0.15//:quote",
+ "@crates_vendor_manifests__syn-1.0.86//:build_script_build",
+ "@crates_vendor_manifests__unicode-xid-0.2.2//:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "syn_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit-mut",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.86",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "syn_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tempfile-3.3.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tempfile-3.3.0.bazel
new file mode 100644
index 0000000..6e3cacd
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tempfile-3.3.0.bazel
@@ -0,0 +1,134 @@
+###############################################################################
+# @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 = "tempfile",
+ 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 = "3.3.0",
+ deps = [
+ ] + select_with_or({
+ # cfg(any(unix, target_os = "wasi"))
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+
+ # Common Deps
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__fastrand-1.7.0//:fastrand",
+ "@crates_vendor_manifests__remove_dir_all-0.5.3//:remove_dir_all",
+ ],
+ # cfg(target_os = "redox")
+ #
+ # No supported platform triples for cfg: 'cfg(target_os = "redox")'
+ # Skipped dependencies: [{"id":"redox_syscall 0.2.11","target":"syscall"}]
+ #
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__fastrand-1.7.0//:fastrand",
+ "@crates_vendor_manifests__remove_dir_all-0.5.3//:remove_dir_all",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_manifests__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_manifests__fastrand-1.7.0//:fastrand",
+ "@crates_vendor_manifests__remove_dir_all-0.5.3//:remove_dir_all",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-1.17.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-1.17.0.bazel
new file mode 100644
index 0000000..3490657
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-1.17.0.bazel
@@ -0,0 +1,170 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "bytes",
+ "default",
+ "fs",
+ "full",
+ "io-std",
+ "io-util",
+ "libc",
+ "macros",
+ "memchr",
+ "mio",
+ "net",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "process",
+ "rt",
+ "rt-multi-thread",
+ "signal",
+ "signal-hook-registry",
+ "socket2",
+ "sync",
+ "test-util",
+ "time",
+ "tokio-macros",
+ "winapi",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__tokio-macros-1.7.0//:tokio_macros",
+ ],
+ }),
+ 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 = "1.17.0",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__libc-0.2.119//:libc",
+ "@crates_vendor_manifests__signal-hook-registry-1.4.0//:signal_hook_registry",
+
+ # Common Deps
+ "@crates_vendor_manifests__bytes-1.1.0//:bytes",
+ "@crates_vendor_manifests__memchr-2.4.1//:memchr",
+ "@crates_vendor_manifests__mio-0.8.0//:mio",
+ "@crates_vendor_manifests__num_cpus-1.13.1//:num_cpus",
+ "@crates_vendor_manifests__once_cell-1.9.0//:once_cell",
+ "@crates_vendor_manifests__parking_lot-0.12.0//:parking_lot",
+ "@crates_vendor_manifests__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_manifests__socket2-0.4.4//:socket2",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ "@crates_vendor_manifests__bytes-1.1.0//:bytes",
+ "@crates_vendor_manifests__memchr-2.4.1//:memchr",
+ "@crates_vendor_manifests__mio-0.8.0//:mio",
+ "@crates_vendor_manifests__num_cpus-1.13.1//:num_cpus",
+ "@crates_vendor_manifests__once_cell-1.9.0//:once_cell",
+ "@crates_vendor_manifests__parking_lot-0.12.0//:parking_lot",
+ "@crates_vendor_manifests__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_manifests__socket2-0.4.4//:socket2",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_manifests__bytes-1.1.0//:bytes",
+ "@crates_vendor_manifests__memchr-2.4.1//:memchr",
+ "@crates_vendor_manifests__mio-0.8.0//:mio",
+ "@crates_vendor_manifests__num_cpus-1.13.1//:num_cpus",
+ "@crates_vendor_manifests__once_cell-1.9.0//:once_cell",
+ "@crates_vendor_manifests__parking_lot-0.12.0//:parking_lot",
+ "@crates_vendor_manifests__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_manifests__socket2-0.4.4//:socket2",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-macros-1.7.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-macros-1.7.0.bazel
new file mode 100644
index 0000000..b209beb
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-macros-1.7.0.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "tokio_macros",
+ 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 = "1.7.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_manifests__quote-1.0.15//:quote",
+ "@crates_vendor_manifests__syn-1.0.86//:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-stream-0.1.8.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-stream-0.1.8.bazel
new file mode 100644
index 0000000..ab24cb7
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-stream-0.1.8.bazel
@@ -0,0 +1,89 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_stream",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "time",
+ ],
+ 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.1.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_manifests__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_manifests__tokio-1.17.0//:tokio",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-test-0.4.2.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-test-0.4.2.bazel
new file mode 100644
index 0000000..43f9908
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.tokio-test-0.4.2.bazel
@@ -0,0 +1,89 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_test",
+ 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.4.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__async-stream-0.3.2//:async_stream",
+ "@crates_vendor_manifests__bytes-1.1.0//:bytes",
+ "@crates_vendor_manifests__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_manifests__tokio-1.17.0//:tokio",
+ "@crates_vendor_manifests__tokio-stream-0.1.8//:tokio_stream",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.unicode-xid-0.2.2.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.unicode-xid-0.2.2.bazel
new file mode 100644
index 0000000..30562c1
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.unicode-xid-0.2.2.bazel
@@ -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 = "unicode_xid",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-0.3.9.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-0.3.9.bazel
new file mode 100644
index 0000000..3e20685
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-0.3.9.bazel
@@ -0,0 +1,233 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.9",
+ deps = [
+ ] + select_with_or({
+ # i686-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'i686-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}]
+ #
+ # x86_64-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}]
+ #
+ "//conditions:default": [
+ "@crates_vendor_manifests__winapi-0.3.9//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.9",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel
new file mode 100644
index 0000000..5583f0e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_i686_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__winapi-i686-pc-windows-gnu-0.4.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-i686-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-i686-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel
new file mode 100644
index 0000000..612e171
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_x86_64_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__winapi-x86_64-pc-windows-gnu-0.4.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-x86_64-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-x86_64-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows-sys-0.32.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows-sys-0.32.0.bazel
new file mode 100644
index 0000000..aea4e85
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows-sys-0.32.0.bazel
@@ -0,0 +1,149 @@
+###############################################################################
+# @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 = "windows_sys",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "Win32",
+ "Win32_Foundation",
+ "Win32_System",
+ "Win32_System_LibraryLoader",
+ "Win32_System_SystemServices",
+ "Win32_System_WindowsProgramming",
+ "default",
+ ],
+ 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.32.0",
+ deps = [
+ ] + select_with_or({
+ # aarch64-pc-windows-msvc
+ #
+ # No supported platform triples for cfg: 'aarch64-pc-windows-msvc'
+ # Skipped dependencies: [{"id":"windows_aarch64_msvc 0.32.0","target":"windows_aarch64_msvc"}]
+ #
+ # aarch64-uwp-windows-msvc
+ #
+ # No supported platform triples for cfg: 'aarch64-uwp-windows-msvc'
+ # Skipped dependencies: [{"id":"windows_aarch64_msvc 0.32.0","target":"windows_aarch64_msvc"}]
+ #
+ # i686-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'i686-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"windows_i686_gnu 0.32.0","target":"windows_i686_gnu"}]
+ #
+ # i686-pc-windows-msvc
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__windows_i686_msvc-0.32.0//:windows_i686_msvc",
+
+ # Common Deps
+ ],
+ # i686-uwp-windows-gnu
+ #
+ # No supported platform triples for cfg: 'i686-uwp-windows-gnu'
+ # Skipped dependencies: [{"id":"windows_i686_gnu 0.32.0","target":"windows_i686_gnu"}]
+ #
+ # i686-uwp-windows-msvc
+ #
+ # No supported platform triples for cfg: 'i686-uwp-windows-msvc'
+ # Skipped dependencies: [{"id":"windows_i686_msvc 0.32.0","target":"windows_i686_msvc"}]
+ #
+ # x86_64-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"windows_x86_64_gnu 0.32.0","target":"windows_x86_64_gnu"}]
+ #
+ # x86_64-pc-windows-msvc
+ (
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_manifests__windows_x86_64_msvc-0.32.0//:windows_x86_64_msvc",
+
+ # Common Deps
+ ],
+ # x86_64-uwp-windows-gnu
+ #
+ # No supported platform triples for cfg: 'x86_64-uwp-windows-gnu'
+ # Skipped dependencies: [{"id":"windows_x86_64_gnu 0.32.0","target":"windows_x86_64_gnu"}]
+ #
+ # x86_64-uwp-windows-msvc
+ #
+ # No supported platform triples for cfg: 'x86_64-uwp-windows-msvc'
+ # Skipped dependencies: [{"id":"windows_x86_64_msvc 0.32.0","target":"windows_x86_64_msvc"}]
+ #
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_aarch64_msvc-0.32.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_aarch64_msvc-0.32.0.bazel
new file mode 100644
index 0000000..4d430cb
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_aarch64_msvc-0.32.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "windows_aarch64_msvc",
+ 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.32.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__windows_aarch64_msvc-0.32.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "windows_aarch64_msvc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.32.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "windows_aarch64_msvc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_i686_gnu-0.32.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_i686_gnu-0.32.0.bazel
new file mode 100644
index 0000000..8dfdd56
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_i686_gnu-0.32.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "windows_i686_gnu",
+ 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.32.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__windows_i686_gnu-0.32.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "windows_i686_gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.32.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "windows_i686_gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_i686_msvc-0.32.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_i686_msvc-0.32.0.bazel
new file mode 100644
index 0000000..9dff704
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_i686_msvc-0.32.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "windows_i686_msvc",
+ 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.32.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__windows_i686_msvc-0.32.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "windows_i686_msvc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.32.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "windows_i686_msvc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_x86_64_gnu-0.32.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_x86_64_gnu-0.32.0.bazel
new file mode 100644
index 0000000..d8c50da
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_x86_64_gnu-0.32.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "windows_x86_64_gnu",
+ 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.32.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__windows_x86_64_gnu-0.32.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "windows_x86_64_gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.32.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "windows_x86_64_gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_x86_64_msvc-0.32.0.bazel b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_x86_64_msvc-0.32.0.bazel
new file mode 100644
index 0000000..f0f7b5e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/BUILD.windows_x86_64_msvc-0.32.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "windows_x86_64_msvc",
+ 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.32.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_manifests__windows_x86_64_msvc-0.32.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "windows_x86_64_msvc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.32.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "windows_x86_64_msvc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/crates.bzl b/examples/crate_universe/vendor_remote_manifests/crates/crates.bzl
new file mode 100644
index 0000000..e9fa4c9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/crates.bzl
@@ -0,0 +1,25 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+"""Rules for defining repositories for remote `crates_vendor` repositories"""
+
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
+# buildifier: disable=bzl-visibility
+load("@examples//vendor_remote_manifests/crates:defs.bzl", _crate_repositories = "crate_repositories")
+
+# buildifier: disable=bzl-visibility
+load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository")
+
+def crate_repositories():
+ maybe(
+ crates_vendor_remote_repository,
+ name = "crates_vendor_manifests",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.bazel"),
+ defs_module = Label("@examples//vendor_remote_manifests/crates:defs.bzl"),
+ )
+
+ _crate_repositories()
diff --git a/examples/crate_universe/vendor_remote_manifests/crates/defs.bzl b/examples/crate_universe/vendor_remote_manifests/crates/defs.bzl
new file mode 100644
index 0000000..4e5b7be
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/crates/defs.bzl
@@ -0,0 +1,832 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+"""
+# `crates_repository` API
+
+- [aliases](#aliases)
+- [crate_deps](#crate_deps)
+- [all_crate_deps](#all_crate_deps)
+- [crate_repositories](#crate_repositories)
+
+"""
+
+load("@bazel_skylib//lib:selects.bzl", "selects")
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
+###############################################################################
+# MACROS API
+###############################################################################
+
+# An identifier that represent common dependencies (unconditional).
+_COMMON_CONDITION = ""
+
+def _flatten_dependency_maps(all_dependency_maps):
+ """Flatten a list of dependency maps into one dictionary.
+
+ Dependency maps have the following structure:
+
+ ```python
+ DEPENDENCIES_MAP = {
+ # The first key in the map is a Bazel package
+ # name of the workspace this file is defined in.
+ "workspace_member_package": {
+
+ # Not all dependnecies are supported for all platforms.
+ # the condition key is the condition required to be true
+ # on the host platform.
+ "condition": {
+
+ # An alias to a crate target. # The label of the crate target the
+ # Aliases are only crate names. # package name refers to.
+ "package_name": "@full//:label",
+ }
+ }
+ }
+ ```
+
+ Args:
+ all_dependency_maps (list): A list of dicts as described above
+
+ Returns:
+ dict: A dictionary as described above
+ """
+ dependencies = {}
+
+ for workspace_deps_map in all_dependency_maps:
+ for pkg_name, conditional_deps_map in workspace_deps_map.items():
+ if pkg_name not in dependencies:
+ non_frozen_map = dict()
+ for key, values in conditional_deps_map.items():
+ non_frozen_map.update({key: dict(values.items())})
+ dependencies.setdefault(pkg_name, non_frozen_map)
+ continue
+
+ for condition, deps_map in conditional_deps_map.items():
+ # If the condition has not been recorded, do so and continue
+ if condition not in dependencies[pkg_name]:
+ dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))
+ continue
+
+ # Alert on any miss-matched dependencies
+ inconsistent_entries = []
+ for crate_name, crate_label in deps_map.items():
+ existing = dependencies[pkg_name][condition].get(crate_name)
+ if existing and existing != crate_label:
+ inconsistent_entries.append((crate_name, existing, crate_label))
+ dependencies[pkg_name][condition].update({crate_name: crate_label})
+
+ return dependencies
+
+def crate_deps(deps, package_name = None):
+ """Finds the fully qualified label of the requested crates for the package where this macro is called.
+
+ Args:
+ deps (list): The desired list of crate targets.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()`.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if not deps:
+ return []
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Join both sets of dependencies
+ dependencies = _flatten_dependency_maps([
+ _NORMAL_DEPENDENCIES,
+ _NORMAL_DEV_DEPENDENCIES,
+ _PROC_MACRO_DEPENDENCIES,
+ _PROC_MACRO_DEV_DEPENDENCIES,
+ _BUILD_DEPENDENCIES,
+ _BUILD_PROC_MACRO_DEPENDENCIES,
+ ]).pop(package_name, {})
+
+ # Combine all conditional packages so we can easily index over a flat list
+ # TODO: Perhaps this should actually return select statements and maintain
+ # the conditionals of the dependencies
+ flat_deps = {}
+ for deps_set in dependencies.values():
+ for crate_name, crate_label in deps_set.items():
+ flat_deps.update({crate_name: crate_label})
+
+ missing_crates = []
+ crate_targets = []
+ for crate_target in deps:
+ if crate_target not in flat_deps:
+ missing_crates.append(crate_target)
+ else:
+ crate_targets.append(flat_deps[crate_target])
+
+ if missing_crates:
+ fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format(
+ missing_crates,
+ package_name,
+ dependencies,
+ ))
+
+ return crate_targets
+
+def all_crate_deps(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Finds the fully qualified label of all requested direct crate dependencies \
+ for the package where this macro is called.
+
+ If no parameters are set, all normal dependencies are returned. Setting any one flag will
+ otherwise impact the contents of the returned list.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_dependency_maps = []
+ if normal:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+ if normal_dev:
+ all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)
+ if proc_macro:
+ all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)
+ if proc_macro_dev:
+ all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)
+ if build:
+ all_dependency_maps.append(_BUILD_DEPENDENCIES)
+ if build_proc_macro:
+ all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)
+
+ # Default to always using normal dependencies
+ if not all_dependency_maps:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+
+ dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)
+
+ if not dependencies:
+ return []
+
+ crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())
+ for condition, deps in dependencies.items():
+ crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()})
+
+ return crate_deps
+
+def aliases(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Produces a map of Crate alias names to their original label
+
+ If no dependency kinds are specified, `normal` and `proc_macro` are used by default.
+ Setting any one flag will otherwise determine the contents of the returned dict.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ dict: The aliases of all associated packages
+ """
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_aliases_maps = []
+ if normal:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ if normal_dev:
+ all_aliases_maps.append(_NORMAL_DEV_ALIASES)
+ if proc_macro:
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+ if proc_macro_dev:
+ all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)
+ if build:
+ all_aliases_maps.append(_BUILD_ALIASES)
+ if build_proc_macro:
+ all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)
+
+ # Default to always using normal aliases
+ if not all_aliases_maps:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+
+ aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)
+
+ if not aliases:
+ return dict()
+
+ common_items = aliases.pop(_COMMON_CONDITION, {}).items()
+
+ # If there are only common items in the dictionary, immediately return them
+ if not len(aliases.keys()) == 1:
+ return dict(common_items)
+
+ # Build a single select statement where each conditional has accounted for the
+ # common set of aliases.
+ crate_aliases = {"//conditions:default": common_items}
+ for condition, deps in aliases.items():
+ condition_triples = _CONDITIONS[condition]
+ if condition_triples in crate_aliases:
+ crate_aliases[condition_triples].update(deps)
+ else:
+ crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)})
+
+ return selects.with_or(crate_aliases)
+
+###############################################################################
+# WORKSPACE MEMBER DEPS AND ALIASES
+###############################################################################
+
+_NORMAL_DEPENDENCIES = {
+ "vendor_remote_manifests": {
+ _COMMON_CONDITION: {
+ "tokio": "@crates_vendor_manifests__tokio-1.17.0//:tokio",
+ },
+ },
+}
+
+_NORMAL_ALIASES = {
+ "vendor_remote_manifests": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_NORMAL_DEV_DEPENDENCIES = {
+ "vendor_remote_manifests": {
+ _COMMON_CONDITION: {
+ "tempfile": "@crates_vendor_manifests__tempfile-3.3.0//:tempfile",
+ "tokio-test": "@crates_vendor_manifests__tokio-test-0.4.2//:tokio_test",
+ },
+ },
+}
+
+_NORMAL_DEV_ALIASES = {
+ "vendor_remote_manifests": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_PROC_MACRO_DEPENDENCIES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_PROC_MACRO_ALIASES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_PROC_MACRO_DEV_DEPENDENCIES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_PROC_MACRO_DEV_ALIASES = {
+ "vendor_remote_manifests": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_BUILD_DEPENDENCIES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_BUILD_ALIASES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_BUILD_PROC_MACRO_DEPENDENCIES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_BUILD_PROC_MACRO_ALIASES = {
+ "vendor_remote_manifests": {
+ },
+}
+
+_CONDITIONS = {
+ "aarch64-pc-windows-msvc": [],
+ "aarch64-uwp-windows-msvc": [],
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(any(unix, target_os = \"wasi\"))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(not(windows))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(target_arch = \"wasm32\")": ["wasm32-unknown-unknown", "wasm32-wasi"],
+ "cfg(target_os = \"redox\")": [],
+ "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
+ "i686-pc-windows-gnu": [],
+ "i686-pc-windows-msvc": ["i686-pc-windows-msvc"],
+ "i686-uwp-windows-gnu": [],
+ "i686-uwp-windows-msvc": [],
+ "x86_64-pc-windows-gnu": [],
+ "x86_64-pc-windows-msvc": ["x86_64-pc-windows-msvc"],
+ "x86_64-uwp-windows-gnu": [],
+ "x86_64-uwp-windows-msvc": [],
+}
+
+###############################################################################
+
+def crate_repositories():
+ """A macro for defining repositories for all generated crates"""
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__async-stream-0.3.2",
+ sha256 = "171374e7e3b2504e0e5236e3b59260560f9fe94bfe9ac39ba5e4e929c5590625",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/async-stream/0.3.2/download"],
+ strip_prefix = "async-stream-0.3.2",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.async-stream-0.3.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__async-stream-impl-0.3.2",
+ sha256 = "648ed8c8d2ce5409ccd57453d9d1b214b342a0d69376a6feda1fd6cae3299308",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/async-stream-impl/0.3.2/download"],
+ strip_prefix = "async-stream-impl-0.3.2",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.async-stream-impl-0.3.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__bitflags-1.3.2",
+ sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"],
+ strip_prefix = "bitflags-1.3.2",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.bitflags-1.3.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__bytes-1.1.0",
+ sha256 = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/bytes/1.1.0/download"],
+ strip_prefix = "bytes-1.1.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.bytes-1.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__cfg-if-1.0.0",
+ sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"],
+ strip_prefix = "cfg-if-1.0.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.cfg-if-1.0.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__fastrand-1.7.0",
+ sha256 = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/fastrand/1.7.0/download"],
+ strip_prefix = "fastrand-1.7.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.fastrand-1.7.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__futures-core-0.3.21",
+ sha256 = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/futures-core/0.3.21/download"],
+ strip_prefix = "futures-core-0.3.21",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.futures-core-0.3.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__hermit-abi-0.1.19",
+ sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/hermit-abi/0.1.19/download"],
+ strip_prefix = "hermit-abi-0.1.19",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.hermit-abi-0.1.19.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__instant-0.1.12",
+ sha256 = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/instant/0.1.12/download"],
+ strip_prefix = "instant-0.1.12",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.instant-0.1.12.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__libc-0.2.119",
+ sha256 = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/libc/0.2.119/download"],
+ strip_prefix = "libc-0.2.119",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.libc-0.2.119.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__lock_api-0.4.6",
+ sha256 = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/lock_api/0.4.6/download"],
+ strip_prefix = "lock_api-0.4.6",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.lock_api-0.4.6.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__log-0.4.14",
+ sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/log/0.4.14/download"],
+ strip_prefix = "log-0.4.14",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.log-0.4.14.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__memchr-2.4.1",
+ sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/memchr/2.4.1/download"],
+ strip_prefix = "memchr-2.4.1",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.memchr-2.4.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__mio-0.8.0",
+ sha256 = "ba272f85fa0b41fc91872be579b3bbe0f56b792aa361a380eb669469f68dafb2",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/mio/0.8.0/download"],
+ strip_prefix = "mio-0.8.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.mio-0.8.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__miow-0.3.7",
+ sha256 = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/miow/0.3.7/download"],
+ strip_prefix = "miow-0.3.7",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.miow-0.3.7.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__ntapi-0.3.7",
+ sha256 = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/ntapi/0.3.7/download"],
+ strip_prefix = "ntapi-0.3.7",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.ntapi-0.3.7.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__num_cpus-1.13.1",
+ sha256 = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/num_cpus/1.13.1/download"],
+ strip_prefix = "num_cpus-1.13.1",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.num_cpus-1.13.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__once_cell-1.9.0",
+ sha256 = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/once_cell/1.9.0/download"],
+ strip_prefix = "once_cell-1.9.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.once_cell-1.9.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__parking_lot-0.12.0",
+ sha256 = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/parking_lot/0.12.0/download"],
+ strip_prefix = "parking_lot-0.12.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.parking_lot-0.12.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__parking_lot_core-0.9.1",
+ sha256 = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/parking_lot_core/0.9.1/download"],
+ strip_prefix = "parking_lot_core-0.9.1",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.parking_lot_core-0.9.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__pin-project-lite-0.2.8",
+ sha256 = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/pin-project-lite/0.2.8/download"],
+ strip_prefix = "pin-project-lite-0.2.8",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.pin-project-lite-0.2.8.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__proc-macro2-1.0.36",
+ sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.36/download"],
+ strip_prefix = "proc-macro2-1.0.36",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.proc-macro2-1.0.36.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__quote-1.0.15",
+ sha256 = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/quote/1.0.15/download"],
+ strip_prefix = "quote-1.0.15",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.quote-1.0.15.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__redox_syscall-0.2.11",
+ sha256 = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/redox_syscall/0.2.11/download"],
+ strip_prefix = "redox_syscall-0.2.11",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.redox_syscall-0.2.11.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__remove_dir_all-0.5.3",
+ sha256 = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/remove_dir_all/0.5.3/download"],
+ strip_prefix = "remove_dir_all-0.5.3",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.remove_dir_all-0.5.3.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__scopeguard-1.1.0",
+ sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/scopeguard/1.1.0/download"],
+ strip_prefix = "scopeguard-1.1.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.scopeguard-1.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__signal-hook-registry-1.4.0",
+ sha256 = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/signal-hook-registry/1.4.0/download"],
+ strip_prefix = "signal-hook-registry-1.4.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.signal-hook-registry-1.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__smallvec-1.8.0",
+ sha256 = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/smallvec/1.8.0/download"],
+ strip_prefix = "smallvec-1.8.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.smallvec-1.8.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__socket2-0.4.4",
+ sha256 = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/socket2/0.4.4/download"],
+ strip_prefix = "socket2-0.4.4",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.socket2-0.4.4.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__syn-1.0.86",
+ sha256 = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/syn/1.0.86/download"],
+ strip_prefix = "syn-1.0.86",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.syn-1.0.86.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__tempfile-3.3.0",
+ sha256 = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tempfile/3.3.0/download"],
+ strip_prefix = "tempfile-3.3.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.tempfile-3.3.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__tokio-1.17.0",
+ sha256 = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio/1.17.0/download"],
+ strip_prefix = "tokio-1.17.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.tokio-1.17.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__tokio-macros-1.7.0",
+ sha256 = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio-macros/1.7.0/download"],
+ strip_prefix = "tokio-macros-1.7.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.tokio-macros-1.7.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__tokio-stream-0.1.8",
+ sha256 = "50145484efff8818b5ccd256697f36863f587da82cf8b409c53adf1e840798e3",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio-stream/0.1.8/download"],
+ strip_prefix = "tokio-stream-0.1.8",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.tokio-stream-0.1.8.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__tokio-test-0.4.2",
+ sha256 = "53474327ae5e166530d17f2d956afcb4f8a004de581b3cae10f12006bc8163e3",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio-test/0.4.2/download"],
+ strip_prefix = "tokio-test-0.4.2",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.tokio-test-0.4.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__unicode-xid-0.2.2",
+ sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3",
+ 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("@examples//vendor_remote_manifests/crates:BUILD.unicode-xid-0.2.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__winapi-0.3.9",
+ sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/winapi/0.3.9/download"],
+ strip_prefix = "winapi-0.3.9",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.winapi-0.3.9.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__winapi-i686-pc-windows-gnu-0.4.0",
+ sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download"],
+ strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__winapi-x86_64-pc-windows-gnu-0.4.0",
+ sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
+ strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__windows-sys-0.32.0",
+ sha256 = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/windows-sys/0.32.0/download"],
+ strip_prefix = "windows-sys-0.32.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.windows-sys-0.32.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__windows_aarch64_msvc-0.32.0",
+ sha256 = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/windows_aarch64_msvc/0.32.0/download"],
+ strip_prefix = "windows_aarch64_msvc-0.32.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.windows_aarch64_msvc-0.32.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__windows_i686_gnu-0.32.0",
+ sha256 = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/windows_i686_gnu/0.32.0/download"],
+ strip_prefix = "windows_i686_gnu-0.32.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.windows_i686_gnu-0.32.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__windows_i686_msvc-0.32.0",
+ sha256 = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/windows_i686_msvc/0.32.0/download"],
+ strip_prefix = "windows_i686_msvc-0.32.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.windows_i686_msvc-0.32.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__windows_x86_64_gnu-0.32.0",
+ sha256 = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/windows_x86_64_gnu/0.32.0/download"],
+ strip_prefix = "windows_x86_64_gnu-0.32.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.windows_x86_64_gnu-0.32.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_manifests__windows_x86_64_msvc-0.32.0",
+ sha256 = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/windows_x86_64_msvc/0.32.0/download"],
+ strip_prefix = "windows_x86_64_msvc-0.32.0",
+ build_file = Label("@examples//vendor_remote_manifests/crates:BUILD.windows_x86_64_msvc-0.32.0.bazel"),
+ )
diff --git a/examples/crate_universe/vendor_remote_manifests/src/lib.rs b/examples/crate_universe/vendor_remote_manifests/src/lib.rs
new file mode 100644
index 0000000..0e49d04
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_manifests/src/lib.rs
@@ -0,0 +1,44 @@
+use std::path::Path;
+
+use tokio::fs::File;
+use tokio::io::{AsyncBufReadExt, BufReader};
+
+pub async fn fill_buf_file(path: &Path) -> Vec<u8> {
+ let file = File::open(path).await.unwrap();
+ let mut file = BufReader::new(file);
+
+ let mut contents = Vec::new();
+
+ loop {
+ let consumed = {
+ let buffer = file.fill_buf().await.unwrap();
+ if buffer.is_empty() {
+ break;
+ }
+ contents.extend_from_slice(buffer);
+ buffer.len()
+ };
+
+ file.consume(consumed);
+ }
+
+ contents
+}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ use tempfile::NamedTempFile;
+ use tokio_test::assert_ok;
+
+ #[tokio::test]
+ async fn test_fill_buf_file() {
+ let file = NamedTempFile::new().unwrap();
+ assert_ok!(std::fs::write(file.path(), b"hello"));
+
+ let contents = fill_buf_file(file.path()).await;
+
+ assert_eq!(contents, b"hello");
+ }
+}
diff --git a/examples/crate_universe/vendor_remote_pkgs/BUILD.bazel b/examples/crate_universe/vendor_remote_pkgs/BUILD.bazel
new file mode 100644
index 0000000..387609c
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/BUILD.bazel
@@ -0,0 +1,72 @@
+load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
+
+crates_vendor(
+ name = "crates_vendor_pkgs",
+ annotations = {
+ "axum": [crate.annotation(
+ compile_data_glob = ["**/*.md"],
+ )],
+ },
+ mode = "remote",
+ packages = {
+ "axum": crate.spec(
+ version = "0.4.0",
+ ),
+ "hyper": crate.spec(
+ features = ["full"],
+ version = "0.14",
+ ),
+ "mime": crate.spec(
+ version = "0.3",
+ ),
+ "serde_json": crate.spec(
+ version = "1.0",
+ ),
+ # TODO: This is pinned due to a build failure introduced by 1.17
+ # bringing in windows-sys and introduces linker errors.
+ # https://github.com/abrisco/cargo-bazel/issues/173
+ "tokio": crate.spec(
+ features = ["full"],
+ version = "=1.16.1",
+ ),
+ "tower": crate.spec(
+ features = ["util"],
+ version = "0.4",
+ ),
+ "tower-http": crate.spec(
+ features = ["trace"],
+ version = "0.2.1",
+ ),
+ "tracing": crate.spec(
+ version = "0.1",
+ ),
+ "tracing-subscriber": crate.spec(
+ version = "0.3",
+ ),
+ },
+)
+
+rust_binary(
+ name = "vendor_remote",
+ srcs = glob(["**/*.rs"]),
+ edition = "2018",
+ deps = [
+ "@crates_vendor_pkgs//:axum",
+ "@crates_vendor_pkgs//:hyper",
+ "@crates_vendor_pkgs//:mime",
+ "@crates_vendor_pkgs//:serde_json",
+ "@crates_vendor_pkgs//:tokio",
+ "@crates_vendor_pkgs//:tower",
+ "@crates_vendor_pkgs//:tower-http",
+ "@crates_vendor_pkgs//:tracing",
+ "@crates_vendor_pkgs//:tracing-subscriber",
+ ],
+)
+
+rust_test(
+ name = "unit_test",
+ srcs = glob(["**/*.rs"]),
+ crate = ":vendor_remote",
+ edition = "2018",
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ansi_term-0.12.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ansi_term-0.12.1.bazel
new file mode 100644
index 0000000..3e1dbce
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ansi_term-0.12.1.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "ansi_term",
+ 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 = "2015",
+ 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.12.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_os = "windows")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.async-trait-0.1.52.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.async-trait-0.1.52.bazel
new file mode 100644
index 0000000..b58cec9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.async-trait-0.1.52.bazel
@@ -0,0 +1,174 @@
+###############################################################################
+# @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",
+)
+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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_proc_macro(
+ name = "async_trait",
+ 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.1.52",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__async-trait-0.1.52//:build_script_build",
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_pkgs__quote-1.0.15//:quote",
+ "@crates_vendor_pkgs__syn-1.0.86//:syn",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "async-trait_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.1.52",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "async-trait_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.autocfg-1.1.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.autocfg-1.1.0.bazel
new file mode 100644
index 0000000..bd2fcd9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.autocfg-1.1.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "autocfg",
+ 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 = "2015",
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.axum-0.4.8.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.axum-0.4.8.bazel
new file mode 100644
index 0000000..5becb06
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.axum-0.4.8.bazel
@@ -0,0 +1,114 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "axum",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob([
+ "**",
+ "**/*.md",
+ ]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "http1",
+ "json",
+ "serde_json",
+ "tower-log",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__async-trait-0.1.52//:async_trait",
+ ],
+ }),
+ 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.4.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__axum-core-0.1.2//:axum_core",
+ "@crates_vendor_pkgs__bitflags-1.3.2//:bitflags",
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:futures_util",
+ "@crates_vendor_pkgs__http-0.2.6//:http",
+ "@crates_vendor_pkgs__http-body-0.4.4//:http_body",
+ "@crates_vendor_pkgs__hyper-0.14.17//:hyper",
+ "@crates_vendor_pkgs__matchit-0.4.6//:matchit",
+ "@crates_vendor_pkgs__memchr-2.4.1//:memchr",
+ "@crates_vendor_pkgs__mime-0.3.16//:mime",
+ "@crates_vendor_pkgs__percent-encoding-2.1.0//:percent_encoding",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__serde-1.0.136//:serde",
+ "@crates_vendor_pkgs__serde_json-1.0.79//:serde_json",
+ "@crates_vendor_pkgs__serde_urlencoded-0.7.1//:serde_urlencoded",
+ "@crates_vendor_pkgs__sync_wrapper-0.1.1//:sync_wrapper",
+ "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ "@crates_vendor_pkgs__tower-0.4.12//:tower",
+ "@crates_vendor_pkgs__tower-http-0.2.3//:tower_http",
+ "@crates_vendor_pkgs__tower-layer-0.3.1//:tower_layer",
+ "@crates_vendor_pkgs__tower-service-0.3.1//:tower_service",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.axum-core-0.1.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.axum-core-0.1.2.bazel
new file mode 100644
index 0000000..60eff32
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.axum-core-0.1.2.bazel
@@ -0,0 +1,90 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "axum_core",
+ 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": [
+ "@crates_vendor_pkgs__async-trait-0.1.52//:async_trait",
+ ],
+ }),
+ 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.1.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:futures_util",
+ "@crates_vendor_pkgs__http-0.2.6//:http",
+ "@crates_vendor_pkgs__http-body-0.4.4//:http_body",
+ "@crates_vendor_pkgs__mime-0.3.16//:mime",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bazel
new file mode 100644
index 0000000..8c3bd31
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bazel
@@ -0,0 +1,83 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+
+package(default_visibility = ["//visibility:public"])
+
+exports_files(
+ [
+ "cargo-bazel.json",
+ "defs.bzl",
+ "crates.bzl",
+ ] + glob([
+ "*.bazel",
+ ]),
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob([
+ "*.bazel",
+ "*.bzl",
+ ]),
+)
+
+# Workspace Member Dependencies
+alias(
+ name = "axum",
+ actual = "@crates_vendor_pkgs__axum-0.4.8//:axum",
+ tags = ["manual"],
+)
+
+alias(
+ name = "hyper",
+ actual = "@crates_vendor_pkgs__hyper-0.14.17//:hyper",
+ tags = ["manual"],
+)
+
+alias(
+ name = "mime",
+ actual = "@crates_vendor_pkgs__mime-0.3.16//:mime",
+ tags = ["manual"],
+)
+
+alias(
+ name = "serde_json",
+ actual = "@crates_vendor_pkgs__serde_json-1.0.79//:serde_json",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tokio",
+ actual = "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tower",
+ actual = "@crates_vendor_pkgs__tower-0.4.12//:tower",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tower-http",
+ actual = "@crates_vendor_pkgs__tower-http-0.2.3//:tower_http",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tracing",
+ actual = "@crates_vendor_pkgs__tracing-0.1.31//:tracing",
+ tags = ["manual"],
+)
+
+alias(
+ name = "tracing-subscriber",
+ actual = "@crates_vendor_pkgs__tracing-subscriber-0.3.9//:tracing_subscriber",
+ tags = ["manual"],
+)
+
+# Binaries
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bitflags-1.3.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bitflags-1.3.2.bazel
new file mode 100644
index 0000000..6894746
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bitflags-1.3.2.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "bitflags",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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 = "1.3.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bytes-1.1.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bytes-1.1.0.bazel
new file mode 100644
index 0000000..b679f2e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.bytes-1.1.0.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "bytes",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.cfg-if-1.0.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.cfg-if-1.0.0.bazel
new file mode 100644
index 0000000..e4aab64
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.cfg-if-1.0.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "cfg_if",
+ 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 = "1.0.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.fnv-1.0.7.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.fnv-1.0.7.bazel
new file mode 100644
index 0000000..9b3c6e3
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.fnv-1.0.7.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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", # Apache-2.0 / MIT
+# ])
+
+rust_library(
+ name = "fnv",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "1.0.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.form_urlencoded-1.0.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.form_urlencoded-1.0.1.bazel
new file mode 100644
index 0000000..bd48fd1
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.form_urlencoded-1.0.1.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "form_urlencoded",
+ 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 = "1.0.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__matches-0.1.9//:matches",
+ "@crates_vendor_pkgs__percent-encoding-2.1.0//:percent_encoding",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-channel-0.3.21.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-channel-0.3.21.bazel
new file mode 100644
index 0000000..2b9d729
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-channel-0.3.21.bazel
@@ -0,0 +1,178 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_channel",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__futures-channel-0.3.21//:build_script_build",
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-channel_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-channel_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-core-0.3.21.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-core-0.3.21.bazel
new file mode 100644
index 0000000..8d8e0cf
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-core-0.3.21.bazel
@@ -0,0 +1,177 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_core",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__futures-core-0.3.21//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-sink-0.3.21.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-sink-0.3.21.bazel
new file mode 100644
index 0000000..cbdd96f
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-sink-0.3.21.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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 = "futures_sink",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "std",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-task-0.3.21.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-task-0.3.21.bazel
new file mode 100644
index 0000000..0c6da9d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-task-0.3.21.bazel
@@ -0,0 +1,173 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_task",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__futures-task-0.3.21//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-task_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-task_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-util-0.3.21.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-util-0.3.21.bazel
new file mode 100644
index 0000000..0645b60
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.futures-util-0.3.21.bazel
@@ -0,0 +1,177 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "futures_util",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ 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.21",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-task-0.3.21//:futures_task",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:build_script_build",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__pin-utils-0.1.0//:pin_utils",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "futures-util_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "futures-util_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.h2-0.3.11.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.h2-0.3.11.bazel
new file mode 100644
index 0000000..0e2689d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.h2-0.3.11.bazel
@@ -0,0 +1,95 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "h2",
+ 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.11",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__fnv-1.0.7//:fnv",
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-sink-0.3.21//:futures_sink",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:futures_util",
+ "@crates_vendor_pkgs__http-0.2.6//:http",
+ "@crates_vendor_pkgs__indexmap-1.8.0//:indexmap",
+ "@crates_vendor_pkgs__slab-0.4.5//:slab",
+ "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ "@crates_vendor_pkgs__tokio-util-0.6.9//:tokio_util",
+ "@crates_vendor_pkgs__tracing-0.1.31//:tracing",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hashbrown-0.11.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hashbrown-0.11.2.bazel
new file mode 100644
index 0000000..54a071b
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hashbrown-0.11.2.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "hashbrown",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "raw",
+ ],
+ 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.11.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hermit-abi-0.1.19.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hermit-abi-0.1.19.bazel
new file mode 100644
index 0000000..c59daf3
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hermit-abi-0.1.19.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "hermit_abi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.1.19",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-0.2.6.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-0.2.6.bazel
new file mode 100644
index 0000000..e72665d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-0.2.6.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "http",
+ 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.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__fnv-1.0.7//:fnv",
+ "@crates_vendor_pkgs__itoa-1.0.1//:itoa",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-body-0.4.4.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-body-0.4.4.bazel
new file mode 100644
index 0000000..d85585b
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-body-0.4.4.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "http_body",
+ 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.4.4",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__http-0.2.6//:http",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-range-header-0.3.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-range-header-0.3.0.bazel
new file mode 100644
index 0000000..c2d71d8
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.http-range-header-0.3.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "http_range_header",
+ 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.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.httparse-1.6.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.httparse-1.6.0.bazel
new file mode 100644
index 0000000..c28f5d5
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.httparse-1.6.0.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "httparse",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "1.6.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__httparse-1.6.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "httparse_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.6.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "httparse_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.httpdate-1.0.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.httpdate-1.0.2.bazel
new file mode 100644
index 0000000..16d4a28
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.httpdate-1.0.2.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "httpdate",
+ 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 = "1.0.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hyper-0.14.17.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hyper-0.14.17.bazel
new file mode 100644
index 0000000..ee4bdb4
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.hyper-0.14.17.bazel
@@ -0,0 +1,111 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "hyper",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "client",
+ "default",
+ "full",
+ "h2",
+ "http1",
+ "http2",
+ "runtime",
+ "server",
+ "socket2",
+ "stream",
+ "tcp",
+ ],
+ 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.14.17",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__futures-channel-0.3.21//:futures_channel",
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:futures_util",
+ "@crates_vendor_pkgs__h2-0.3.11//:h2",
+ "@crates_vendor_pkgs__http-0.2.6//:http",
+ "@crates_vendor_pkgs__http-body-0.4.4//:http_body",
+ "@crates_vendor_pkgs__httparse-1.6.0//:httparse",
+ "@crates_vendor_pkgs__httpdate-1.0.2//:httpdate",
+ "@crates_vendor_pkgs__itoa-1.0.1//:itoa",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__socket2-0.4.4//:socket2",
+ "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ "@crates_vendor_pkgs__tower-service-0.3.1//:tower_service",
+ "@crates_vendor_pkgs__tracing-0.1.31//:tracing",
+ "@crates_vendor_pkgs__want-0.3.0//:want",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.indexmap-1.8.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.indexmap-1.8.0.bazel
new file mode 100644
index 0000000..6989baf
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.indexmap-1.8.0.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "indexmap",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ 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 = "1.8.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__hashbrown-0.11.2//:hashbrown",
+ "@crates_vendor_pkgs__indexmap-1.8.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "indexmap_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.8.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__autocfg-1.1.0//:autocfg",
+ ],
+ }),
+)
+
+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 = "indexmap_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.instant-0.1.12.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.instant-0.1.12.bazel
new file mode 100644
index 0000000..024232d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.instant-0.1.12.bazel
@@ -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", # BSD-3-Clause
+# ])
+
+rust_library(
+ name = "instant",
+ 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.1.12",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__cfg-if-1.0.0//:cfg_if",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.itoa-1.0.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.itoa-1.0.1.bazel
new file mode 100644
index 0000000..69bfcf9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.itoa-1.0.1.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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 = "itoa",
+ 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 = "1.0.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.lazy_static-1.4.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.lazy_static-1.4.0.bazel
new file mode 100644
index 0000000..aabde66
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.lazy_static-1.4.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "lazy_static",
+ 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 = "2015",
+ 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 = "1.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.libc-0.2.119.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.libc-0.2.119.bazel
new file mode 100644
index 0000000..139c214
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.libc-0.2.119.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "libc",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.119",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__libc-0.2.119//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "libc_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.2.119",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "libc_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.lock_api-0.4.6.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.lock_api-0.4.6.bazel
new file mode 100644
index 0000000..3c36221
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.lock_api-0.4.6.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "lock_api",
+ 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.4.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__scopeguard-1.1.0//:scopeguard",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.log-0.4.14.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.log-0.4.14.bazel
new file mode 100644
index 0000000..e63b9d0
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.log-0.4.14.bazel
@@ -0,0 +1,174 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "log",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.4.14",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_pkgs__log-0.4.14//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "log_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.14",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "log_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.matches-0.1.9.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.matches-0.1.9.bazel
new file mode 100644
index 0000000..b2ec92b
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.matches-0.1.9.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "matches",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.1.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.matchit-0.4.6.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.matchit-0.4.6.bazel
new file mode 100644
index 0000000..dd3406b
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.matchit-0.4.6.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "matchit",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.4.6",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.memchr-2.4.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.memchr-2.4.1.bazel
new file mode 100644
index 0000000..c1d16f6
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.memchr-2.4.1.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Unlicense/MIT
+# ])
+
+rust_library(
+ name = "memchr",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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 = "2.4.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__memchr-2.4.1//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "memchr_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "2.4.1",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "memchr_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.mime-0.3.16.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.mime-0.3.16.bazel
new file mode 100644
index 0000000..d7f8128
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.mime-0.3.16.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "mime",
+ 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 = "2015",
+ 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.16",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.mio-0.7.14.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.mio-0.7.14.bazel
new file mode 100644
index 0000000..f439769
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.mio-0.7.14.bazel
@@ -0,0 +1,132 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "mio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "net",
+ "os-ext",
+ "os-poll",
+ "os-util",
+ "tcp",
+ "udp",
+ "uds",
+ ],
+ 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.7.14",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+
+ # Common Deps
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__miow-0.3.7//:miow",
+ "@crates_vendor_pkgs__ntapi-0.3.7//:ntapi",
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.miow-0.3.7.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.miow-0.3.7.bazel
new file mode 100644
index 0000000..3934129
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.miow-0.3.7.bazel
@@ -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/Apache-2.0
+# ])
+
+rust_library(
+ name = "miow",
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ntapi-0.3.7.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ntapi-0.3.7.bazel
new file mode 100644
index 0000000..533a620
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ntapi-0.3.7.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "ntapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ 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.7",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__ntapi-0.3.7//:build_script_build",
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "ntapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "user",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.7",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "ntapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.num_cpus-1.13.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.num_cpus-1.13.1.bazel
new file mode 100644
index 0000000..95eca12
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.num_cpus-1.13.1.bazel
@@ -0,0 +1,116 @@
+###############################################################################
+# @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 = "num_cpus",
+ 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 = "2015",
+ 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 = "1.13.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))
+ #
+ # No supported platform triples for cfg: 'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'
+ # Skipped dependencies: [{"id":"hermit-abi 0.1.19","target":"hermit_abi"}]
+ #
+ # cfg(not(windows))
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:wasm32-unknown-unknown",
+ "@rules_rust//rust/platform:wasm32-wasi",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.once_cell-1.9.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.once_cell-1.9.0.bazel
new file mode 100644
index 0000000..f2a936a
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.once_cell-1.9.0.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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 = "once_cell",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "default",
+ "race",
+ "std",
+ ],
+ 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 = "1.9.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.parking_lot-0.11.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.parking_lot-0.11.2.bazel
new file mode 100644
index 0000000..f630b0e
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.parking_lot-0.11.2.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ 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.11.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__instant-0.1.12//:instant",
+ "@crates_vendor_pkgs__lock_api-0.4.6//:lock_api",
+ "@crates_vendor_pkgs__parking_lot_core-0.8.5//:parking_lot_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.parking_lot_core-0.8.5.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.parking_lot_core-0.8.5.bazel
new file mode 100644
index 0000000..2f0ece6
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.parking_lot_core-0.8.5.bazel
@@ -0,0 +1,222 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "parking_lot_core",
+ 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.8.5",
+ deps = [
+ ] + select_with_or({
+ # cfg(target_os = "redox")
+ #
+ # No supported platform triples for cfg: 'cfg(target_os = "redox")'
+ # Skipped dependencies: [{"id":"redox_syscall 0.2.11","target":"syscall"}]
+ #
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+
+ # Common Deps
+ "@crates_vendor_pkgs__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_pkgs__instant-0.1.12//:instant",
+ "@crates_vendor_pkgs__parking_lot_core-0.8.5//:build_script_build",
+ "@crates_vendor_pkgs__smallvec-1.8.0//:smallvec",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ "@crates_vendor_pkgs__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_pkgs__instant-0.1.12//:instant",
+ "@crates_vendor_pkgs__parking_lot_core-0.8.5//:build_script_build",
+ "@crates_vendor_pkgs__smallvec-1.8.0//:smallvec",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_pkgs__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_pkgs__instant-0.1.12//:instant",
+ "@crates_vendor_pkgs__parking_lot_core-0.8.5//:build_script_build",
+ "@crates_vendor_pkgs__smallvec-1.8.0//:smallvec",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "parking_lot_core_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.8.5",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "parking_lot_core_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.percent-encoding-2.1.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.percent-encoding-2.1.0.bazel
new file mode 100644
index 0000000..1ad467a
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.percent-encoding-2.1.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "percent_encoding",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "2.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-1.0.10.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-1.0.10.bazel
new file mode 100644
index 0000000..dace729
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-1.0.10.bazel
@@ -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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "pin_project",
+ 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": [
+ "@crates_vendor_pkgs__pin-project-internal-1.0.10//:pin_project_internal",
+ ],
+ }),
+ 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 = "1.0.10",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-internal-1.0.10.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-internal-1.0.10.bazel
new file mode 100644
index 0000000..be8b0c9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-internal-1.0.10.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # Apache-2.0 OR MIT
+# ])
+
+rust_proc_macro(
+ name = "pin_project_internal",
+ 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 = "1.0.10",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_pkgs__quote-1.0.15//:quote",
+ "@crates_vendor_pkgs__syn-1.0.86//:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-lite-0.2.8.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-lite-0.2.8.bazel
new file mode 100644
index 0000000..cfd3870
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-project-lite-0.2.8.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR MIT
+# ])
+
+rust_library(
+ name = "pin_project_lite",
+ 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.8",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-utils-0.1.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-utils-0.1.0.bazel
new file mode 100644
index 0000000..de4c1a2
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.pin-utils-0.1.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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 = "pin_utils",
+ 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.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.proc-macro2-1.0.36.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.proc-macro2-1.0.36.bazel
new file mode 100644
index 0000000..6318a86
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.proc-macro2-1.0.36.bazel
@@ -0,0 +1,176 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "proc_macro2",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.36",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:build_script_build",
+ "@crates_vendor_pkgs__unicode-xid-0.2.2//:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "proc-macro2_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.36",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "proc-macro2_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.quote-1.0.15.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.quote-1.0.15.bazel
new file mode 100644
index 0000000..bad70cc
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.quote-1.0.15.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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 = "quote",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "proc-macro",
+ ],
+ 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 = "1.0.15",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:proc_macro2",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.redox_syscall-0.2.11.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.redox_syscall-0.2.11.bazel
new file mode 100644
index 0000000..f001325
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.redox_syscall-0.2.11.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "syscall",
+ 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.11",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bitflags-1.3.2//:bitflags",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ryu-1.0.9.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ryu-1.0.9.bazel
new file mode 100644
index 0000000..c2a9c81
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.ryu-1.0.9.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0 OR BSL-1.0
+# ])
+
+rust_library(
+ name = "ryu",
+ 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 = "1.0.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.scopeguard-1.1.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.scopeguard-1.1.0.bazel
new file mode 100644
index 0000000..0bc1e13
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.scopeguard-1.1.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "scopeguard",
+ 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 = "2015",
+ 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 = "1.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde-1.0.136.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde-1.0.136.bazel
new file mode 100644
index 0000000..b2b5369
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde-1.0.136.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "serde",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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 = "1.0.136",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__serde-1.0.136//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "serde_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.136",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "serde_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde_json-1.0.79.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde_json-1.0.79.bazel
new file mode 100644
index 0000000..e827016
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde_json-1.0.79.bazel
@@ -0,0 +1,180 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "serde_json",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "raw_value",
+ "std",
+ ],
+ 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 = "1.0.79",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__itoa-1.0.1//:itoa",
+ "@crates_vendor_pkgs__ryu-1.0.9//:ryu",
+ "@crates_vendor_pkgs__serde-1.0.136//:serde",
+ "@crates_vendor_pkgs__serde_json-1.0.79//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "serde_json_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "raw_value",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.79",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "serde_json_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde_urlencoded-0.7.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde_urlencoded-0.7.1.bazel
new file mode 100644
index 0000000..a0618b4
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.serde_urlencoded-0.7.1.bazel
@@ -0,0 +1,88 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "serde_urlencoded",
+ 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.7.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__form_urlencoded-1.0.1//:form_urlencoded",
+ "@crates_vendor_pkgs__itoa-1.0.1//:itoa",
+ "@crates_vendor_pkgs__ryu-1.0.9//:ryu",
+ "@crates_vendor_pkgs__serde-1.0.136//:serde",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.sharded-slab-0.1.4.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.sharded-slab-0.1.4.bazel
new file mode 100644
index 0000000..cfcc376
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.sharded-slab-0.1.4.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "sharded_slab",
+ 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.1.4",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__lazy_static-1.4.0//:lazy_static",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.signal-hook-registry-1.4.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.signal-hook-registry-1.4.0.bazel
new file mode 100644
index 0000000..1bfc0da
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.signal-hook-registry-1.4.0.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "signal_hook_registry",
+ 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 = "2015",
+ 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 = "1.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.slab-0.4.5.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.slab-0.4.5.bazel
new file mode 100644
index 0000000..d4303ef
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.slab-0.4.5.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "slab",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ 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.4.5",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.smallvec-1.8.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.smallvec-1.8.0.bazel
new file mode 100644
index 0000000..a9ae389
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.smallvec-1.8.0.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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/Apache-2.0
+# ])
+
+rust_library(
+ name = "smallvec",
+ 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 = "1.8.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.socket2-0.4.4.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.socket2-0.4.4.bazel
new file mode 100644
index 0000000..f9ccd49
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.socket2-0.4.4.bazel
@@ -0,0 +1,119 @@
+###############################################################################
+# @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 = "socket2",
+ 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.4.4",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+
+ # Common Deps
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ ],
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.syn-1.0.86.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.syn-1.0.86.bazel
new file mode 100644
index 0000000..5653b39
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.syn-1.0.86.bazel
@@ -0,0 +1,196 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT OR Apache-2.0
+# ])
+
+rust_library(
+ name = "syn",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit",
+ "visit-mut",
+ ],
+ 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 = "1.0.86",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_pkgs__quote-1.0.15//:quote",
+ "@crates_vendor_pkgs__syn-1.0.86//:build_script_build",
+ "@crates_vendor_pkgs__unicode-xid-0.2.2//:unicode_xid",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "syn_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "clone-impls",
+ "default",
+ "derive",
+ "extra-traits",
+ "full",
+ "parsing",
+ "printing",
+ "proc-macro",
+ "quote",
+ "visit",
+ "visit-mut",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "1.0.86",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "syn_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.sync_wrapper-0.1.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.sync_wrapper-0.1.1.bazel
new file mode 100644
index 0000000..d3358b4
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.sync_wrapper-0.1.1.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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", # Apache-2.0
+# ])
+
+rust_library(
+ name = "sync_wrapper",
+ 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.1.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.thread_local-1.1.4.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.thread_local-1.1.4.bazel
new file mode 100644
index 0000000..68b0305
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.thread_local-1.1.4.bazel
@@ -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", # Apache-2.0/MIT
+# ])
+
+rust_library(
+ name = "thread_local",
+ 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 = "1.1.4",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__once_cell-1.9.0//:once_cell",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-1.16.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-1.16.1.bazel
new file mode 100644
index 0000000..35237a9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-1.16.1.bazel
@@ -0,0 +1,165 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "bytes",
+ "default",
+ "fs",
+ "full",
+ "io-std",
+ "io-util",
+ "libc",
+ "macros",
+ "memchr",
+ "mio",
+ "net",
+ "num_cpus",
+ "once_cell",
+ "parking_lot",
+ "process",
+ "rt",
+ "rt-multi-thread",
+ "signal",
+ "signal-hook-registry",
+ "sync",
+ "time",
+ "tokio-macros",
+ "winapi",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__tokio-macros-1.7.0//:tokio_macros",
+ ],
+ }),
+ 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 = "1.16.1",
+ deps = [
+ ] + select_with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__libc-0.2.119//:libc",
+ "@crates_vendor_pkgs__signal-hook-registry-1.4.0//:signal_hook_registry",
+
+ # Common Deps
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__memchr-2.4.1//:memchr",
+ "@crates_vendor_pkgs__mio-0.7.14//:mio",
+ "@crates_vendor_pkgs__num_cpus-1.13.1//:num_cpus",
+ "@crates_vendor_pkgs__once_cell-1.9.0//:once_cell",
+ "@crates_vendor_pkgs__parking_lot-0.11.2//:parking_lot",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ ],
+ # cfg(windows)
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ # Target Deps
+ "@crates_vendor_pkgs__winapi-0.3.9//:winapi",
+
+ # Common Deps
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__memchr-2.4.1//:memchr",
+ "@crates_vendor_pkgs__mio-0.7.14//:mio",
+ "@crates_vendor_pkgs__num_cpus-1.13.1//:num_cpus",
+ "@crates_vendor_pkgs__once_cell-1.9.0//:once_cell",
+ "@crates_vendor_pkgs__parking_lot-0.11.2//:parking_lot",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ ],
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__memchr-2.4.1//:memchr",
+ "@crates_vendor_pkgs__mio-0.7.14//:mio",
+ "@crates_vendor_pkgs__num_cpus-1.13.1//:num_cpus",
+ "@crates_vendor_pkgs__once_cell-1.9.0//:once_cell",
+ "@crates_vendor_pkgs__parking_lot-0.11.2//:parking_lot",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-macros-1.7.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-macros-1.7.0.bazel
new file mode 100644
index 0000000..fee514a
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-macros-1.7.0.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "tokio_macros",
+ 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 = "1.7.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_pkgs__quote-1.0.15//:quote",
+ "@crates_vendor_pkgs__syn-1.0.86//:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-util-0.6.9.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-util-0.6.9.bazel
new file mode 100644
index 0000000..7d8b271
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-util-0.6.9.bazel
@@ -0,0 +1,92 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_util",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "codec",
+ "default",
+ ],
+ 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.6.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-sink-0.3.21//:futures_sink",
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-util-0.7.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-util-0.7.0.bazel
new file mode 100644
index 0000000..7cb6846
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tokio-util-0.7.0.bazel
@@ -0,0 +1,90 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tokio_util",
+ 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.7.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-sink-0.3.21//:futures_sink",
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-0.4.12.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-0.4.12.bazel
new file mode 100644
index 0000000..7acabc6
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-0.4.12.bazel
@@ -0,0 +1,106 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "__common",
+ "buffer",
+ "default",
+ "futures-core",
+ "futures-util",
+ "log",
+ "make",
+ "pin-project",
+ "pin-project-lite",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "util",
+ ],
+ 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.4.12",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:futures_util",
+ "@crates_vendor_pkgs__pin-project-1.0.10//:pin_project",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ "@crates_vendor_pkgs__tokio-util-0.7.0//:tokio_util",
+ "@crates_vendor_pkgs__tower-layer-0.3.1//:tower_layer",
+ "@crates_vendor_pkgs__tower-service-0.3.1//:tower_service",
+ "@crates_vendor_pkgs__tracing-0.1.31//:tracing",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-http-0.2.3.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-http-0.2.3.bazel
new file mode 100644
index 0000000..fed12a5
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-http-0.2.3.bazel
@@ -0,0 +1,102 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower_http",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "map-response-body",
+ "tower",
+ "trace",
+ "tracing",
+ "util",
+ ],
+ 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.3",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__bitflags-1.3.2//:bitflags",
+ "@crates_vendor_pkgs__bytes-1.1.0//:bytes",
+ "@crates_vendor_pkgs__futures-core-0.3.21//:futures_core",
+ "@crates_vendor_pkgs__futures-util-0.3.21//:futures_util",
+ "@crates_vendor_pkgs__http-0.2.6//:http",
+ "@crates_vendor_pkgs__http-body-0.4.4//:http_body",
+ "@crates_vendor_pkgs__http-range-header-0.3.0//:http_range_header",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__tower-0.4.12//:tower",
+ "@crates_vendor_pkgs__tower-layer-0.3.1//:tower_layer",
+ "@crates_vendor_pkgs__tower-service-0.3.1//:tower_service",
+ "@crates_vendor_pkgs__tracing-0.1.31//:tracing",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-layer-0.3.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-layer-0.3.1.bazel
new file mode 100644
index 0000000..9e48ea0
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-layer-0.3.1.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower_layer",
+ 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.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-service-0.3.1.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-service-0.3.1.bazel
new file mode 100644
index 0000000..317d496
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tower-service-0.3.1.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tower_service",
+ 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.1",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-0.1.31.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-0.1.31.bazel
new file mode 100644
index 0000000..4b7cbd3
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-0.1.31.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "tracing",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "attributes",
+ "default",
+ "log",
+ "std",
+ "tracing-attributes",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2018",
+ proc_macro_deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__tracing-attributes-0.1.19//:tracing_attributes",
+ ],
+ }),
+ 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.1.31",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__cfg-if-1.0.0//:cfg_if",
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ "@crates_vendor_pkgs__pin-project-lite-0.2.8//:pin_project_lite",
+ "@crates_vendor_pkgs__tracing-core-0.1.22//:tracing_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-attributes-0.1.19.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-attributes-0.1.19.bazel
new file mode 100644
index 0000000..fe555bb
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-attributes-0.1.19.bazel
@@ -0,0 +1,87 @@
+###############################################################################
+# @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_proc_macro",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_proc_macro(
+ name = "tracing_attributes",
+ 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.1.19",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__proc-macro2-1.0.36//:proc_macro2",
+ "@crates_vendor_pkgs__quote-1.0.15//:quote",
+ "@crates_vendor_pkgs__syn-1.0.86//:syn",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-core-0.1.22.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-core-0.1.22.bazel
new file mode 100644
index 0000000..8dd06ff
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-core-0.1.22.bazel
@@ -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
+# ])
+
+rust_library(
+ name = "tracing_core",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ "lazy_static",
+ "std",
+ "valuable",
+ ],
+ 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.1.22",
+ deps = [
+ ] + select_with_or({
+ # cfg(tracing_unstable)
+ #
+ # No supported platform triples for cfg: 'cfg(tracing_unstable)'
+ # Skipped dependencies: [{"id":"valuable 0.1.0","target":"valuable"}]
+ #
+ "//conditions:default": [
+ "@crates_vendor_pkgs__lazy_static-1.4.0//:lazy_static",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-log-0.1.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-log-0.1.2.bazel
new file mode 100644
index 0000000..a516069
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-log-0.1.2.bazel
@@ -0,0 +1,89 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tracing_log",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "log-tracer",
+ "std",
+ ],
+ 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.1.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__lazy_static-1.4.0//:lazy_static",
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ "@crates_vendor_pkgs__tracing-core-0.1.22//:tracing_core",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-subscriber-0.3.9.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-subscriber-0.3.9.bazel
new file mode 100644
index 0000000..6555328
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.tracing-subscriber-0.3.9.bazel
@@ -0,0 +1,101 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "tracing_subscriber",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "ansi",
+ "ansi_term",
+ "default",
+ "fmt",
+ "registry",
+ "sharded-slab",
+ "smallvec",
+ "std",
+ "thread_local",
+ "tracing-log",
+ ],
+ 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.9",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__ansi_term-0.12.1//:ansi_term",
+ "@crates_vendor_pkgs__sharded-slab-0.1.4//:sharded_slab",
+ "@crates_vendor_pkgs__smallvec-1.8.0//:smallvec",
+ "@crates_vendor_pkgs__thread_local-1.1.4//:thread_local",
+ "@crates_vendor_pkgs__tracing-core-0.1.22//:tracing_core",
+ "@crates_vendor_pkgs__tracing-log-0.1.2//:tracing_log",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.try-lock-0.2.3.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.try-lock-0.2.3.bazel
new file mode 100644
index 0000000..10fbaf6
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.try-lock-0.2.3.bazel
@@ -0,0 +1,84 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "try_lock",
+ 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 = "2015",
+ 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.3",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.unicode-xid-0.2.2.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.unicode-xid-0.2.2.bazel
new file mode 100644
index 0000000..30562c1
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.unicode-xid-0.2.2.bazel
@@ -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 = "unicode_xid",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "default",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.2",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.valuable-0.1.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.valuable-0.1.0.bazel
new file mode 100644
index 0000000..9bd0d0b
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.valuable-0.1.0.bazel
@@ -0,0 +1,175 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT
+# ])
+
+rust_library(
+ name = "valuable",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "std",
+ ],
+ 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.1.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__valuable-0.1.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "valuable_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "alloc",
+ "std",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.1.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "valuable_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.want-0.3.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.want-0.3.0.bazel
new file mode 100644
index 0000000..d13a311
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.want-0.3.0.bazel
@@ -0,0 +1,86 @@
+###############################################################################
+# @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
+# ])
+
+rust_library(
+ name = "want",
+ 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.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__log-0.4.14//:log",
+ "@crates_vendor_pkgs__try-lock-0.2.3//:try_lock",
+ ],
+ }),
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-0.3.9.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-0.3.9.bazel
new file mode 100644
index 0000000..f50047d
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-0.3.9.bazel
@@ -0,0 +1,241 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ compile_data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mstcpip",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "processenv",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip",
+ ],
+ crate_root = "src/lib.rs",
+ data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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.9",
+ deps = [
+ ] + select_with_or({
+ # i686-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'i686-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}]
+ #
+ # x86_64-pc-windows-gnu
+ #
+ # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
+ # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}]
+ #
+ "//conditions:default": [
+ "@crates_vendor_pkgs__winapi-0.3.9//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ "cfg",
+ "consoleapi",
+ "errhandlingapi",
+ "evntrace",
+ "fileapi",
+ "handleapi",
+ "in6addr",
+ "inaddr",
+ "ioapiset",
+ "minwinbase",
+ "minwindef",
+ "mstcpip",
+ "mswsock",
+ "namedpipeapi",
+ "ntdef",
+ "ntsecapi",
+ "ntstatus",
+ "processenv",
+ "std",
+ "synchapi",
+ "threadpoollegacyapiset",
+ "winbase",
+ "windef",
+ "winerror",
+ "winioctl",
+ "winnt",
+ "winsock2",
+ "ws2def",
+ "ws2ipdef",
+ "ws2tcpip",
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.3.9",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel
new file mode 100644
index 0000000..ec8ffa9
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_i686_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__winapi-i686-pc-windows-gnu-0.4.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-i686-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-i686-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel
new file mode 100644
index 0000000..0ce2e90
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel
@@ -0,0 +1,171 @@
+###############################################################################
+# @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",
+)
+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",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+# licenses([
+# "TODO", # MIT/Apache-2.0
+# ])
+
+rust_library(
+ name = "winapi_x86_64_pc_windows_gnu",
+ 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 = "2015",
+ 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.4.0",
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ "@crates_vendor_pkgs__winapi-x86_64-pc-windows-gnu-0.4.0//:build_script_build",
+ ],
+ }),
+)
+
+cargo_build_script(
+ # See comment associated with alias. Do not change this name
+ name = "winapi-x86_64-pc-windows-gnu_build_script",
+ srcs = glob(
+ include = [
+ "**/*.rs",
+ ],
+ exclude = [
+ ],
+ ),
+ aliases = selects.with_or({
+ "//conditions:default": {
+ },
+ }),
+ build_script_env = {
+ },
+ compile_data = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ crate_features = [
+ ],
+ crate_name = "build_script_build",
+ crate_root = "build.rs",
+ data = glob(["**"]) + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ edition = "2015",
+ 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",
+ ],
+ tools = select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+ version = "0.4.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ ] + select_with_or({
+ "//conditions:default": [
+ ],
+ }),
+)
+
+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 = "winapi-x86_64-pc-windows-gnu_build_script",
+ tags = [
+ "manual",
+ ],
+)
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/crates.bzl b/examples/crate_universe/vendor_remote_pkgs/crates/crates.bzl
new file mode 100644
index 0000000..c30f4a0
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/crates.bzl
@@ -0,0 +1,25 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+"""Rules for defining repositories for remote `crates_vendor` repositories"""
+
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
+# buildifier: disable=bzl-visibility
+load("@examples//vendor_remote_pkgs/crates:defs.bzl", _crate_repositories = "crate_repositories")
+
+# buildifier: disable=bzl-visibility
+load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository")
+
+def crate_repositories():
+ maybe(
+ crates_vendor_remote_repository,
+ name = "crates_vendor_pkgs",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.bazel"),
+ defs_module = Label("@examples//vendor_remote_pkgs/crates:defs.bzl"),
+ )
+
+ _crate_repositories()
diff --git a/examples/crate_universe/vendor_remote_pkgs/crates/defs.bzl b/examples/crate_universe/vendor_remote_pkgs/crates/defs.bzl
new file mode 100644
index 0000000..ad7dac5
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/crates/defs.bzl
@@ -0,0 +1,1204 @@
+###############################################################################
+# @generated
+# This file is auto-generated by the cargo-bazel tool.
+#
+# DO NOT MODIFY: Local changes may be replaced in future executions.
+###############################################################################
+"""
+# `crates_repository` API
+
+- [aliases](#aliases)
+- [crate_deps](#crate_deps)
+- [all_crate_deps](#all_crate_deps)
+- [crate_repositories](#crate_repositories)
+
+"""
+
+load("@bazel_skylib//lib:selects.bzl", "selects")
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
+###############################################################################
+# MACROS API
+###############################################################################
+
+# An identifier that represent common dependencies (unconditional).
+_COMMON_CONDITION = ""
+
+def _flatten_dependency_maps(all_dependency_maps):
+ """Flatten a list of dependency maps into one dictionary.
+
+ Dependency maps have the following structure:
+
+ ```python
+ DEPENDENCIES_MAP = {
+ # The first key in the map is a Bazel package
+ # name of the workspace this file is defined in.
+ "workspace_member_package": {
+
+ # Not all dependnecies are supported for all platforms.
+ # the condition key is the condition required to be true
+ # on the host platform.
+ "condition": {
+
+ # An alias to a crate target. # The label of the crate target the
+ # Aliases are only crate names. # package name refers to.
+ "package_name": "@full//:label",
+ }
+ }
+ }
+ ```
+
+ Args:
+ all_dependency_maps (list): A list of dicts as described above
+
+ Returns:
+ dict: A dictionary as described above
+ """
+ dependencies = {}
+
+ for workspace_deps_map in all_dependency_maps:
+ for pkg_name, conditional_deps_map in workspace_deps_map.items():
+ if pkg_name not in dependencies:
+ non_frozen_map = dict()
+ for key, values in conditional_deps_map.items():
+ non_frozen_map.update({key: dict(values.items())})
+ dependencies.setdefault(pkg_name, non_frozen_map)
+ continue
+
+ for condition, deps_map in conditional_deps_map.items():
+ # If the condition has not been recorded, do so and continue
+ if condition not in dependencies[pkg_name]:
+ dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))
+ continue
+
+ # Alert on any miss-matched dependencies
+ inconsistent_entries = []
+ for crate_name, crate_label in deps_map.items():
+ existing = dependencies[pkg_name][condition].get(crate_name)
+ if existing and existing != crate_label:
+ inconsistent_entries.append((crate_name, existing, crate_label))
+ dependencies[pkg_name][condition].update({crate_name: crate_label})
+
+ return dependencies
+
+def crate_deps(deps, package_name = None):
+ """Finds the fully qualified label of the requested crates for the package where this macro is called.
+
+ Args:
+ deps (list): The desired list of crate targets.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()`.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if not deps:
+ return []
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Join both sets of dependencies
+ dependencies = _flatten_dependency_maps([
+ _NORMAL_DEPENDENCIES,
+ _NORMAL_DEV_DEPENDENCIES,
+ _PROC_MACRO_DEPENDENCIES,
+ _PROC_MACRO_DEV_DEPENDENCIES,
+ _BUILD_DEPENDENCIES,
+ _BUILD_PROC_MACRO_DEPENDENCIES,
+ ]).pop(package_name, {})
+
+ # Combine all conditional packages so we can easily index over a flat list
+ # TODO: Perhaps this should actually return select statements and maintain
+ # the conditionals of the dependencies
+ flat_deps = {}
+ for deps_set in dependencies.values():
+ for crate_name, crate_label in deps_set.items():
+ flat_deps.update({crate_name: crate_label})
+
+ missing_crates = []
+ crate_targets = []
+ for crate_target in deps:
+ if crate_target not in flat_deps:
+ missing_crates.append(crate_target)
+ else:
+ crate_targets.append(flat_deps[crate_target])
+
+ if missing_crates:
+ fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format(
+ missing_crates,
+ package_name,
+ dependencies,
+ ))
+
+ return crate_targets
+
+def all_crate_deps(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Finds the fully qualified label of all requested direct crate dependencies \
+ for the package where this macro is called.
+
+ If no parameters are set, all normal dependencies are returned. Setting any one flag will
+ otherwise impact the contents of the returned list.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ list: A list of labels to generated rust targets (str)
+ """
+
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_dependency_maps = []
+ if normal:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+ if normal_dev:
+ all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)
+ if proc_macro:
+ all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)
+ if proc_macro_dev:
+ all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)
+ if build:
+ all_dependency_maps.append(_BUILD_DEPENDENCIES)
+ if build_proc_macro:
+ all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)
+
+ # Default to always using normal dependencies
+ if not all_dependency_maps:
+ all_dependency_maps.append(_NORMAL_DEPENDENCIES)
+
+ dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)
+
+ if not dependencies:
+ return []
+
+ crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())
+ for condition, deps in dependencies.items():
+ crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()})
+
+ return crate_deps
+
+def aliases(
+ normal = False,
+ normal_dev = False,
+ proc_macro = False,
+ proc_macro_dev = False,
+ build = False,
+ build_proc_macro = False,
+ package_name = None):
+ """Produces a map of Crate alias names to their original label
+
+ If no dependency kinds are specified, `normal` and `proc_macro` are used by default.
+ Setting any one flag will otherwise determine the contents of the returned dict.
+
+ Args:
+ normal (bool, optional): If True, normal dependencies are included in the
+ output list.
+ normal_dev (bool, optional): If True, normla dev dependencies will be
+ included in the output list..
+ proc_macro (bool, optional): If True, proc_macro dependencies are included
+ in the output list.
+ proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are
+ included in the output list.
+ build (bool, optional): If True, build dependencies are included
+ in the output list.
+ build_proc_macro (bool, optional): If True, build proc_macro dependencies are
+ included in the output list.
+ package_name (str, optional): The package name of the set of dependencies to look up.
+ Defaults to `native.package_name()` when unset.
+
+ Returns:
+ dict: The aliases of all associated packages
+ """
+ if package_name == None:
+ package_name = native.package_name()
+
+ # Determine the relevant maps to use
+ all_aliases_maps = []
+ if normal:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ if normal_dev:
+ all_aliases_maps.append(_NORMAL_DEV_ALIASES)
+ if proc_macro:
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+ if proc_macro_dev:
+ all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)
+ if build:
+ all_aliases_maps.append(_BUILD_ALIASES)
+ if build_proc_macro:
+ all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)
+
+ # Default to always using normal aliases
+ if not all_aliases_maps:
+ all_aliases_maps.append(_NORMAL_ALIASES)
+ all_aliases_maps.append(_PROC_MACRO_ALIASES)
+
+ aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)
+
+ if not aliases:
+ return dict()
+
+ common_items = aliases.pop(_COMMON_CONDITION, {}).items()
+
+ # If there are only common items in the dictionary, immediately return them
+ if not len(aliases.keys()) == 1:
+ return dict(common_items)
+
+ # Build a single select statement where each conditional has accounted for the
+ # common set of aliases.
+ crate_aliases = {"//conditions:default": common_items}
+ for condition, deps in aliases.items():
+ condition_triples = _CONDITIONS[condition]
+ if condition_triples in crate_aliases:
+ crate_aliases[condition_triples].update(deps)
+ else:
+ crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)})
+
+ return selects.with_or(crate_aliases)
+
+###############################################################################
+# WORKSPACE MEMBER DEPS AND ALIASES
+###############################################################################
+
+_NORMAL_DEPENDENCIES = {
+ "": {
+ _COMMON_CONDITION: {
+ "axum": "@crates_vendor_pkgs__axum-0.4.8//:axum",
+ "hyper": "@crates_vendor_pkgs__hyper-0.14.17//:hyper",
+ "mime": "@crates_vendor_pkgs__mime-0.3.16//:mime",
+ "serde_json": "@crates_vendor_pkgs__serde_json-1.0.79//:serde_json",
+ "tokio": "@crates_vendor_pkgs__tokio-1.16.1//:tokio",
+ "tower": "@crates_vendor_pkgs__tower-0.4.12//:tower",
+ "tower-http": "@crates_vendor_pkgs__tower-http-0.2.3//:tower_http",
+ "tracing": "@crates_vendor_pkgs__tracing-0.1.31//:tracing",
+ "tracing-subscriber": "@crates_vendor_pkgs__tracing-subscriber-0.3.9//:tracing_subscriber",
+ },
+ },
+}
+
+_NORMAL_ALIASES = {
+ "": {
+ _COMMON_CONDITION: {
+ },
+ },
+}
+
+_NORMAL_DEV_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_NORMAL_DEV_ALIASES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_ALIASES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_DEV_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_PROC_MACRO_DEV_ALIASES = {
+ "": {
+ },
+}
+
+_BUILD_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_BUILD_ALIASES = {
+ "": {
+ },
+}
+
+_BUILD_PROC_MACRO_DEPENDENCIES = {
+ "": {
+ },
+}
+
+_BUILD_PROC_MACRO_ALIASES = {
+ "": {
+ },
+}
+
+_CONDITIONS = {
+ "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [],
+ "cfg(not(windows))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(target_os = \"redox\")": [],
+ "cfg(target_os = \"windows\")": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
+ "cfg(tracing_unstable)": [],
+ "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"],
+ "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"],
+ "i686-pc-windows-gnu": [],
+ "x86_64-pc-windows-gnu": [],
+}
+
+###############################################################################
+
+def crate_repositories():
+ """A macro for defining repositories for all generated crates"""
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__ansi_term-0.12.1",
+ sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/ansi_term/0.12.1/download"],
+ strip_prefix = "ansi_term-0.12.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.ansi_term-0.12.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__async-trait-0.1.52",
+ sha256 = "061a7acccaa286c011ddc30970520b98fa40e00c9d644633fb26b5fc63a265e3",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/async-trait/0.1.52/download"],
+ strip_prefix = "async-trait-0.1.52",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.async-trait-0.1.52.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__autocfg-1.1.0",
+ sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/autocfg/1.1.0/download"],
+ strip_prefix = "autocfg-1.1.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.autocfg-1.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__axum-0.4.8",
+ sha256 = "c9f346c92c1e9a71d14fe4aaf7c2a5d9932cc4e5e48d8fb6641524416eb79ddd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/axum/0.4.8/download"],
+ strip_prefix = "axum-0.4.8",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.axum-0.4.8.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__axum-core-0.1.2",
+ sha256 = "6dbcda393bef9c87572779cb8ef916f12d77750b27535dd6819fa86591627a51",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/axum-core/0.1.2/download"],
+ strip_prefix = "axum-core-0.1.2",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.axum-core-0.1.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__bitflags-1.3.2",
+ sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"],
+ strip_prefix = "bitflags-1.3.2",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.bitflags-1.3.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__bytes-1.1.0",
+ sha256 = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/bytes/1.1.0/download"],
+ strip_prefix = "bytes-1.1.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.bytes-1.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__cfg-if-1.0.0",
+ sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"],
+ strip_prefix = "cfg-if-1.0.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.cfg-if-1.0.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__fnv-1.0.7",
+ sha256 = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/fnv/1.0.7/download"],
+ strip_prefix = "fnv-1.0.7",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.fnv-1.0.7.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__form_urlencoded-1.0.1",
+ sha256 = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download"],
+ strip_prefix = "form_urlencoded-1.0.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.form_urlencoded-1.0.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__futures-channel-0.3.21",
+ sha256 = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/futures-channel/0.3.21/download"],
+ strip_prefix = "futures-channel-0.3.21",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.futures-channel-0.3.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__futures-core-0.3.21",
+ sha256 = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/futures-core/0.3.21/download"],
+ strip_prefix = "futures-core-0.3.21",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.futures-core-0.3.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__futures-sink-0.3.21",
+ sha256 = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/futures-sink/0.3.21/download"],
+ strip_prefix = "futures-sink-0.3.21",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.futures-sink-0.3.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__futures-task-0.3.21",
+ sha256 = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/futures-task/0.3.21/download"],
+ strip_prefix = "futures-task-0.3.21",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.futures-task-0.3.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__futures-util-0.3.21",
+ sha256 = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/futures-util/0.3.21/download"],
+ strip_prefix = "futures-util-0.3.21",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.futures-util-0.3.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__h2-0.3.11",
+ sha256 = "d9f1f717ddc7b2ba36df7e871fd88db79326551d3d6f1fc406fbfd28b582ff8e",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/h2/0.3.11/download"],
+ strip_prefix = "h2-0.3.11",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.h2-0.3.11.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__hashbrown-0.11.2",
+ sha256 = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/hashbrown/0.11.2/download"],
+ strip_prefix = "hashbrown-0.11.2",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.hashbrown-0.11.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__hermit-abi-0.1.19",
+ sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/hermit-abi/0.1.19/download"],
+ strip_prefix = "hermit-abi-0.1.19",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.hermit-abi-0.1.19.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__http-0.2.6",
+ sha256 = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/http/0.2.6/download"],
+ strip_prefix = "http-0.2.6",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.http-0.2.6.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__http-body-0.4.4",
+ sha256 = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/http-body/0.4.4/download"],
+ strip_prefix = "http-body-0.4.4",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.http-body-0.4.4.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__http-range-header-0.3.0",
+ sha256 = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/http-range-header/0.3.0/download"],
+ strip_prefix = "http-range-header-0.3.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.http-range-header-0.3.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__httparse-1.6.0",
+ sha256 = "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/httparse/1.6.0/download"],
+ strip_prefix = "httparse-1.6.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.httparse-1.6.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__httpdate-1.0.2",
+ sha256 = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/httpdate/1.0.2/download"],
+ strip_prefix = "httpdate-1.0.2",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.httpdate-1.0.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__hyper-0.14.17",
+ sha256 = "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/hyper/0.14.17/download"],
+ strip_prefix = "hyper-0.14.17",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.hyper-0.14.17.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__indexmap-1.8.0",
+ sha256 = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/indexmap/1.8.0/download"],
+ strip_prefix = "indexmap-1.8.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.indexmap-1.8.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__instant-0.1.12",
+ sha256 = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/instant/0.1.12/download"],
+ strip_prefix = "instant-0.1.12",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.instant-0.1.12.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__itoa-1.0.1",
+ sha256 = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/itoa/1.0.1/download"],
+ strip_prefix = "itoa-1.0.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.itoa-1.0.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__lazy_static-1.4.0",
+ sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/lazy_static/1.4.0/download"],
+ strip_prefix = "lazy_static-1.4.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.lazy_static-1.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__libc-0.2.119",
+ sha256 = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/libc/0.2.119/download"],
+ strip_prefix = "libc-0.2.119",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.libc-0.2.119.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__lock_api-0.4.6",
+ sha256 = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/lock_api/0.4.6/download"],
+ strip_prefix = "lock_api-0.4.6",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.lock_api-0.4.6.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__log-0.4.14",
+ sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/log/0.4.14/download"],
+ strip_prefix = "log-0.4.14",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.log-0.4.14.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__matches-0.1.9",
+ sha256 = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/matches/0.1.9/download"],
+ strip_prefix = "matches-0.1.9",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.matches-0.1.9.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__matchit-0.4.6",
+ sha256 = "9376a4f0340565ad675d11fc1419227faf5f60cd7ac9cb2e7185a471f30af833",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/matchit/0.4.6/download"],
+ strip_prefix = "matchit-0.4.6",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.matchit-0.4.6.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__memchr-2.4.1",
+ sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/memchr/2.4.1/download"],
+ strip_prefix = "memchr-2.4.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.memchr-2.4.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__mime-0.3.16",
+ sha256 = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/mime/0.3.16/download"],
+ strip_prefix = "mime-0.3.16",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.mime-0.3.16.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__mio-0.7.14",
+ sha256 = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/mio/0.7.14/download"],
+ strip_prefix = "mio-0.7.14",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.mio-0.7.14.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__miow-0.3.7",
+ sha256 = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/miow/0.3.7/download"],
+ strip_prefix = "miow-0.3.7",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.miow-0.3.7.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__ntapi-0.3.7",
+ sha256 = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/ntapi/0.3.7/download"],
+ strip_prefix = "ntapi-0.3.7",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.ntapi-0.3.7.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__num_cpus-1.13.1",
+ sha256 = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/num_cpus/1.13.1/download"],
+ strip_prefix = "num_cpus-1.13.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.num_cpus-1.13.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__once_cell-1.9.0",
+ sha256 = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/once_cell/1.9.0/download"],
+ strip_prefix = "once_cell-1.9.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.once_cell-1.9.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__parking_lot-0.11.2",
+ sha256 = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/parking_lot/0.11.2/download"],
+ strip_prefix = "parking_lot-0.11.2",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.parking_lot-0.11.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__parking_lot_core-0.8.5",
+ sha256 = "d76e8e1493bcac0d2766c42737f34458f1c8c50c0d23bcb24ea953affb273216",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/parking_lot_core/0.8.5/download"],
+ strip_prefix = "parking_lot_core-0.8.5",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.parking_lot_core-0.8.5.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__percent-encoding-2.1.0",
+ sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/percent-encoding/2.1.0/download"],
+ strip_prefix = "percent-encoding-2.1.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.percent-encoding-2.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__pin-project-1.0.10",
+ sha256 = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/pin-project/1.0.10/download"],
+ strip_prefix = "pin-project-1.0.10",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.pin-project-1.0.10.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__pin-project-internal-1.0.10",
+ sha256 = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/pin-project-internal/1.0.10/download"],
+ strip_prefix = "pin-project-internal-1.0.10",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.pin-project-internal-1.0.10.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__pin-project-lite-0.2.8",
+ sha256 = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/pin-project-lite/0.2.8/download"],
+ strip_prefix = "pin-project-lite-0.2.8",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.pin-project-lite-0.2.8.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__pin-utils-0.1.0",
+ sha256 = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/pin-utils/0.1.0/download"],
+ strip_prefix = "pin-utils-0.1.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.pin-utils-0.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__proc-macro2-1.0.36",
+ sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.36/download"],
+ strip_prefix = "proc-macro2-1.0.36",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.proc-macro2-1.0.36.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__quote-1.0.15",
+ sha256 = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/quote/1.0.15/download"],
+ strip_prefix = "quote-1.0.15",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.quote-1.0.15.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__redox_syscall-0.2.11",
+ sha256 = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/redox_syscall/0.2.11/download"],
+ strip_prefix = "redox_syscall-0.2.11",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.redox_syscall-0.2.11.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__ryu-1.0.9",
+ sha256 = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/ryu/1.0.9/download"],
+ strip_prefix = "ryu-1.0.9",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.ryu-1.0.9.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__scopeguard-1.1.0",
+ sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/scopeguard/1.1.0/download"],
+ strip_prefix = "scopeguard-1.1.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.scopeguard-1.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__serde-1.0.136",
+ sha256 = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/serde/1.0.136/download"],
+ strip_prefix = "serde-1.0.136",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.serde-1.0.136.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__serde_json-1.0.79",
+ sha256 = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95",
+ 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("@examples//vendor_remote_pkgs/crates:BUILD.serde_json-1.0.79.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__serde_urlencoded-0.7.1",
+ sha256 = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/serde_urlencoded/0.7.1/download"],
+ strip_prefix = "serde_urlencoded-0.7.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.serde_urlencoded-0.7.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__sharded-slab-0.1.4",
+ sha256 = "900fba806f70c630b0a382d0d825e17a0f19fcd059a2ade1ff237bcddf446b31",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/sharded-slab/0.1.4/download"],
+ strip_prefix = "sharded-slab-0.1.4",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.sharded-slab-0.1.4.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__signal-hook-registry-1.4.0",
+ sha256 = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/signal-hook-registry/1.4.0/download"],
+ strip_prefix = "signal-hook-registry-1.4.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.signal-hook-registry-1.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__slab-0.4.5",
+ sha256 = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/slab/0.4.5/download"],
+ strip_prefix = "slab-0.4.5",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.slab-0.4.5.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__smallvec-1.8.0",
+ sha256 = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/smallvec/1.8.0/download"],
+ strip_prefix = "smallvec-1.8.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.smallvec-1.8.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__socket2-0.4.4",
+ sha256 = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/socket2/0.4.4/download"],
+ strip_prefix = "socket2-0.4.4",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.socket2-0.4.4.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__syn-1.0.86",
+ sha256 = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/syn/1.0.86/download"],
+ strip_prefix = "syn-1.0.86",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.syn-1.0.86.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__sync_wrapper-0.1.1",
+ sha256 = "20518fe4a4c9acf048008599e464deb21beeae3d3578418951a189c235a7a9a8",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/sync_wrapper/0.1.1/download"],
+ strip_prefix = "sync_wrapper-0.1.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.sync_wrapper-0.1.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__thread_local-1.1.4",
+ sha256 = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/thread_local/1.1.4/download"],
+ strip_prefix = "thread_local-1.1.4",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.thread_local-1.1.4.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tokio-1.16.1",
+ sha256 = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio/1.16.1/download"],
+ strip_prefix = "tokio-1.16.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tokio-1.16.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tokio-macros-1.7.0",
+ sha256 = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio-macros/1.7.0/download"],
+ strip_prefix = "tokio-macros-1.7.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tokio-macros-1.7.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tokio-util-0.6.9",
+ sha256 = "9e99e1983e5d376cd8eb4b66604d2e99e79f5bd988c3055891dcd8c9e2604cc0",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio-util/0.6.9/download"],
+ strip_prefix = "tokio-util-0.6.9",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tokio-util-0.6.9.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tokio-util-0.7.0",
+ sha256 = "64910e1b9c1901aaf5375561e35b9c057d95ff41a44ede043a03e09279eabaf1",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tokio-util/0.7.0/download"],
+ strip_prefix = "tokio-util-0.7.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tokio-util-0.7.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tower-0.4.12",
+ sha256 = "9a89fd63ad6adf737582df5db40d286574513c69a11dac5214dc3b5603d6713e",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tower/0.4.12/download"],
+ strip_prefix = "tower-0.4.12",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tower-0.4.12.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tower-http-0.2.3",
+ sha256 = "2bb284cac1883d54083a0edbdc9cabf931dfed87455f8c7266c01ece6394a43a",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tower-http/0.2.3/download"],
+ strip_prefix = "tower-http-0.2.3",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tower-http-0.2.3.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tower-layer-0.3.1",
+ sha256 = "343bc9466d3fe6b0f960ef45960509f84480bf4fd96f92901afe7ff3df9d3a62",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tower-layer/0.3.1/download"],
+ strip_prefix = "tower-layer-0.3.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tower-layer-0.3.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tower-service-0.3.1",
+ sha256 = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tower-service/0.3.1/download"],
+ strip_prefix = "tower-service-0.3.1",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tower-service-0.3.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tracing-0.1.31",
+ sha256 = "f6c650a8ef0cd2dd93736f033d21cbd1224c5a967aa0c258d00fcf7dafef9b9f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tracing/0.1.31/download"],
+ strip_prefix = "tracing-0.1.31",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tracing-0.1.31.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tracing-attributes-0.1.19",
+ sha256 = "8276d9a4a3a558d7b7ad5303ad50b53d58264641b82914b7ada36bd762e7a716",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tracing-attributes/0.1.19/download"],
+ strip_prefix = "tracing-attributes-0.1.19",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tracing-attributes-0.1.19.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tracing-core-0.1.22",
+ sha256 = "03cfcb51380632a72d3111cb8d3447a8d908e577d31beeac006f836383d29a23",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tracing-core/0.1.22/download"],
+ strip_prefix = "tracing-core-0.1.22",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tracing-core-0.1.22.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tracing-log-0.1.2",
+ sha256 = "a6923477a48e41c1951f1999ef8bb5a3023eb723ceadafe78ffb65dc366761e3",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tracing-log/0.1.2/download"],
+ strip_prefix = "tracing-log-0.1.2",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tracing-log-0.1.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__tracing-subscriber-0.3.9",
+ sha256 = "9e0ab7bdc962035a87fba73f3acca9b8a8d0034c2e6f60b84aeaaddddc155dce",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/tracing-subscriber/0.3.9/download"],
+ strip_prefix = "tracing-subscriber-0.3.9",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.tracing-subscriber-0.3.9.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__try-lock-0.2.3",
+ sha256 = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/try-lock/0.2.3/download"],
+ strip_prefix = "try-lock-0.2.3",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.try-lock-0.2.3.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__unicode-xid-0.2.2",
+ sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3",
+ 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("@examples//vendor_remote_pkgs/crates:BUILD.unicode-xid-0.2.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__valuable-0.1.0",
+ sha256 = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/valuable/0.1.0/download"],
+ strip_prefix = "valuable-0.1.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.valuable-0.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__want-0.3.0",
+ sha256 = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/want/0.3.0/download"],
+ strip_prefix = "want-0.3.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.want-0.3.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__winapi-0.3.9",
+ sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/winapi/0.3.9/download"],
+ strip_prefix = "winapi-0.3.9",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.winapi-0.3.9.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__winapi-i686-pc-windows-gnu-0.4.0",
+ sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download"],
+ strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "crates_vendor_pkgs__winapi-x86_64-pc-windows-gnu-0.4.0",
+ sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
+ type = "tar.gz",
+ urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"],
+ strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
+ build_file = Label("@examples//vendor_remote_pkgs/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"),
+ )
diff --git a/examples/crate_universe/vendor_remote_pkgs/src/main.rs b/examples/crate_universe/vendor_remote_pkgs/src/main.rs
new file mode 100644
index 0000000..edde4b6
--- /dev/null
+++ b/examples/crate_universe/vendor_remote_pkgs/src/main.rs
@@ -0,0 +1,150 @@
+//! Copied from https://github.com/tokio-rs/axum/blob/v0.2.5/examples/testing/src/main.rs
+
+use axum::{
+ routing::{get, post},
+ Json, Router,
+};
+use tower_http::trace::TraceLayer;
+
+#[tokio::main]
+async fn main() {
+ // Set the RUST_LOG, if it hasn't been explicitly defined
+ if std::env::var_os("RUST_LOG").is_none() {
+ std::env::set_var("RUST_LOG", "example_testing=debug,tower_http=debug")
+ }
+ tracing_subscriber::fmt::init();
+
+ let addr = std::net::SocketAddr::from(([127, 0, 0, 1], 3000));
+
+ tracing::debug!("listening on {}", addr);
+
+ axum::Server::bind(&addr)
+ .serve(app().into_make_service())
+ .await
+ .unwrap();
+}
+
+/// Having a function that produces our app makes it easy to call it from tests
+/// without having to create an HTTP server.
+#[allow(dead_code)]
+fn app() -> Router {
+ Router::new()
+ .route("/", get(|| async { "Hello, World!" }))
+ .route(
+ "/json",
+ post(|payload: Json<serde_json::Value>| async move {
+ Json(serde_json::json!({ "data": payload.0 }))
+ }),
+ )
+ // We can still add middleware
+ .layer(TraceLayer::new_for_http())
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[cfg(not(target_os = "windows"))]
+ use std::net::{SocketAddr, TcpListener};
+
+ use axum::{
+ body::Body,
+ http::{self, Request, StatusCode},
+ };
+ use serde_json::{json, Value};
+ use tower::ServiceExt; // for `app.oneshot()`
+
+ #[tokio::test]
+ async fn hello_world() {
+ let app = app();
+
+ // `Router` implements `tower::Service<Request<Body>>` so we can
+ // call it like any tower service, no need to run an HTTP server.
+ let response = app
+ .oneshot(Request::builder().uri("/").body(Body::empty()).unwrap())
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::OK);
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert_eq!(&body[..], b"Hello, World!");
+ }
+
+ #[tokio::test]
+ async fn json() {
+ let app = app();
+
+ let response = app
+ .oneshot(
+ Request::builder()
+ .method(http::Method::POST)
+ .uri("/json")
+ .header(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.as_ref())
+ .body(Body::from(
+ serde_json::to_vec(&json!([1_i8, 2_i8, 3_i8, 4_i8])).unwrap(),
+ ))
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::OK);
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ let body: Value = serde_json::from_slice(&body).unwrap();
+ assert_eq!(body, json!({ "data": [1_i8, 2_i8, 3_i8, 4_i8] }));
+ }
+
+ #[tokio::test]
+ async fn not_found() {
+ let app = app();
+
+ let response = app
+ .oneshot(
+ Request::builder()
+ .uri("/does-not-exist")
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(response.status(), StatusCode::NOT_FOUND);
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert!(body.is_empty());
+ }
+
+ // TODO: This test fails on Windows, it shouldn't but it's unclear to me
+ // if this is an issue on the host or with the test.
+ #[cfg(not(target_os = "windows"))]
+ // You can also spawn a server and talk to it like any other HTTP server:
+ #[tokio::test]
+ async fn the_real_deal() {
+ let listener = TcpListener::bind("0.0.0.0:0".parse::<SocketAddr>().unwrap()).unwrap();
+ let addr = listener.local_addr().unwrap();
+
+ tokio::spawn(async move {
+ axum::Server::from_tcp(listener)
+ .unwrap()
+ .serve(app().into_make_service())
+ .await
+ .unwrap();
+ });
+
+ let client = hyper::Client::new();
+
+ let response = client
+ .request(
+ Request::builder()
+ .uri(format!("http://{}", addr))
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+
+ let body = hyper::body::to_bytes(response.into_body()).await.unwrap();
+ assert_eq!(&body[..], b"Hello, World!");
+ }
+}
diff --git a/examples/env_locations/BUILD.bazel b/examples/env_locations/BUILD.bazel
new file mode 100644
index 0000000..82161bb
--- /dev/null
+++ b/examples/env_locations/BUILD.bazel
@@ -0,0 +1,49 @@
+load("@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script")
+load("@rules_rust//rust:defs.bzl", "rust_test")
+
+# generate a file
+genrule(
+ name = "data_generator",
+ outs = ["generated.data"],
+ cmd = "echo hello > $@",
+)
+
+_data = [
+ # we should be able to read non-generated source/data files
+ "source.file",
+ # and generated files as well
+ "generated.data",
+ # we should also be able to access external binaries
+ # such as protoc.
+ "@com_google_protobuf//:protoc",
+]
+
+cargo_build_script(
+ name = "build",
+ srcs = ["build.rs"],
+ build_script_env = {
+ "GENERATED_DATA": "$(location generated.data)",
+ "SOME_TOOL": "$(execpath @com_google_protobuf//:protoc)",
+ # both execpath and location should work
+ "SOURCE_FILE": "$(execpath source.file)",
+ },
+ data = _data,
+)
+
+rust_test(
+ name = "test",
+ srcs = [
+ "main.rs",
+ ],
+ data = _data,
+ edition = "2018",
+ rustc_env = {
+ "GENERATED_DATA_ABS": "$(execpath generated.data)",
+ "GENERATED_DATA_ROOT": "$(rootpath generated.data)",
+ "SOME_TOOL": "$(rootpath @com_google_protobuf//:protoc)",
+ "SOURCE_FILE": "$(rootpath source.file)",
+ },
+ deps = [
+ ":build",
+ ],
+)
diff --git a/examples/env_locations/build.rs b/examples/env_locations/build.rs
new file mode 100644
index 0000000..d791f5d
--- /dev/null
+++ b/examples/env_locations/build.rs
@@ -0,0 +1,17 @@
+use std::{env, fs};
+
+fn main() {
+ // our source file should be readable
+ let path = env::var("SOURCE_FILE").unwrap();
+ let generated_data = fs::read_to_string(&path).unwrap();
+ assert_eq!(generated_data, "source\n");
+
+ // our generated data file should be readable
+ let path = env::var("GENERATED_DATA").unwrap();
+ let generated_data = fs::read_to_string(&path).unwrap();
+ assert_eq!(generated_data, "hello\n");
+
+ // and we should be able to read (and thus execute) our tool
+ let path = env::var("SOME_TOOL").unwrap();
+ assert!(!fs::read(&path).unwrap().is_empty());
+}
diff --git a/examples/env_locations/main.rs b/examples/env_locations/main.rs
new file mode 100644
index 0000000..3b07b1d
--- /dev/null
+++ b/examples/env_locations/main.rs
@@ -0,0 +1,12 @@
+#[test]
+fn test() {
+ // our source file should be readable
+ let source_file = std::fs::read_to_string(env!("SOURCE_FILE")).unwrap();
+ assert_eq!(source_file, "source\n");
+ // our generated data file should be readable at run time and build time
+ let generated_data = std::fs::read_to_string(env!("GENERATED_DATA_ROOT")).unwrap();
+ let generated_data2 = include_str!(env!("GENERATED_DATA_ABS"));
+ assert_eq!(generated_data, generated_data2);
+ // and we should be able to read (and thus execute) our tool
+ assert!(!std::fs::read(env!("SOME_TOOL")).unwrap().is_empty());
+}
diff --git a/examples/env_locations/source.file b/examples/env_locations/source.file
new file mode 100644
index 0000000..5a18cd2
--- /dev/null
+++ b/examples/env_locations/source.file
@@ -0,0 +1 @@
+source
diff --git a/examples/ffi/BUILD.bazel b/examples/ffi/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/ffi/BUILD.bazel
diff --git a/examples/ffi/c_calling_rust/BUILD.bazel b/examples/ffi/c_calling_rust/BUILD.bazel
new file mode 100644
index 0000000..b491126
--- /dev/null
+++ b/examples/ffi/c_calling_rust/BUILD.bazel
@@ -0,0 +1,18 @@
+load("@rules_cc//cc:defs.bzl", "cc_test")
+load("@rules_rust//rust:defs.bzl", "rust_static_library", "rust_test")
+
+rust_static_library(
+ name = "rusty",
+ srcs = ["lib.rs"],
+)
+
+rust_test(
+ name = "rusty_test",
+ crate = ":rusty",
+)
+
+cc_test(
+ name = "main",
+ srcs = ["main.c"],
+ deps = [":rusty"],
+)
diff --git a/examples/ffi/c_calling_rust/lib.rs b/examples/ffi/c_calling_rust/lib.rs
new file mode 100644
index 0000000..2d6fc52
--- /dev/null
+++ b/examples/ffi/c_calling_rust/lib.rs
@@ -0,0 +1,14 @@
+#[no_mangle]
+pub extern "C" fn my_favorite_number() -> i32 {
+ 4
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn test_my_favorite_number() {
+ assert_eq!(4, my_favorite_number());
+ }
+}
diff --git a/examples/ffi/c_calling_rust/main.c b/examples/ffi/c_calling_rust/main.c
new file mode 100644
index 0000000..2a57330
--- /dev/null
+++ b/examples/ffi/c_calling_rust/main.c
@@ -0,0 +1,9 @@
+#include <assert.h>
+#include <stdint.h>
+
+extern int32_t my_favorite_number();
+
+int main(int argc, char** argv) {
+ assert(my_favorite_number() == 4);
+ return 0;
+}
diff --git a/examples/ffi/rust_calling_c/BUILD.bazel b/examples/ffi/rust_calling_c/BUILD.bazel
new file mode 100644
index 0000000..041d1da
--- /dev/null
+++ b/examples/ffi/rust_calling_c/BUILD.bazel
@@ -0,0 +1,62 @@
+load("@rules_rust//rust:defs.bzl", "rust_doc", "rust_library", "rust_test")
+
+package(default_visibility = ["//ffi/rust_calling_c:__subpackages__"])
+
+rust_library(
+ name = "matrix",
+ srcs = [
+ "src/ffi.rs",
+ "src/matrix.rs",
+ ],
+ deps = [
+ "//ffi/rust_calling_c/c:native_matrix",
+ "@libc",
+ ],
+)
+
+rust_test(
+ name = "matrix_test",
+ crate = ":matrix",
+)
+
+rust_doc(
+ name = "matrix_doc",
+ crate = ":matrix",
+)
+
+## Do the same as above, but with a dynamic c library.
+
+rust_library(
+ name = "matrix_dynamically_linked",
+ srcs = [
+ "src/ffi.rs",
+ "src/matrix.rs",
+ ],
+ crate_root = "src/matrix.rs",
+ target_compatible_with = select({
+ # TODO: Make this work on windows
+ "@platforms//os:windows": ["@platforms//:incompatible"],
+ "//conditions:default": [],
+ }),
+ deps = [
+ "//ffi/rust_calling_c/c:native_matrix_so",
+ "@libc",
+ ],
+)
+
+rust_test(
+ name = "matrix_dylib_test",
+ crate = ":matrix_dynamically_linked",
+ target_compatible_with = select({
+ # TODO: This test requires --incompatible_macos_set_install_name and Bazel 4.2.0+
+ "@platforms//os:macos": ["@platforms//:incompatible"],
+ # TODO: Make this work on windows
+ "@platforms//os:windows": ["@platforms//:incompatible"],
+ "//conditions:default": [],
+ }),
+)
+
+rust_doc(
+ name = "matrix_dylib_doc",
+ crate = ":matrix_dynamically_linked",
+)
diff --git a/examples/ffi/rust_calling_c/c/BUILD.bazel b/examples/ffi/rust_calling_c/c/BUILD.bazel
new file mode 100644
index 0000000..2cab18b
--- /dev/null
+++ b/examples/ffi/rust_calling_c/c/BUILD.bazel
@@ -0,0 +1,38 @@
+load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_import", "cc_library", "cc_test")
+
+package(default_visibility = ["//ffi/rust_calling_c:__subpackages__"])
+
+cc_library(
+ name = "native_matrix",
+ srcs = ["matrix.c"],
+ hdrs = ["matrix.h"],
+ copts = ["-std=c99"],
+)
+
+cc_test(
+ name = "native_matrix_test",
+ srcs = ["matrix_test.c"],
+ copts = ["-std=c99"],
+ linkstatic = 1,
+ deps = [
+ ":native_matrix",
+ ],
+)
+
+## Do the same as above, but with a dynamic c library.
+
+cc_import(
+ name = "native_matrix_so",
+ hdrs = ["matrix.h"],
+ shared_library = ":libnative_matrix_so.so",
+)
+
+cc_binary(
+ name = "libnative_matrix_so.so",
+ srcs = [
+ "matrix.c",
+ "matrix.h",
+ ],
+ copts = ["-std=c99"],
+ linkshared = True,
+)
diff --git a/examples/ffi/rust_calling_c/c/matrix.c b/examples/ffi/rust_calling_c/c/matrix.c
new file mode 100644
index 0000000..6a4c811
--- /dev/null
+++ b/examples/ffi/rust_calling_c/c/matrix.c
@@ -0,0 +1,123 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "ffi/rust_calling_c/c/matrix.h"
+
+#include <stdio.h>
+#include <string.h>
+
+Matrix* matrix_new(size_t rows, size_t cols, const uint64_t* data) {
+ if (data == NULL) {
+ return NULL;
+ }
+ Matrix* matrix = (Matrix*)malloc(sizeof(*matrix));
+ if (matrix == NULL) {
+ return NULL;
+ }
+ matrix->rows = rows;
+ matrix->cols = cols;
+ matrix->data = (uint64_t*)malloc(rows * cols * sizeof(*(matrix->data)));
+ memcpy(matrix->data, data, rows * cols * sizeof(*data));
+ return matrix;
+}
+
+int matrix_at(const Matrix* matrix, size_t row, size_t col, uint64_t* n) {
+ if (matrix == NULL || matrix->data == NULL || n == NULL) {
+ return 0;
+ }
+ if (row >= matrix->rows || col >= matrix->cols) {
+ return 0;
+ }
+ *n = matrix->data[row * matrix->cols + col];
+ return 1;
+}
+
+int matrix_set(const Matrix* matrix, size_t row, size_t col, uint64_t n) {
+ if (matrix == NULL || matrix->data == NULL) {
+ return 0;
+ }
+ if (row >= matrix->rows || col >= matrix->cols) {
+ return 0;
+ }
+ matrix->data[row * matrix->cols + col] = n;
+ return 1;
+}
+
+void matrix_transpose(Matrix* matrix) {
+ if (matrix == NULL || matrix->data == NULL) {
+ return;
+ }
+
+ size_t len = matrix->rows * matrix->cols;
+ int* visited = (int*)malloc(len * sizeof(*visited));
+ if (visited == NULL) {
+ return;
+ }
+ memset(visited, 0, len * sizeof(*visited));
+
+ // Follow-the-cycles implementation of matrix transposition. Note that we
+ // skip the last element since it always has a cycle of length 1 and thus
+ // does not need to be moved.
+ size_t q = matrix->rows * matrix->cols - 1;
+ for (size_t i = 0; i < q; ++i) {
+ if (visited[i] == 1) {
+ continue;
+ }
+ size_t current_idx = i;
+ size_t next_idx = i;
+ do {
+ visited[current_idx] = 1;
+ next_idx = (current_idx * matrix->cols) % q;
+ if (next_idx == i) {
+ break;
+ }
+
+ uint64_t current_val = matrix->data[current_idx];
+ matrix->data[current_idx] = matrix->data[next_idx];
+ matrix->data[next_idx] = current_val;
+ current_idx = next_idx;
+ } while (1);
+ }
+
+ free(visited);
+ size_t cols = matrix->rows;
+ matrix->rows = matrix->cols;
+ matrix->cols = cols;
+}
+
+int matrix_equal(const Matrix* a, const Matrix* b) {
+ if (a == NULL || b == NULL || a->data == NULL || b->data == NULL) {
+ return 0;
+ }
+ if (a->rows != b->rows || a->cols != b->cols) {
+ return 0;
+ }
+ size_t len = a->rows * a->cols;
+ for (size_t i = 0; i < len; ++i) {
+ if (a->data[i] != b->data[i]) {
+ return 0;
+ }
+ }
+ return 1;
+}
+
+void matrix_free(Matrix* matrix) {
+ if (matrix == NULL) {
+ return;
+ }
+ if (matrix->data != NULL) {
+ free(matrix->data);
+ }
+ free(matrix);
+}
diff --git a/examples/ffi/rust_calling_c/c/matrix.h b/examples/ffi/rust_calling_c/c/matrix.h
new file mode 100644
index 0000000..40797a2
--- /dev/null
+++ b/examples/ffi/rust_calling_c/c/matrix.h
@@ -0,0 +1,48 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#ifndef MATRIX_SRC_MATRIX_H_
+#define MATRIX_SRC_MATRIX_H_
+
+#include <stdint.h>
+#include <stdlib.h>
+
+typedef struct {
+ size_t rows;
+ size_t cols;
+ uint64_t* data;
+} Matrix;
+
+// Constructs a new Matrix from the given data.
+// Matrix returned contains a copy of the data provided.
+Matrix* matrix_new(size_t rows, size_t cols, const uint64_t* data);
+
+// Fetches the value at the specified row and column.
+// Returns 1 if successful, 0 otherwise.
+int matrix_at(const Matrix* matrix, size_t row, size_t col, uint64_t* n);
+
+// Sets the value at the specified row and column.
+// Returns 1 if successful, 0 otherwise.
+int matrix_set(const Matrix* matrix, size_t row, size_t col, uint64_t n);
+
+// Performs an in-place transposition of the matrix.
+void matrix_transpose(Matrix* matrix);
+
+// Returns 1 if the two matrices are equal, 0 otherwise;
+int matrix_equal(const Matrix* a, const Matrix* b);
+
+// Frees the matrix.
+void matrix_free(Matrix* matrix);
+
+#endif // MATRIX_SRC_MATRIX_H_
diff --git a/examples/ffi/rust_calling_c/c/matrix_test.c b/examples/ffi/rust_calling_c/c/matrix_test.c
new file mode 100644
index 0000000..d7bb76b
--- /dev/null
+++ b/examples/ffi/rust_calling_c/c/matrix_test.c
@@ -0,0 +1,80 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "ffi/rust_calling_c/c/matrix.h"
+
+#include <assert.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+void matrix_print(const Matrix* m) {
+ for (size_t i = 0; i < m->rows; ++i) {
+ for (size_t j = 0; j < m->cols; ++j) {
+ uint64_t val = 0;
+ matrix_at(m, i, j, &val);
+ printf("%"PRIu64" ", val);
+ }
+ printf("\n");
+ }
+}
+
+int check_equal(const Matrix* a, const Matrix* b) {
+ int equal = matrix_equal(a, b);
+ if (!equal) {
+ printf("Matrices not equal:\n");
+ printf("a:\n");
+ matrix_print(a);
+ printf("\nb:\n");
+ matrix_print(b);
+ }
+ return equal;
+}
+
+void test_equal() {
+ static uint64_t a_data[] = {11, 12, 13, 14,
+ 21, 22, 23, 24};
+ Matrix* a = matrix_new(2, 4, a_data);
+ assert(a != NULL);
+ assert(check_equal(a, a));
+
+ static uint64_t b_data[] = {13, 14, 15, 16,
+ 22, 23, 24, 25};
+ Matrix* b = matrix_new(2, 4, b_data);
+ assert(b != NULL);
+ assert(!matrix_equal(a, b));
+}
+
+void test_transpose() {
+ static uint64_t matrix_data[] = {11, 12, 13, 14,
+ 21, 22, 23, 24};
+ Matrix* matrix = matrix_new(2, 4, matrix_data);
+ assert(matrix != NULL);
+ matrix_transpose(matrix);
+
+ static uint64_t expected_transpose_data[] = {11, 21,
+ 12, 22,
+ 13, 23,
+ 14, 24};
+ Matrix* expected_transpose = matrix_new(4, 2, expected_transpose_data);
+
+ assert(check_equal(expected_transpose, matrix));
+}
+
+int main(int argc, char** argv) {
+ test_equal();
+ test_transpose();
+ return EXIT_SUCCESS;
+}
diff --git a/examples/ffi/rust_calling_c/src/ffi.rs b/examples/ffi/rust_calling_c/src/ffi.rs
new file mode 100644
index 0000000..4aa6458
--- /dev/null
+++ b/examples/ffi/rust_calling_c/src/ffi.rs
@@ -0,0 +1,33 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+use libc::{c_int, size_t};
+
+#[repr(C)]
+#[derive(Clone, Copy)]
+pub struct Matrix {
+ pub rows: size_t,
+ pub cols: size_t,
+ pub data: *mut u64,
+}
+
+// #[link(name = "native_matrix")] // Don't need this, BUILD file manages linking already.
+extern "C" {
+ pub fn matrix_new(rows: size_t, cols: size_t, data: *const u64) -> *mut Matrix;
+ pub fn matrix_at(matrix: *const Matrix, row: size_t, col: size_t, n: *mut u64) -> c_int;
+ pub fn matrix_set(matrix: *const Matrix, row: size_t, col: size_t, n: u64) -> c_int;
+ pub fn matrix_transpose(matrix: *mut Matrix);
+ pub fn matrix_equal(a: *const Matrix, b: *const Matrix) -> c_int;
+ pub fn matrix_free(matrix: *mut Matrix);
+}
diff --git a/examples/ffi/rust_calling_c/src/matrix.rs b/examples/ffi/rust_calling_c/src/matrix.rs
new file mode 100644
index 0000000..9103179
--- /dev/null
+++ b/examples/ffi/rust_calling_c/src/matrix.rs
@@ -0,0 +1,139 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+extern crate libc;
+
+mod ffi;
+
+use std::ops;
+use std::ptr;
+
+/// Wrapper around pointer to FFI Matrix struct.
+pub struct Matrix {
+ matrix: *mut ffi::Matrix,
+}
+
+/// Wrapper around low-level FFI Matrix API.
+impl Matrix {
+ /// Constructs a new Matrix from the given data. Matrix returned contains a copy of the data
+ /// provided.
+ ///
+ /// # Panics
+ ///
+ /// If rows * cols does not equal data.len() or if matrix could not be allocated.
+ pub fn new(rows: usize, cols: usize, data: &[u64]) -> Matrix {
+ if data.len() != rows * cols {
+ panic!(
+ "rows * cols ({}) do not equal data.len() ({})",
+ rows * cols,
+ data.len()
+ );
+ }
+
+ let mut data_copy: Vec<u64> = vec![0; data.len()];
+ data_copy.clone_from_slice(data);
+ unsafe {
+ let matrix: *mut ffi::Matrix = ffi::matrix_new(rows, cols, data_copy.as_ptr());
+ if matrix.is_null() {
+ panic!("Failed to allocate Matrix.");
+ }
+ Matrix { matrix }
+ }
+ }
+
+ /// Fetches the value at the specified row and column.
+ pub fn at(&self, row: usize, col: usize) -> Option<u64> {
+ let mut n: u64 = 0;
+ unsafe {
+ if ffi::matrix_at(self.matrix, row, col, &mut n) == 0 {
+ return None;
+ }
+ }
+ Some(n)
+ }
+
+ /// Sets the value at the specified row and column.
+ ///
+ /// # Panics
+ ///
+ /// If row, col is out of bounds.
+ pub fn set(&mut self, row: usize, col: usize, n: u64) {
+ unsafe {
+ if ffi::matrix_set(self.matrix, row, col, n) == 0 {
+ panic!("Row {}, col {} is out of bounds.", row, col);
+ }
+ }
+ }
+
+ /// Returns the number of rows of the matrix.
+ pub fn rows(&self) -> usize {
+ unsafe { (*self.matrix).rows }
+ }
+
+ /// Returns the number of cols of the matrix.
+ pub fn cols(&self) -> usize {
+ unsafe { (*self.matrix).cols }
+ }
+
+ /// Performs an in-place transposition of the matrix.
+ pub fn transpose(&mut self) {
+ unsafe {
+ ffi::matrix_transpose(self.matrix);
+ }
+ }
+
+ /// Checks whether the matrix is equal to the provided Matrix.
+ pub fn equal(&self, other: &Matrix) -> bool {
+ unsafe { ffi::matrix_equal(self.matrix, other.matrix) != 0 }
+ }
+}
+
+impl ops::Drop for Matrix {
+ fn drop(&mut self) {
+ unsafe {
+ ffi::matrix_free(self.matrix);
+ }
+ self.matrix = ptr::null_mut();
+ }
+}
+
+#[cfg(test)]
+mod test {
+ use super::Matrix;
+
+ #[test]
+ fn test_size() {
+ let matrix = Matrix::new(2, 4, &[11, 12, 13, 14, 21, 22, 23, 24]);
+ assert_eq!(2, matrix.rows());
+ assert_eq!(4, matrix.cols());
+ }
+
+ #[test]
+ fn test_equal() {
+ let matrix_a = Matrix::new(2, 4, &[11, 12, 13, 14, 21, 22, 23, 24]);
+ let matrix_b = Matrix::new(2, 4, &[11, 12, 13, 14, 21, 22, 23, 24]);
+ assert!(matrix_a.equal(&matrix_b));
+
+ let matrix_c = Matrix::new(2, 4, &[12, 13, 14, 15, 23, 24, 25, 26]);
+ assert!(!matrix_a.equal(&matrix_c));
+ }
+
+ #[test]
+ fn test_transpose() {
+ let mut matrix = Matrix::new(2, 4, &[11, 12, 13, 14, 21, 22, 23, 24]);
+ matrix.transpose();
+ let expected = Matrix::new(4, 2, &[11, 21, 12, 22, 13, 23, 14, 24]);
+ assert!(matrix.equal(&expected));
+ }
+}
diff --git a/examples/fibonacci/BUILD.bazel b/examples/fibonacci/BUILD.bazel
new file mode 100644
index 0000000..87ff5c3
--- /dev/null
+++ b/examples/fibonacci/BUILD.bazel
@@ -0,0 +1,21 @@
+load("@rules_rust//rust:defs.bzl", "rust_doc", "rust_doc_test", "rust_library", "rust_test")
+
+rust_library(
+ name = "fibonacci",
+ srcs = ["src/lib.rs"],
+)
+
+rust_test(
+ name = "fibonacci_test",
+ crate = ":fibonacci",
+)
+
+rust_doc(
+ name = "fibonacci_doc",
+ crate = ":fibonacci",
+)
+
+rust_doc_test(
+ name = "fibonacci_doc_test",
+ crate = ":fibonacci",
+)
diff --git a/examples/fibonacci/benches/fibonacci_bench.rs b/examples/fibonacci/benches/fibonacci_bench.rs
new file mode 100644
index 0000000..4a8b721
--- /dev/null
+++ b/examples/fibonacci/benches/fibonacci_bench.rs
@@ -0,0 +1,25 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#![feature(test)]
+
+extern crate fibonacci;
+extern crate test;
+
+use test::Bencher;
+
+#[bench]
+fn bench_fibonacci(b: &mut Bencher) {
+ b.iter(|| fibonacci::fibonacci(40));
+}
diff --git a/examples/fibonacci/src/lib.rs b/examples/fibonacci/src/lib.rs
new file mode 100644
index 0000000..9645417
--- /dev/null
+++ b/examples/fibonacci/src/lib.rs
@@ -0,0 +1,47 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/// Returns the nth Fibonacci number.
+///
+/// # Examples
+///
+/// ```
+/// assert_eq!(fibonacci::fibonacci(5), 5)
+/// ```
+pub fn fibonacci(n: u64) -> u64 {
+ if n < 2 {
+ return n;
+ }
+ let mut n1: u64 = 0;
+ let mut n2: u64 = 1;
+ for _ in 1..n {
+ let sum = n1 + n2;
+ n1 = n2;
+ n2 = sum;
+ }
+ n2
+}
+
+#[cfg(test)]
+mod test {
+ use super::fibonacci;
+
+ #[test]
+ fn test_fibonacci() {
+ let numbers: Vec<u64> = vec![0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
+ for (i, number) in numbers.iter().enumerate() {
+ assert_eq!(*number, fibonacci(i as u64));
+ }
+ }
+}
diff --git a/examples/flag_locations/BUILD.bazel b/examples/flag_locations/BUILD.bazel
new file mode 100644
index 0000000..fdc92ed
--- /dev/null
+++ b/examples/flag_locations/BUILD.bazel
@@ -0,0 +1,20 @@
+load("@rules_rust//rust:defs.bzl", "rust_test")
+
+# generate a file containing cfg flags
+genrule(
+ name = "flag_generator",
+ outs = ["generated_flag.data"],
+ cmd = "echo --cfg=test_flag > $@",
+)
+
+rust_test(
+ name = "test",
+ srcs = [
+ "main.rs",
+ ],
+ data = [":flag_generator"],
+ edition = "2018",
+ rustc_flags = [
+ "@$(location :flag_generator)",
+ ],
+)
diff --git a/examples/flag_locations/main.rs b/examples/flag_locations/main.rs
new file mode 100644
index 0000000..cee1077
--- /dev/null
+++ b/examples/flag_locations/main.rs
@@ -0,0 +1,9 @@
+#[test]
+fn test() {
+ // we should be able to read rustc args from a generated file
+ if cfg!(test_flag) {
+ return;
+ }
+
+ unreachable!();
+}
diff --git a/examples/hello_lib/BUILD.bazel b/examples/hello_lib/BUILD.bazel
new file mode 100644
index 0000000..e8fb6f6
--- /dev/null
+++ b/examples/hello_lib/BUILD.bazel
@@ -0,0 +1,73 @@
+load("@rules_rust//rust:defs.bzl", "rust_analyzer", "rust_doc", "rust_doc_test", "rust_library", "rust_shared_library", "rust_static_library", "rust_test")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_library(
+ name = "hello_lib",
+ srcs = [
+ "src/greeter.rs",
+ "src/lib.rs",
+ ],
+ crate_features = ["default"],
+ rustc_flags = ["--cap-lints=allow"],
+)
+
+rust_shared_library(
+ name = "hello_cdylib",
+ srcs = [
+ "src/greeter.rs",
+ "src/lib.rs",
+ ],
+)
+
+rust_static_library(
+ name = "hello_staticlib",
+ srcs = [
+ "src/greeter.rs",
+ "src/lib.rs",
+ ],
+)
+
+# Regression test for #368: static lib with dependencies fail.
+rust_static_library(
+ name = "hello_test_staticlib",
+ srcs = [
+ "tests/greeting.rs",
+ ],
+ deps = [":hello_lib"],
+)
+
+# Regression test for #368: cdylib lib with dependencies fail.
+rust_shared_library(
+ name = "hello_test_cdylib",
+ srcs = [
+ "tests/greeting.rs",
+ ],
+ deps = [":hello_lib"],
+)
+
+rust_test(
+ name = "hello-lib-test",
+ crate = ":hello_lib",
+)
+
+rust_test(
+ name = "greeting_test",
+ srcs = ["tests/greeting.rs"],
+ deps = [":hello_lib"],
+)
+
+rust_doc(
+ name = "hello_lib_doc",
+ crate = ":hello_lib",
+)
+
+rust_doc_test(
+ name = "hello_lib_doc_test",
+ crate = ":hello_lib",
+)
+
+rust_analyzer(
+ name = "hello_rust_analyzer",
+ targets = [":hello_lib"],
+)
diff --git a/examples/hello_lib/src/greeter.rs b/examples/hello_lib/src/greeter.rs
new file mode 100644
index 0000000..4a90415
--- /dev/null
+++ b/examples/hello_lib/src/greeter.rs
@@ -0,0 +1,75 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/// Object that displays a greeting.
+pub struct Greeter {
+ greeting: String,
+}
+
+/// Implementation of Greeter.
+impl Greeter {
+ /// Constructs a new `Greeter`.
+ ///
+ /// # Examples
+ ///
+ /// ```
+ /// use hello_lib::greeter::Greeter;
+ ///
+ /// let greeter = Greeter::new("Hello");
+ /// ```
+ pub fn new(greeting: &str) -> Greeter {
+ Greeter {
+ greeting: greeting.to_string(),
+ }
+ }
+
+ /// Returns the greeting as a string.
+ ///
+ /// # Examples
+ ///
+ /// ```
+ /// use hello_lib::greeter::Greeter;
+ ///
+ /// let greeter = Greeter::new("Hello");
+ /// let greeting = greeter.greeting("World");
+ /// ```
+ pub fn greeting(&self, thing: &str) -> String {
+ format!("{} {}", &self.greeting, thing)
+ }
+
+ /// Prints the greeting.
+ ///
+ /// # Examples
+ ///
+ /// ```
+ /// use hello_lib::greeter::Greeter;
+ ///
+ /// let greeter = Greeter::new("Hello");
+ /// greeter.greet("World");
+ /// ```
+ pub fn greet(&self, thing: &str) {
+ println!("{} {}", &self.greeting, thing);
+ }
+}
+
+#[cfg(test)]
+mod test {
+ use super::Greeter;
+
+ #[test]
+ fn test_greeting() {
+ let hello = Greeter::new("Hi");
+ assert_eq!("Hi Rust", hello.greeting("Rust"));
+ }
+}
diff --git a/examples/hello_lib/src/lib.rs b/examples/hello_lib/src/lib.rs
new file mode 100644
index 0000000..9dc6089
--- /dev/null
+++ b/examples/hello_lib/src/lib.rs
@@ -0,0 +1,15 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+pub mod greeter;
diff --git a/examples/hello_lib/tests/greeting.rs b/examples/hello_lib/tests/greeting.rs
new file mode 100644
index 0000000..6084d13
--- /dev/null
+++ b/examples/hello_lib/tests/greeting.rs
@@ -0,0 +1,27 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+extern crate hello_lib;
+
+// test gate is not usually required in an integration test, but the BUILD
+// script is using this file to test cdylib compilation as well, and when
+// compiled in that mode, greeter is an unused import.
+#[cfg(test)]
+use hello_lib::greeter;
+
+#[test]
+fn test_greeting() {
+ let hello = greeter::Greeter::new("Hello");
+ assert_eq!("Hello world", hello.greeting("world"));
+}
diff --git a/examples/hello_runfiles/BUILD.bazel b/examples/hello_runfiles/BUILD.bazel
new file mode 100644
index 0000000..64a6c13
--- /dev/null
+++ b/examples/hello_runfiles/BUILD.bazel
@@ -0,0 +1,25 @@
+# Copyright 2020 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "hello_runfiles",
+ srcs = ["hello_runfiles.rs"],
+ data = ["hello_runfiles.rs"], # Yes, we're being cute.
+ edition = "2018",
+ deps = ["@rules_rust//tools/runfiles"],
+)
diff --git a/examples/hello_runfiles/hello_runfiles.rs b/examples/hello_runfiles/hello_runfiles.rs
new file mode 100644
index 0000000..b8a5e45
--- /dev/null
+++ b/examples/hello_runfiles/hello_runfiles.rs
@@ -0,0 +1,15 @@
+use std::fs::File;
+use std::io::prelude::*;
+
+use runfiles::Runfiles;
+
+fn main() {
+ let r = Runfiles::create().unwrap();
+
+ let mut f = File::open(r.rlocation("examples/hello_runfiles/hello_runfiles.rs")).unwrap();
+
+ let mut buffer = String::new();
+ f.read_to_string(&mut buffer).unwrap();
+
+ println!("This program's source is {} characters long.", buffer.len());
+}
diff --git a/examples/hello_world/BUILD.bazel b/examples/hello_world/BUILD.bazel
new file mode 100644
index 0000000..8de8278
--- /dev/null
+++ b/examples/hello_world/BUILD.bazel
@@ -0,0 +1,14 @@
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_doc")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "hello_world",
+ srcs = ["src/main.rs"],
+ deps = ["@examples//hello_lib"],
+)
+
+rust_doc(
+ name = "hello_world_doc",
+ crate = ":hello_world",
+)
diff --git a/examples/hello_world/src/main.rs b/examples/hello_world/src/main.rs
new file mode 100644
index 0000000..03cf43f
--- /dev/null
+++ b/examples/hello_world/src/main.rs
@@ -0,0 +1,22 @@
+// Copyright 2015 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+extern crate hello_lib;
+
+use hello_lib::greeter;
+
+fn main() {
+ let hello = greeter::Greeter::new("Hello");
+ hello.greet("world");
+}
diff --git a/examples/per_platform_printer/BUILD.bazel b/examples/per_platform_printer/BUILD.bazel
new file mode 100644
index 0000000..77b36e4
--- /dev/null
+++ b/examples/per_platform_printer/BUILD.bazel
@@ -0,0 +1,41 @@
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "print",
+ srcs = ["main.rs"],
+ deps = [
+ ":printer",
+ ],
+)
+
+rust_library(
+ name = "printer",
+ srcs = [
+ "lib.rs",
+ "print_generic.rs",
+ ] + select({
+ "@rules_rust//rust/platform:linux": [
+ ":print_linux.rs",
+ ],
+ "@rules_rust//rust/platform:macos": [
+ ":print_macos.rs",
+ ],
+ "@rules_rust//rust/platform:windows": [
+ ":print_windows.rs",
+ ],
+ }),
+ # Because each os specific file is conditionally added to the target,
+ # rustfmt does not have all sources to complete formatting. To avoid
+ # this failure, rustfmt is not run on this target
+ tags = ["norustfmt"],
+)
+
+rust_test(
+ name = "printer_test",
+ crate = ":printer",
+ # The same rational used for `printer` applies here. Do not run rustfmt
+ # since not all sources are available.
+ tags = ["norustfmt"],
+)
diff --git a/examples/per_platform_printer/lib.rs b/examples/per_platform_printer/lib.rs
new file mode 100644
index 0000000..3ae5ee7
--- /dev/null
+++ b/examples/per_platform_printer/lib.rs
@@ -0,0 +1,48 @@
+mod print_generic;
+
+#[cfg(target_os = "linux")]
+mod print_linux;
+
+#[cfg(target_os = "macos")]
+mod print_macos;
+
+#[cfg(target_os = "windows")]
+mod print_windows;
+
+#[cfg(target_os = "linux")]
+pub fn print() -> Vec<String> {
+ vec![print_generic::print(), print_linux::print()]
+}
+
+#[cfg(target_os = "macos")]
+pub fn print() -> Vec<String> {
+ vec![print_generic::print(), print_macos::print()]
+}
+
+#[cfg(target_os = "windows")]
+pub fn print() -> Vec<String> {
+ vec![print_generic::print(), print_windows::print()]
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn prints_correctly() {
+ let outs = print();
+
+ assert_eq!(
+ outs,
+ vec![
+ "Hello Generic!",
+ #[cfg(target_os = "linux")]
+ "Hello Linux!",
+ #[cfg(target_os = "macos")]
+ "Hello MacOS!",
+ #[cfg(target_os = "windows")]
+ "Hello Windows!",
+ ]
+ );
+ }
+}
diff --git a/examples/per_platform_printer/main.rs b/examples/per_platform_printer/main.rs
new file mode 100644
index 0000000..53e58cb
--- /dev/null
+++ b/examples/per_platform_printer/main.rs
@@ -0,0 +1,5 @@
+extern crate printer;
+
+fn main() {
+ printer::print();
+}
diff --git a/examples/per_platform_printer/print_generic.rs b/examples/per_platform_printer/print_generic.rs
new file mode 100644
index 0000000..1144b59
--- /dev/null
+++ b/examples/per_platform_printer/print_generic.rs
@@ -0,0 +1,3 @@
+pub fn print() -> String {
+ "Hello Generic!".to_owned()
+}
diff --git a/examples/per_platform_printer/print_linux.rs b/examples/per_platform_printer/print_linux.rs
new file mode 100644
index 0000000..d1740bd
--- /dev/null
+++ b/examples/per_platform_printer/print_linux.rs
@@ -0,0 +1,3 @@
+pub fn print() -> String {
+ "Hello Linux!".to_owned()
+}
diff --git a/examples/per_platform_printer/print_macos.rs b/examples/per_platform_printer/print_macos.rs
new file mode 100644
index 0000000..965f787
--- /dev/null
+++ b/examples/per_platform_printer/print_macos.rs
@@ -0,0 +1,3 @@
+pub fn print() -> String {
+ "Hello MacOS!".to_owned()
+}
diff --git a/examples/per_platform_printer/print_windows.rs b/examples/per_platform_printer/print_windows.rs
new file mode 100644
index 0000000..b857dcb
--- /dev/null
+++ b/examples/per_platform_printer/print_windows.rs
@@ -0,0 +1,3 @@
+pub fn print() -> String {
+ "Hello Windows!".to_owned()
+}
diff --git a/examples/proc_macro/BUILD.bazel b/examples/proc_macro/BUILD.bazel
new file mode 100644
index 0000000..2f49c4d
--- /dev/null
+++ b/examples/proc_macro/BUILD.bazel
@@ -0,0 +1,47 @@
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_doc",
+ "rust_doc_test",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = ["//visibility:public"])
+
+rust_proc_macro(
+ name = "proc_macro_lib_2015",
+ srcs = [
+ "src/lib_2015.rs",
+ ],
+)
+
+rust_proc_macro(
+ name = "proc_macro_lib",
+ srcs = [
+ "src/lib.rs",
+ ],
+ edition = "2018",
+)
+
+rust_test(
+ name = "proc_macro_test",
+ crate = ":proc_macro_lib",
+ edition = "2018",
+)
+
+rust_test(
+ name = "greeting_test",
+ srcs = ["tests/greeting.rs"],
+ edition = "2018",
+ proc_macro_deps = [":proc_macro_lib"],
+)
+
+rust_doc(
+ name = "proc_macro_lib_doc",
+ crate = ":proc_macro_lib",
+)
+
+rust_doc_test(
+ name = "doc_test",
+ crate = ":proc_macro_lib",
+)
diff --git a/examples/proc_macro/src/lib.rs b/examples/proc_macro/src/lib.rs
new file mode 100644
index 0000000..87b9d47
--- /dev/null
+++ b/examples/proc_macro/src/lib.rs
@@ -0,0 +1,25 @@
+// Copyright 2020 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This differs from the edition 2015 version because it does not have an `extern proc_macro`
+// statement, which became optional in edition 2018.
+
+use proc_macro::TokenStream;
+
+/// This macro is a no-op; it is exceedingly simple as a result
+/// of avoiding dependencies on both the syn and quote crates.
+#[proc_macro_derive(HelloWorld)]
+pub fn hello_world(_input: TokenStream) -> TokenStream {
+ TokenStream::new()
+}
diff --git a/examples/proc_macro/src/lib_2015.rs b/examples/proc_macro/src/lib_2015.rs
new file mode 100644
index 0000000..b74e5c5
--- /dev/null
+++ b/examples/proc_macro/src/lib_2015.rs
@@ -0,0 +1,24 @@
+// Copyright 2020 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+extern crate proc_macro;
+
+use proc_macro::TokenStream;
+
+/// This macro is a no-op; it is exceedingly simple as a result
+/// of avoiding dependencies on both the syn and quote crates.
+#[proc_macro_derive(HelloWorld)]
+pub fn hello_world(_input: TokenStream) -> TokenStream {
+ TokenStream::new()
+}
diff --git a/examples/proc_macro/tests/greeting.rs b/examples/proc_macro/tests/greeting.rs
new file mode 100644
index 0000000..e58b639
--- /dev/null
+++ b/examples/proc_macro/tests/greeting.rs
@@ -0,0 +1,23 @@
+// Copyright 2020 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+use proc_macro_lib::HelloWorld;
+
+#[derive(HelloWorld)]
+struct TestStruct {}
+
+#[test]
+fn test_hello_world_macro() {
+ let _ = TestStruct {};
+}
diff --git a/examples/proto/BUILD.bazel b/examples/proto/BUILD.bazel
new file mode 100644
index 0000000..9ddf0e3
--- /dev/null
+++ b/examples/proto/BUILD.bazel
@@ -0,0 +1,8 @@
+load("@rules_proto//proto:defs.bzl", "proto_library")
+
+package(default_visibility = ["//proto:__subpackages__"])
+
+proto_library(
+ name = "common",
+ srcs = ["common.proto"],
+)
diff --git a/examples/proto/basic/BUILD.bazel b/examples/proto/basic/BUILD.bazel
new file mode 100644
index 0000000..9853a2e
--- /dev/null
+++ b/examples/proto/basic/BUILD.bazel
@@ -0,0 +1,24 @@
+load("@rules_rust//proto:proto.bzl", "rust_proto_library")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
+
+package(default_visibility = ["//proto:__subpackages__"])
+
+rust_proto_library(
+ name = "common_proto_rust",
+ deps = ["//proto:common"],
+)
+
+rust_library(
+ name = "common_lib",
+ srcs = ["lib.rs"],
+ deps = [":common_proto_rust"],
+)
+
+rust_binary(
+ name = "common_bin",
+ srcs = ["main.rs"],
+ deps = [
+ ":common_lib",
+ ":common_proto_rust",
+ ],
+)
diff --git a/examples/proto/basic/lib.rs b/examples/proto/basic/lib.rs
new file mode 100644
index 0000000..2146b3c
--- /dev/null
+++ b/examples/proto/basic/lib.rs
@@ -0,0 +1,5 @@
+extern crate common_proto_rust;
+
+pub fn do_something(_x: &common_proto_rust::Config) -> bool {
+ true
+}
diff --git a/examples/proto/basic/main.rs b/examples/proto/basic/main.rs
new file mode 100644
index 0000000..12ed82f
--- /dev/null
+++ b/examples/proto/basic/main.rs
@@ -0,0 +1,6 @@
+extern crate common_lib;
+extern crate common_proto_rust;
+
+pub fn main() {
+ common_lib::do_something(&common_proto_rust::Config::new());
+}
diff --git a/examples/proto/common.proto b/examples/proto/common.proto
new file mode 100644
index 0000000..56bac18
--- /dev/null
+++ b/examples/proto/common.proto
@@ -0,0 +1,13 @@
+syntax = "proto3";
+
+option java_package = "org.pubref.rules_protobuf.examples";
+option java_outer_classname = "CommonProto";
+
+package common;
+
+// A configuration object. This is used to test the viability of
+// protobuf imports.
+message Config {
+ bool verbose = 1;
+}
+
diff --git a/examples/proto/helloworld/BUILD.bazel b/examples/proto/helloworld/BUILD.bazel
new file mode 100644
index 0000000..db30a9d
--- /dev/null
+++ b/examples/proto/helloworld/BUILD.bazel
@@ -0,0 +1,25 @@
+load("@rules_proto//proto:defs.bzl", "proto_library")
+load("@rules_rust//proto:proto.bzl", "rust_grpc_library")
+load("@rules_rust//rust:defs.bzl", "rust_test")
+
+proto_library(
+ name = "helloworld",
+ srcs = ["helloworld.proto"],
+ deps = ["//proto:common"],
+)
+
+rust_grpc_library(
+ name = "helloworld_proto",
+ visibility = ["//proto/helloworld:__subpackages__"],
+ deps = [":helloworld"],
+)
+
+rust_test(
+ name = "helloworld_test",
+ srcs = ["helloworld_test.rs"],
+ data = [
+ "//proto/helloworld/greeter_client",
+ "//proto/helloworld/greeter_server",
+ ],
+ deps = ["@rules_rust//tools/runfiles"],
+)
diff --git a/examples/proto/helloworld/greeter_client/BUILD.bazel b/examples/proto/helloworld/greeter_client/BUILD.bazel
new file mode 100644
index 0000000..b35435e
--- /dev/null
+++ b/examples/proto/helloworld/greeter_client/BUILD.bazel
@@ -0,0 +1,11 @@
+load("@rules_rust//proto:toolchain.bzl", "GRPC_COMPILE_DEPS")
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+rust_binary(
+ name = "greeter_client",
+ srcs = ["greeter_client.rs"],
+ visibility = ["//proto/helloworld:__subpackages__"],
+ deps = [
+ "//proto/helloworld:helloworld_proto",
+ ] + GRPC_COMPILE_DEPS,
+)
diff --git a/examples/proto/helloworld/greeter_client/greeter_client.rs b/examples/proto/helloworld/greeter_client/greeter_client.rs
new file mode 100644
index 0000000..ade62eb
--- /dev/null
+++ b/examples/proto/helloworld/greeter_client/greeter_client.rs
@@ -0,0 +1,44 @@
+// Copyright 2018 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+extern crate grpc;
+extern crate helloworld_proto;
+
+use grpc::ClientStubExt;
+use std::env;
+use std::str::FromStr;
+
+use helloworld_proto::*;
+
+fn parse_args() -> (String, u16) {
+ let mut name = "world".to_owned();
+ let mut port = 50051;
+ for arg in env::args().skip(1) {
+ if let Some(argp) = arg.strip_prefix("-p=") {
+ port = u16::from_str(argp).unwrap()
+ } else {
+ name = arg.to_owned();
+ }
+ }
+ (name, port)
+}
+
+fn main() {
+ let (name, port) = parse_args();
+ let client = GreeterClient::new_plain("::1", port, Default::default()).unwrap();
+ let mut req = HelloRequest::new();
+ req.set_name(name);
+ let resp = client.say_hello(grpc::RequestOptions::new(), req);
+ println!("{:?}", resp.wait());
+}
diff --git a/examples/proto/helloworld/greeter_server/BUILD.bazel b/examples/proto/helloworld/greeter_server/BUILD.bazel
new file mode 100644
index 0000000..616ecb5
--- /dev/null
+++ b/examples/proto/helloworld/greeter_server/BUILD.bazel
@@ -0,0 +1,11 @@
+load("@rules_rust//proto:toolchain.bzl", "GRPC_COMPILE_DEPS")
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+rust_binary(
+ name = "greeter_server",
+ srcs = ["greeter_server.rs"],
+ visibility = ["//proto/helloworld:__subpackages__"],
+ deps = [
+ "//proto/helloworld:helloworld_proto",
+ ] + GRPC_COMPILE_DEPS,
+)
diff --git a/examples/proto/helloworld/greeter_server/greeter_server.rs b/examples/proto/helloworld/greeter_server/greeter_server.rs
new file mode 100644
index 0000000..17a09a1
--- /dev/null
+++ b/examples/proto/helloworld/greeter_server/greeter_server.rs
@@ -0,0 +1,58 @@
+// Copyright 2018 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+extern crate grpc;
+extern crate helloworld_proto;
+extern crate tls_api_stub;
+
+use std::env;
+use std::str::FromStr;
+use std::thread;
+
+use helloworld_proto::*;
+
+struct GreeterImpl;
+
+impl Greeter for GreeterImpl {
+ fn say_hello(
+ &self,
+ _m: grpc::RequestOptions,
+ req: HelloRequest,
+ ) -> grpc::SingleResponse<HelloReply> {
+ let mut r = HelloReply::new();
+ let name = if req.get_name().is_empty() {
+ "world"
+ } else {
+ req.get_name()
+ };
+ println!("greeting request from {}", name);
+ r.set_message(format!("Hello {}", name));
+ grpc::SingleResponse::completed(r)
+ }
+}
+
+fn main() {
+ let mut server = grpc::ServerBuilder::<tls_api_stub::TlsAcceptor>::new();
+ let port = u16::from_str(&env::args().nth(1).unwrap_or_else(|| "50051".to_owned())).unwrap();
+ server.http.set_port(port);
+ server.add_service(GreeterServer::new_service_def(GreeterImpl));
+ server.http.set_cpu_pool_threads(4);
+ let server = server.build().expect("server");
+ let port = server.local_addr().port().unwrap();
+ println!("greeter server started on port {}", port);
+
+ loop {
+ thread::park();
+ }
+}
diff --git a/examples/proto/helloworld/helloworld.proto b/examples/proto/helloworld/helloworld.proto
new file mode 100644
index 0000000..e0c7598
--- /dev/null
+++ b/examples/proto/helloworld/helloworld.proto
@@ -0,0 +1,23 @@
+
+syntax = "proto3";
+
+import "proto/common.proto";
+
+package helloworld;
+
+// The greeting service definition.
+service Greeter {
+ // Sends a greeting
+ rpc SayHello (HelloRequest) returns (HelloReply) {}
+}
+
+// The request message containing the user's name.
+message HelloRequest {
+ string name = 1;
+ common.Config config = 2;
+}
+
+// The response message containing the greetings
+message HelloReply {
+ string message = 1;
+}
diff --git a/examples/proto/helloworld/helloworld_test.rs b/examples/proto/helloworld/helloworld_test.rs
new file mode 100644
index 0000000..c82e474
--- /dev/null
+++ b/examples/proto/helloworld/helloworld_test.rs
@@ -0,0 +1,109 @@
+// Copyright 2018 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Integration tests for the greeter client/server
+extern crate runfiles;
+
+use std::io::BufRead;
+use std::io::BufReader;
+use std::process::{Child, Command, Stdio};
+use std::str::FromStr;
+
+use runfiles::Runfiles;
+
+struct ServerInfo {
+ process: Child,
+ port: u16,
+}
+
+macro_rules! assert_contains {
+ ($s: expr, $e: expr) => {
+ assert!($s.find($e).is_some());
+ };
+}
+
+impl ServerInfo {
+ fn new() -> ServerInfo {
+ let r = Runfiles::create().unwrap();
+ let mut c =
+ Command::new(r.rlocation("examples/proto/helloworld/greeter_server/greeter_server"))
+ .arg("0")
+ .stdout(Stdio::piped())
+ .spawn()
+ .expect("Unable to start server");
+ let mut port: u16 = 0;
+ {
+ let mut stdout = BufReader::new(c.stdout.as_mut().expect("Failed to open stdout"));
+ let port_prefix = "greeter server started on port ";
+ while port == 0 {
+ let mut line = String::new();
+ stdout
+ .read_line(&mut line)
+ .expect("Waiting for server startup");
+ line = line.trim().to_owned();
+ if let Some(argp) = line.strip_prefix(port_prefix) {
+ port = u16::from_str(argp)
+ .unwrap_or_else(|_| panic!("Invalid port number {}", argp))
+ }
+ }
+ }
+ println!("Started server on port {}", port);
+ ServerInfo { process: c, port }
+ }
+
+ fn run_client_impl(&self, arg: Option<String>) -> String {
+ let r = Runfiles::create().unwrap();
+
+ let mut cmd0 =
+ Command::new(r.rlocation("examples/proto/helloworld/greeter_client/greeter_client"));
+ let cmd = cmd0.arg(format!("-p={}", self.port));
+
+ let output = if let Some(s) = arg { cmd.arg(s) } else { cmd }
+ .output()
+ .expect("Unable to start client");
+ assert!(output.status.success());
+ String::from_utf8(output.stdout).expect("Non UTF-8 output from the client")
+ }
+
+ fn run_client(&self) -> String {
+ self.run_client_impl(None)
+ }
+ fn run_client_with_arg(&self, arg: &str) -> String {
+ self.run_client_impl(Some(arg.to_owned()))
+ }
+
+ fn expect_log(&mut self, log: &str) {
+ let mut reader =
+ BufReader::new(self.process.stdout.as_mut().expect("Failed to open stdout"));
+ let mut line = String::new();
+ reader
+ .read_line(&mut line)
+ .expect("Failed to read line from the server");
+ assert_contains!(line, log);
+ }
+
+ fn destroy(&mut self) {
+ self.process.kill().unwrap();
+ }
+}
+
+#[test]
+fn test_client_server() {
+ let mut s = ServerInfo::new();
+ assert_contains!(s.run_client(), "message: \"Hello world\"");
+ s.expect_log("greeting request from world");
+ assert_contains!(s.run_client_with_arg("thou"), "message: \"Hello thou\"");
+ s.expect_log("greeting request from thou");
+ s.destroy();
+}
diff --git a/examples/sys/BUILD.bazel b/examples/sys/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/sys/BUILD.bazel
diff --git a/examples/sys/basic/BUILD.bazel b/examples/sys/basic/BUILD.bazel
new file mode 100644
index 0000000..142aa89
--- /dev/null
+++ b/examples/sys/basic/BUILD.bazel
@@ -0,0 +1,33 @@
+# Copyright 2020 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "hello_sys",
+ srcs = ["src/main.rs"],
+ edition = "2018",
+ # Note the `cargo-raze` dependencies here need to have been loaded
+ # in the WORKSPACE file. See `//sys:sys_deps.bzl` for rmore details.
+ deps = ["//sys/basic/raze:bzip2"],
+)
+
+sh_test(
+ name = "test",
+ srcs = ["test.sh"],
+ args = ["$(location :hello_sys)"],
+ data = [":hello_sys"],
+)
diff --git a/examples/sys/basic/Cargo.lock b/examples/sys/basic/Cargo.lock
new file mode 100644
index 0000000..7a14e37
--- /dev/null
+++ b/examples/sys/basic/Cargo.lock
@@ -0,0 +1,47 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+[[package]]
+name = "bzip2"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42b7c3cbf0fa9c1b82308d57191728ca0256cb821220f4e2fd410a72ade26e3b"
+dependencies = [
+ "bzip2-sys",
+ "libc",
+]
+
+[[package]]
+name = "bzip2-sys"
+version = "0.1.9+1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad3b39a260062fca31f7b0b12f207e8f2590a67d32ec7d59c20484b07ea7285e"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "cc"
+version = "1.0.60"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"
+
+[[package]]
+name = "libc"
+version = "0.2.77"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235"
+
+[[package]]
+name = "pkg-config"
+version = "0.3.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33"
+
+[[package]]
+name = "rules_rust_examples_basic_sys"
+version = "0.0.1"
+dependencies = [
+ "bzip2",
+]
diff --git a/examples/sys/basic/Cargo.toml b/examples/sys/basic/Cargo.toml
new file mode 100644
index 0000000..61b97fc
--- /dev/null
+++ b/examples/sys/basic/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+name = "rules_rust_examples_basic_sys"
+version = "0.0.1"
+
+[[bin]]
+name = "rules_rust_examples_basic_sys"
+path = "src/main.rs"
+
+[dependencies]
+bzip2 = "=0.3.3"
+
+[package.metadata.raze]
+workspace_path = "//sys/basic/raze"
+genmode = "Remote"
+gen_workspace_prefix = "basic_sys"
+rust_rules_workspace_name = "rules_rust"
+package_aliases_dir = "raze"
+default_gen_buildrs = false
+
+[package.metadata.raze.crates.bzip2-sys.'0.1.9+1.0.8']
+gen_buildrs = true
diff --git a/examples/sys/basic/raze/BUILD.bazel b/examples/sys/basic/raze/BUILD.bazel
new file mode 100644
index 0000000..ade3349
--- /dev/null
+++ b/examples/sys/basic/raze/BUILD.bazel
@@ -0,0 +1,30 @@
+"""
+@generated
+cargo-raze generated Bazel file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+package(default_visibility = ["//visibility:public"])
+
+licenses([
+ "notice", # See individual crates for specific licenses
+])
+
+# Aliased targets
+alias(
+ name = "bzip2",
+ actual = "@basic_sys__bzip2__0_3_3//:bzip2",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+# Export file for Stardoc support
+exports_files(
+ [
+ "crates.bzl",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/sys/basic/raze/crates.bzl b/examples/sys/basic/raze/crates.bzl
new file mode 100644
index 0000000..beacc3e
--- /dev/null
+++ b/examples/sys/basic/raze/crates.bzl
@@ -0,0 +1,62 @@
+"""
+@generated
+cargo-raze generated Bazel file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load
+
+def basic_sys_fetch_remote_crates():
+ """This function defines a collection of repos and should be called in a WORKSPACE file"""
+ maybe(
+ http_archive,
+ name = "basic_sys__bzip2__0_3_3",
+ url = "https://crates.io/api/v1/crates/bzip2/0.3.3/download",
+ type = "tar.gz",
+ sha256 = "42b7c3cbf0fa9c1b82308d57191728ca0256cb821220f4e2fd410a72ade26e3b",
+ strip_prefix = "bzip2-0.3.3",
+ build_file = Label("//sys/basic/raze/remote:BUILD.bzip2-0.3.3.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "basic_sys__bzip2_sys__0_1_9_1_0_8",
+ url = "https://crates.io/api/v1/crates/bzip2-sys/0.1.9+1.0.8/download",
+ type = "tar.gz",
+ sha256 = "ad3b39a260062fca31f7b0b12f207e8f2590a67d32ec7d59c20484b07ea7285e",
+ strip_prefix = "bzip2-sys-0.1.9+1.0.8",
+ build_file = Label("//sys/basic/raze/remote:BUILD.bzip2-sys-0.1.9+1.0.8.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "basic_sys__cc__1_0_60",
+ url = "https://crates.io/api/v1/crates/cc/1.0.60/download",
+ type = "tar.gz",
+ sha256 = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c",
+ strip_prefix = "cc-1.0.60",
+ build_file = Label("//sys/basic/raze/remote:BUILD.cc-1.0.60.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "basic_sys__libc__0_2_77",
+ url = "https://crates.io/api/v1/crates/libc/0.2.77/download",
+ type = "tar.gz",
+ sha256 = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235",
+ strip_prefix = "libc-0.2.77",
+ build_file = Label("//sys/basic/raze/remote:BUILD.libc-0.2.77.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "basic_sys__pkg_config__0_3_18",
+ url = "https://crates.io/api/v1/crates/pkg-config/0.3.18/download",
+ type = "tar.gz",
+ sha256 = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33",
+ strip_prefix = "pkg-config-0.3.18",
+ build_file = Label("//sys/basic/raze/remote:BUILD.pkg-config-0.3.18.bazel"),
+ )
diff --git a/examples/sys/basic/raze/remote/BUILD.bazel b/examples/sys/basic/raze/remote/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/sys/basic/raze/remote/BUILD.bazel
diff --git a/examples/sys/basic/raze/remote/BUILD.bzip2-0.3.3.bazel b/examples/sys/basic/raze/remote/BUILD.bzip2-0.3.3.bazel
new file mode 100644
index 0000000..403de65
--- /dev/null
+++ b/examples/sys/basic/raze/remote/BUILD.bzip2-0.3.3.bazel
@@ -0,0 +1,57 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/basic/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "bzip2",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.3.3",
+ # buildifier: leave-alone
+ deps = [
+ "@basic_sys__bzip2_sys__0_1_9_1_0_8//:bzip2_sys",
+ "@basic_sys__libc__0_2_77//:libc",
+ ],
+)
+
+# Unsupported target "tokio" with type "test" omitted
diff --git a/examples/sys/basic/raze/remote/BUILD.bzip2-sys-0.1.9+1.0.8.bazel b/examples/sys/basic/raze/remote/BUILD.bzip2-sys-0.1.9+1.0.8.bazel
new file mode 100644
index 0000000..2401d2c
--- /dev/null
+++ b/examples/sys/basic/raze/remote/BUILD.bzip2-sys-0.1.9+1.0.8.bazel
@@ -0,0 +1,87 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/basic/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "bzip2_sys_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2015",
+ links = "bzip2",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.9+1.0.8",
+ visibility = ["//visibility:private"],
+ deps = [
+ "@basic_sys__cc__1_0_60//:cc",
+ "@basic_sys__pkg_config__0_3_18//:pkg_config",
+ ],
+)
+
+rust_library(
+ name = "bzip2_sys",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.9+1.0.8",
+ # buildifier: leave-alone
+ deps = [
+ ":bzip2_sys_build_script",
+ "@basic_sys__libc__0_2_77//:libc",
+ ],
+)
diff --git a/examples/sys/basic/raze/remote/BUILD.cc-1.0.60.bazel b/examples/sys/basic/raze/remote/BUILD.cc-1.0.60.bazel
new file mode 100644
index 0000000..ad826c1
--- /dev/null
+++ b/examples/sys/basic/raze/remote/BUILD.cc-1.0.60.bazel
@@ -0,0 +1,85 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/basic/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_binary(
+ # Prefix bin name to disambiguate from (probable) collision with lib name
+ # N.B.: The exact form of this is subject to change.
+ name = "cargo_bin_gcc_shim",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/bin/gcc-shim.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.60",
+ # buildifier: leave-alone
+ deps = [
+ ":cc",
+ ],
+)
+
+rust_library(
+ name = "cc",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.60",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "cc_env" with type "test" omitted
+
+# Unsupported target "cflags" with type "test" omitted
+
+# Unsupported target "cxxflags" with type "test" omitted
+
+# Unsupported target "test" with type "test" omitted
diff --git a/examples/sys/basic/raze/remote/BUILD.libc-0.2.77.bazel b/examples/sys/basic/raze/remote/BUILD.libc-0.2.77.bazel
new file mode 100644
index 0000000..4b8aed7
--- /dev/null
+++ b/examples/sys/basic/raze/remote/BUILD.libc-0.2.77.bazel
@@ -0,0 +1,59 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/basic/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+# Unsupported target "build-script-build" with type "custom-build" omitted
+
+rust_library(
+ name = "libc",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.77",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "const_fn" with type "test" omitted
diff --git a/examples/sys/basic/raze/remote/BUILD.pkg-config-0.3.18.bazel b/examples/sys/basic/raze/remote/BUILD.pkg-config-0.3.18.bazel
new file mode 100644
index 0000000..0121432
--- /dev/null
+++ b/examples/sys/basic/raze/remote/BUILD.pkg-config-0.3.18.bazel
@@ -0,0 +1,55 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/basic/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "pkg_config",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.3.18",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "test" with type "test" omitted
diff --git a/examples/sys/basic/src/main.rs b/examples/sys/basic/src/main.rs
new file mode 100644
index 0000000..a02bdb0
--- /dev/null
+++ b/examples/sys/basic/src/main.rs
@@ -0,0 +1,42 @@
+use bzip2::read::BzEncoder;
+use bzip2::Compression;
+use std::io::Read;
+
+fn main() {
+ let stdin = std::io::stdin();
+ let stdin = stdin.lock();
+ let mut raw_counter = CountingStream::new(stdin);
+
+ let compressed_count = {
+ let compressor = BzEncoder::new(&mut raw_counter, Compression::Best);
+ let mut compressed_counter = CountingStream::new(compressor);
+ std::io::copy(&mut compressed_counter, &mut std::io::sink()).unwrap();
+ compressed_counter.count
+ };
+
+ println!(
+ "Compressed {} to {} bytes",
+ raw_counter.count, compressed_count
+ );
+}
+
+struct CountingStream<R: Read> {
+ stream: R,
+ count: usize,
+}
+
+impl<R: Read> CountingStream<R> {
+ fn new(stream: R) -> Self {
+ CountingStream { stream, count: 0 }
+ }
+}
+
+impl<R: Read> Read for CountingStream<R> {
+ fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
+ let result = self.stream.read(buf);
+ if let Ok(read_bytes) = result {
+ self.count += read_bytes;
+ }
+ result
+ }
+}
diff --git a/examples/sys/basic/test.sh b/examples/sys/basic/test.sh
new file mode 100755
index 0000000..b2aa8e0
--- /dev/null
+++ b/examples/sys/basic/test.sh
@@ -0,0 +1,5 @@
+#!/bin/bash -eu
+
+out="$(echo -n "Hello world" | "$1")"
+
+[[ "${out}" == "Compressed 11 to 50 bytes" ]] || (echo "Got ${out}" && exit 1)
diff --git a/examples/sys/complex/BUILD.bazel b/examples/sys/complex/BUILD.bazel
new file mode 100644
index 0000000..f0e7f0b
--- /dev/null
+++ b/examples/sys/complex/BUILD.bazel
@@ -0,0 +1,26 @@
+# Copyright 2020 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "complex_sys",
+ srcs = ["src/main.rs"],
+ edition = "2018",
+ # Note the `cargo-raze` dependencies here need to have been loaded
+ # in the WORKSPACE file. See `//sys:sys_deps.bzl` for rmore details.
+ deps = ["//sys/complex/raze:git2"],
+)
diff --git a/examples/sys/complex/Cargo.lock b/examples/sys/complex/Cargo.lock
new file mode 100644
index 0000000..a2676c7
--- /dev/null
+++ b/examples/sys/complex/Cargo.lock
@@ -0,0 +1,260 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+[[package]]
+name = "autocfg"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+
+[[package]]
+name = "bitflags"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
+
+[[package]]
+name = "cc"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2"
+dependencies = [
+ "jobserver",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "foreign-types"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
+dependencies = [
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
+dependencies = [
+ "matches",
+ "percent-encoding",
+]
+
+[[package]]
+name = "git2"
+version = "0.13.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca6f1a0238d7f8f8fd5ee642f4ebac4dbc03e03d1f78fbe7a3ede35dcf7e2224"
+dependencies = [
+ "bitflags",
+ "libc",
+ "libgit2-sys",
+ "log",
+ "openssl-probe",
+ "openssl-sys",
+ "url",
+]
+
+[[package]]
+name = "idna"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
+dependencies = [
+ "matches",
+ "unicode-bidi",
+ "unicode-normalization",
+]
+
+[[package]]
+name = "jobserver"
+version = "0.1.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f5ca711fd837261e14ec9e674f092cbb931d3fa1482b017ae59328ddc6f3212b"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "lazy_static"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+
+[[package]]
+name = "libc"
+version = "0.2.98"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320cfe77175da3a483efed4bc0adc1968ca050b098ce4f2f1c13a56626128790"
+
+[[package]]
+name = "libgit2-sys"
+version = "0.12.21+1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "86271bacd72b2b9e854c3dcfb82efd538f15f870e4c11af66900effb462f6825"
+dependencies = [
+ "cc",
+ "libc",
+ "libssh2-sys",
+ "libz-sys",
+ "openssl-sys",
+ "pkg-config",
+]
+
+[[package]]
+name = "libssh2-sys"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0186af0d8f171ae6b9c4c90ec51898bad5d08a2d5e470903a50d9ad8959cbee"
+dependencies = [
+ "cc",
+ "libc",
+ "libz-sys",
+ "openssl-sys",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "libz-sys"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "log"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "matches"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
+
+[[package]]
+name = "openssl"
+version = "0.10.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "038d43985d1ddca7a9900630d8cd031b56e4794eecc2e9ea39dd17aa04399a70"
+dependencies = [
+ "bitflags",
+ "cfg-if",
+ "foreign-types",
+ "lazy_static",
+ "libc",
+ "openssl-sys",
+]
+
+[[package]]
+name = "openssl-probe"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
+
+[[package]]
+name = "openssl-sys"
+version = "0.9.60"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "921fc71883267538946025deffb622905ecad223c28efbfdef9bb59a0175f3e6"
+dependencies = [
+ "autocfg",
+ "cc",
+ "libc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "percent-encoding"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
+
+[[package]]
+name = "pkg-config"
+version = "0.3.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c"
+
+[[package]]
+name = "rules_rust_examples_complex_sys"
+version = "0.0.1"
+dependencies = [
+ "git2",
+ "openssl",
+ "openssl-sys",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338"
+dependencies = [
+ "tinyvec_macros",
+]
+
+[[package]]
+name = "tinyvec_macros"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
+
+[[package]]
+name = "unicode-bidi"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0"
+dependencies = [
+ "matches",
+]
+
+[[package]]
+name = "unicode-normalization"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9"
+dependencies = [
+ "tinyvec",
+]
+
+[[package]]
+name = "url"
+version = "2.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "matches",
+ "percent-encoding",
+]
+
+[[package]]
+name = "vcpkg"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
diff --git a/examples/sys/complex/Cargo.toml b/examples/sys/complex/Cargo.toml
new file mode 100644
index 0000000..1e47fb4
--- /dev/null
+++ b/examples/sys/complex/Cargo.toml
@@ -0,0 +1,35 @@
+[package]
+name = "rules_rust_examples_complex_sys"
+version = "0.0.1"
+
+[[bin]]
+name = "rules_rust_examples_complex_sys"
+path = "src/main.rs"
+
+[dependencies]
+git2 = "=0.13.12"
+openssl = "=0.10.32"
+openssl-sys = "=0.9.60"
+
+[package.metadata.raze]
+workspace_path = "//sys/complex/raze"
+genmode = "Remote"
+gen_workspace_prefix = "complex_sys"
+rust_rules_workspace_name = "rules_rust"
+package_aliases_dir = "raze"
+default_gen_buildrs = true
+
+[package.metadata.raze.crates.openssl-sys.'*']
+# build.rs file: https://github.com/sfackler/rust-openssl/blob/master/openssl-sys/build/main.rs
+build_data_dependencies = [
+ "@openssl//:openssl",
+ "@openssl//:gen_dir",
+]
+data_attr = "[\"@openssl//:openssl\"]"
+additional_deps = ["@openssl//:openssl"]
+ [package.metadata.raze.crates.openssl-sys.'*'.buildrs_additional_environment_variables]
+ OPENSSL_DIR="$(execpath @openssl//:gen_dir)"
+ OPENSSL_STATIC="1"
+
+[package.metadata.raze.crates.libssh2-sys.'0.2.20']
+build_data_dependencies = ["@openssl"]
diff --git a/examples/sys/complex/raze/BUILD.bazel b/examples/sys/complex/raze/BUILD.bazel
new file mode 100644
index 0000000..f718efb
--- /dev/null
+++ b/examples/sys/complex/raze/BUILD.bazel
@@ -0,0 +1,48 @@
+"""
+@generated
+cargo-raze generated Bazel file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+package(default_visibility = ["//visibility:public"])
+
+licenses([
+ "notice", # See individual crates for specific licenses
+])
+
+# Aliased targets
+alias(
+ name = "git2",
+ actual = "@complex_sys__git2__0_13_12//:git2",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+alias(
+ name = "openssl",
+ actual = "@complex_sys__openssl__0_10_32//:openssl",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+alias(
+ name = "openssl_sys",
+ actual = "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+# Export file for Stardoc support
+exports_files(
+ [
+ "crates.bzl",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/sys/complex/raze/crates.bzl b/examples/sys/complex/raze/crates.bzl
new file mode 100644
index 0000000..a8ccc94
--- /dev/null
+++ b/examples/sys/complex/raze/crates.bzl
@@ -0,0 +1,292 @@
+"""
+@generated
+cargo-raze generated Bazel file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load
+
+def complex_sys_fetch_remote_crates():
+ """This function defines a collection of repos and should be called in a WORKSPACE file"""
+ maybe(
+ http_archive,
+ name = "complex_sys__autocfg__1_0_1",
+ url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download",
+ type = "tar.gz",
+ sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a",
+ strip_prefix = "autocfg-1.0.1",
+ build_file = Label("//sys/complex/raze/remote:BUILD.autocfg-1.0.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__bitflags__1_2_1",
+ url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download",
+ type = "tar.gz",
+ sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693",
+ strip_prefix = "bitflags-1.2.1",
+ build_file = Label("//sys/complex/raze/remote:BUILD.bitflags-1.2.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__cc__1_0_69",
+ url = "https://crates.io/api/v1/crates/cc/1.0.69/download",
+ type = "tar.gz",
+ sha256 = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2",
+ strip_prefix = "cc-1.0.69",
+ build_file = Label("//sys/complex/raze/remote:BUILD.cc-1.0.69.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__cfg_if__1_0_0",
+ url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download",
+ type = "tar.gz",
+ sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd",
+ strip_prefix = "cfg-if-1.0.0",
+ build_file = Label("//sys/complex/raze/remote:BUILD.cfg-if-1.0.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__foreign_types__0_3_2",
+ url = "https://crates.io/api/v1/crates/foreign-types/0.3.2/download",
+ type = "tar.gz",
+ sha256 = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1",
+ strip_prefix = "foreign-types-0.3.2",
+ build_file = Label("//sys/complex/raze/remote:BUILD.foreign-types-0.3.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__foreign_types_shared__0_1_1",
+ url = "https://crates.io/api/v1/crates/foreign-types-shared/0.1.1/download",
+ type = "tar.gz",
+ sha256 = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b",
+ strip_prefix = "foreign-types-shared-0.1.1",
+ build_file = Label("//sys/complex/raze/remote:BUILD.foreign-types-shared-0.1.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__form_urlencoded__1_0_1",
+ url = "https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download",
+ type = "tar.gz",
+ sha256 = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191",
+ strip_prefix = "form_urlencoded-1.0.1",
+ build_file = Label("//sys/complex/raze/remote:BUILD.form_urlencoded-1.0.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__git2__0_13_12",
+ url = "https://crates.io/api/v1/crates/git2/0.13.12/download",
+ type = "tar.gz",
+ sha256 = "ca6f1a0238d7f8f8fd5ee642f4ebac4dbc03e03d1f78fbe7a3ede35dcf7e2224",
+ strip_prefix = "git2-0.13.12",
+ build_file = Label("//sys/complex/raze/remote:BUILD.git2-0.13.12.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__idna__0_2_3",
+ url = "https://crates.io/api/v1/crates/idna/0.2.3/download",
+ type = "tar.gz",
+ sha256 = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8",
+ strip_prefix = "idna-0.2.3",
+ build_file = Label("//sys/complex/raze/remote:BUILD.idna-0.2.3.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__jobserver__0_1_23",
+ url = "https://crates.io/api/v1/crates/jobserver/0.1.23/download",
+ type = "tar.gz",
+ sha256 = "f5ca711fd837261e14ec9e674f092cbb931d3fa1482b017ae59328ddc6f3212b",
+ strip_prefix = "jobserver-0.1.23",
+ build_file = Label("//sys/complex/raze/remote:BUILD.jobserver-0.1.23.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__lazy_static__1_4_0",
+ url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download",
+ type = "tar.gz",
+ sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646",
+ strip_prefix = "lazy_static-1.4.0",
+ build_file = Label("//sys/complex/raze/remote:BUILD.lazy_static-1.4.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__libc__0_2_98",
+ url = "https://crates.io/api/v1/crates/libc/0.2.98/download",
+ type = "tar.gz",
+ sha256 = "320cfe77175da3a483efed4bc0adc1968ca050b098ce4f2f1c13a56626128790",
+ strip_prefix = "libc-0.2.98",
+ build_file = Label("//sys/complex/raze/remote:BUILD.libc-0.2.98.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__libgit2_sys__0_12_21_1_1_0",
+ url = "https://crates.io/api/v1/crates/libgit2-sys/0.12.21+1.1.0/download",
+ type = "tar.gz",
+ sha256 = "86271bacd72b2b9e854c3dcfb82efd538f15f870e4c11af66900effb462f6825",
+ strip_prefix = "libgit2-sys-0.12.21+1.1.0",
+ build_file = Label("//sys/complex/raze/remote:BUILD.libgit2-sys-0.12.21+1.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__libssh2_sys__0_2_21",
+ url = "https://crates.io/api/v1/crates/libssh2-sys/0.2.21/download",
+ type = "tar.gz",
+ sha256 = "e0186af0d8f171ae6b9c4c90ec51898bad5d08a2d5e470903a50d9ad8959cbee",
+ strip_prefix = "libssh2-sys-0.2.21",
+ build_file = Label("//sys/complex/raze/remote:BUILD.libssh2-sys-0.2.21.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__libz_sys__1_1_3",
+ url = "https://crates.io/api/v1/crates/libz-sys/1.1.3/download",
+ type = "tar.gz",
+ sha256 = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66",
+ strip_prefix = "libz-sys-1.1.3",
+ build_file = Label("//sys/complex/raze/remote:BUILD.libz-sys-1.1.3.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__log__0_4_14",
+ url = "https://crates.io/api/v1/crates/log/0.4.14/download",
+ type = "tar.gz",
+ sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710",
+ strip_prefix = "log-0.4.14",
+ build_file = Label("//sys/complex/raze/remote:BUILD.log-0.4.14.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__matches__0_1_8",
+ url = "https://crates.io/api/v1/crates/matches/0.1.8/download",
+ type = "tar.gz",
+ sha256 = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08",
+ strip_prefix = "matches-0.1.8",
+ build_file = Label("//sys/complex/raze/remote:BUILD.matches-0.1.8.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__openssl__0_10_32",
+ url = "https://crates.io/api/v1/crates/openssl/0.10.32/download",
+ type = "tar.gz",
+ sha256 = "038d43985d1ddca7a9900630d8cd031b56e4794eecc2e9ea39dd17aa04399a70",
+ strip_prefix = "openssl-0.10.32",
+ build_file = Label("//sys/complex/raze/remote:BUILD.openssl-0.10.32.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__openssl_probe__0_1_4",
+ url = "https://crates.io/api/v1/crates/openssl-probe/0.1.4/download",
+ type = "tar.gz",
+ sha256 = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a",
+ strip_prefix = "openssl-probe-0.1.4",
+ build_file = Label("//sys/complex/raze/remote:BUILD.openssl-probe-0.1.4.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__openssl_sys__0_9_60",
+ url = "https://crates.io/api/v1/crates/openssl-sys/0.9.60/download",
+ type = "tar.gz",
+ sha256 = "921fc71883267538946025deffb622905ecad223c28efbfdef9bb59a0175f3e6",
+ strip_prefix = "openssl-sys-0.9.60",
+ build_file = Label("//sys/complex/raze/remote:BUILD.openssl-sys-0.9.60.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__percent_encoding__2_1_0",
+ url = "https://crates.io/api/v1/crates/percent-encoding/2.1.0/download",
+ type = "tar.gz",
+ sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e",
+ strip_prefix = "percent-encoding-2.1.0",
+ build_file = Label("//sys/complex/raze/remote:BUILD.percent-encoding-2.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__pkg_config__0_3_19",
+ url = "https://crates.io/api/v1/crates/pkg-config/0.3.19/download",
+ type = "tar.gz",
+ sha256 = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c",
+ strip_prefix = "pkg-config-0.3.19",
+ build_file = Label("//sys/complex/raze/remote:BUILD.pkg-config-0.3.19.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__tinyvec__1_3_1",
+ url = "https://crates.io/api/v1/crates/tinyvec/1.3.1/download",
+ type = "tar.gz",
+ sha256 = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338",
+ strip_prefix = "tinyvec-1.3.1",
+ build_file = Label("//sys/complex/raze/remote:BUILD.tinyvec-1.3.1.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__tinyvec_macros__0_1_0",
+ url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download",
+ type = "tar.gz",
+ sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c",
+ strip_prefix = "tinyvec_macros-0.1.0",
+ build_file = Label("//sys/complex/raze/remote:BUILD.tinyvec_macros-0.1.0.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__unicode_bidi__0_3_5",
+ url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.5/download",
+ type = "tar.gz",
+ sha256 = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0",
+ strip_prefix = "unicode-bidi-0.3.5",
+ build_file = Label("//sys/complex/raze/remote:BUILD.unicode-bidi-0.3.5.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__unicode_normalization__0_1_19",
+ url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.19/download",
+ type = "tar.gz",
+ sha256 = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9",
+ strip_prefix = "unicode-normalization-0.1.19",
+ build_file = Label("//sys/complex/raze/remote:BUILD.unicode-normalization-0.1.19.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__url__2_2_2",
+ url = "https://crates.io/api/v1/crates/url/2.2.2/download",
+ type = "tar.gz",
+ sha256 = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c",
+ strip_prefix = "url-2.2.2",
+ build_file = Label("//sys/complex/raze/remote:BUILD.url-2.2.2.bazel"),
+ )
+
+ maybe(
+ http_archive,
+ name = "complex_sys__vcpkg__0_2_15",
+ url = "https://crates.io/api/v1/crates/vcpkg/0.2.15/download",
+ type = "tar.gz",
+ sha256 = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426",
+ strip_prefix = "vcpkg-0.2.15",
+ build_file = Label("//sys/complex/raze/remote:BUILD.vcpkg-0.2.15.bazel"),
+ )
diff --git a/examples/sys/complex/raze/remote/BUILD.autocfg-1.0.1.bazel b/examples/sys/complex/raze/remote/BUILD.autocfg-1.0.1.bazel
new file mode 100644
index 0000000..5faa88d
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.autocfg-1.0.1.bazel
@@ -0,0 +1,63 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT"
+])
+
+# Generated Targets
+
+# Unsupported target "integers" with type "example" omitted
+
+# Unsupported target "paths" with type "example" omitted
+
+# Unsupported target "traits" with type "example" omitted
+
+# Unsupported target "versions" with type "example" omitted
+
+rust_library(
+ name = "autocfg",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.1",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "rustflags" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.bazel b/examples/sys/complex/raze/remote/BUILD.bazel
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.bazel
diff --git a/examples/sys/complex/raze/remote/BUILD.bitflags-1.2.1.bazel b/examples/sys/complex/raze/remote/BUILD.bitflags-1.2.1.bazel
new file mode 100644
index 0000000..09adb27
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.bitflags-1.2.1.bazel
@@ -0,0 +1,85 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "bitflags_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ "default",
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.2.1",
+ visibility = ["//visibility:private"],
+ deps = [
+ ],
+)
+
+rust_library(
+ name = "bitflags",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "default",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.2.1",
+ # buildifier: leave-alone
+ deps = [
+ ":bitflags_build_script",
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.cc-1.0.69.bazel b/examples/sys/complex/raze/remote/BUILD.cc-1.0.69.bazel
new file mode 100644
index 0000000..2bc830d
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.cc-1.0.69.bazel
@@ -0,0 +1,91 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_binary(
+ # Prefix bin name to disambiguate from (probable) collision with lib name
+ # N.B.: The exact form of this is subject to change.
+ name = "cargo_bin_gcc_shim",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "jobserver",
+ "parallel",
+ ],
+ crate_root = "src/bin/gcc-shim.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.69",
+ # buildifier: leave-alone
+ deps = [
+ ":cc",
+ "@complex_sys__jobserver__0_1_23//:jobserver",
+ ],
+)
+
+rust_library(
+ name = "cc",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "jobserver",
+ "parallel",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.69",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__jobserver__0_1_23//:jobserver",
+ ],
+)
+
+# Unsupported target "cc_env" with type "test" omitted
+
+# Unsupported target "cflags" with type "test" omitted
+
+# Unsupported target "cxxflags" with type "test" omitted
+
+# Unsupported target "test" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.cfg-if-1.0.0.bazel b/examples/sys/complex/raze/remote/BUILD.cfg-if-1.0.0.bazel
new file mode 100644
index 0000000..c2cdc13
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.cfg-if-1.0.0.bazel
@@ -0,0 +1,55 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "cfg_if",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.0",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "xcrate" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.foreign-types-0.3.2.bazel b/examples/sys/complex/raze/remote/BUILD.foreign-types-0.3.2.bazel
new file mode 100644
index 0000000..598b30a
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.foreign-types-0.3.2.bazel
@@ -0,0 +1,54 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "foreign_types",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.3.2",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__foreign_types_shared__0_1_1//:foreign_types_shared",
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.foreign-types-shared-0.1.1.bazel b/examples/sys/complex/raze/remote/BUILD.foreign-types-shared-0.1.1.bazel
new file mode 100644
index 0000000..b084e4e
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.foreign-types-shared-0.1.1.bazel
@@ -0,0 +1,53 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "foreign_types_shared",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.1",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.form_urlencoded-1.0.1.bazel b/examples/sys/complex/raze/remote/BUILD.form_urlencoded-1.0.1.bazel
new file mode 100644
index 0000000..4e1962b
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.form_urlencoded-1.0.1.bazel
@@ -0,0 +1,55 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "form_urlencoded",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.0.1",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__matches__0_1_8//:matches",
+ "@complex_sys__percent_encoding__2_1_0//:percent_encoding",
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.git2-0.13.12.bazel b/examples/sys/complex/raze/remote/BUILD.git2-0.13.12.bazel
new file mode 100644
index 0000000..2c84c59
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.git2-0.13.12.bazel
@@ -0,0 +1,115 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+# Unsupported target "add" with type "example" omitted
+
+# Unsupported target "blame" with type "example" omitted
+
+# Unsupported target "cat-file" with type "example" omitted
+
+# Unsupported target "clone" with type "example" omitted
+
+# Unsupported target "diff" with type "example" omitted
+
+# Unsupported target "fetch" with type "example" omitted
+
+# Unsupported target "init" with type "example" omitted
+
+# Unsupported target "log" with type "example" omitted
+
+# Unsupported target "ls-remote" with type "example" omitted
+
+# Unsupported target "pull" with type "example" omitted
+
+# Unsupported target "rev-list" with type "example" omitted
+
+# Unsupported target "rev-parse" with type "example" omitted
+
+# Unsupported target "status" with type "example" omitted
+
+# Unsupported target "tag" with type "example" omitted
+
+rust_library(
+ name = "git2",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ "default",
+ "https",
+ "openssl-probe",
+ "openssl-sys",
+ "ssh",
+ "ssh_key_from_memory",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.13.12",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__bitflags__1_2_1//:bitflags",
+ "@complex_sys__libc__0_2_98//:libc",
+ "@complex_sys__libgit2_sys__0_12_21_1_1_0//:libgit2_sys",
+ "@complex_sys__log__0_4_14//:log",
+ "@complex_sys__url__2_2_2//:url",
+ ] + selects.with_or({
+ # cfg(all(unix, not(target_os = "macos")))
+ (
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ ): [
+ "@complex_sys__openssl_probe__0_1_4//:openssl_probe",
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+ "//conditions:default": [],
+ }),
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.idna-0.2.3.bazel b/examples/sys/complex/raze/remote/BUILD.idna-0.2.3.bazel
new file mode 100644
index 0000000..b558dba
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.idna-0.2.3.bazel
@@ -0,0 +1,62 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+# Unsupported target "all" with type "bench" omitted
+
+rust_library(
+ name = "idna",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.3",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__matches__0_1_8//:matches",
+ "@complex_sys__unicode_bidi__0_3_5//:unicode_bidi",
+ "@complex_sys__unicode_normalization__0_1_19//:unicode_normalization",
+ ],
+)
+
+# Unsupported target "tests" with type "test" omitted
+
+# Unsupported target "unit" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.jobserver-0.1.23.bazel b/examples/sys/complex/raze/remote/BUILD.jobserver-0.1.23.bazel
new file mode 100644
index 0000000..bc6f007
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.jobserver-0.1.23.bazel
@@ -0,0 +1,88 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "jobserver",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.23",
+ # buildifier: leave-alone
+ deps = [
+ ] + selects.with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ ): [
+ "@complex_sys__libc__0_2_98//:libc",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+# Unsupported target "client" with type "test" omitted
+
+# Unsupported target "client-of-myself" with type "test" omitted
+
+# Unsupported target "helper" with type "test" omitted
+
+# Unsupported target "make-as-a-client" with type "test" omitted
+
+# Unsupported target "server" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.lazy_static-1.4.0.bazel b/examples/sys/complex/raze/remote/BUILD.lazy_static-1.4.0.bazel
new file mode 100644
index 0000000..440c1c9
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.lazy_static-1.4.0.bazel
@@ -0,0 +1,57 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "lazy_static",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.4.0",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "no_std" with type "test" omitted
+
+# Unsupported target "test" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.libc-0.2.98.bazel b/examples/sys/complex/raze/remote/BUILD.libc-0.2.98.bazel
new file mode 100644
index 0000000..b3a4526
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.libc-0.2.98.bazel
@@ -0,0 +1,89 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "libc_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.98",
+ visibility = ["//visibility:private"],
+ deps = [
+ ],
+)
+
+rust_library(
+ name = "libc",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.98",
+ # buildifier: leave-alone
+ deps = [
+ ":libc_build_script",
+ ],
+)
+
+# Unsupported target "const_fn" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.libgit2-sys-0.12.21+1.1.0.bazel b/examples/sys/complex/raze/remote/BUILD.libgit2-sys-0.12.21+1.1.0.bazel
new file mode 100644
index 0000000..63c87f1
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.libgit2-sys-0.12.21+1.1.0.bazel
@@ -0,0 +1,149 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "libgit2_sys_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ "https",
+ "libssh2-sys",
+ "openssl-sys",
+ "ssh",
+ "ssh_key_from_memory",
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2018",
+ links = "git2",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.12.21+1.1.0",
+ visibility = ["//visibility:private"],
+ deps = [
+ "@complex_sys__cc__1_0_69//:cc",
+ "@complex_sys__libssh2_sys__0_2_21//:libssh2_sys",
+ "@complex_sys__libz_sys__1_1_3//:libz_sys",
+ "@complex_sys__pkg_config__0_3_19//:pkg_config",
+ ] + selects.with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ ): [
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+rust_library(
+ name = "libgit2_sys",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ "https",
+ "libssh2-sys",
+ "openssl-sys",
+ "ssh",
+ "ssh_key_from_memory",
+ ],
+ crate_root = "lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.12.21+1.1.0",
+ # buildifier: leave-alone
+ deps = [
+ ":libgit2_sys_build_script",
+ "@complex_sys__libc__0_2_98//:libc",
+ "@complex_sys__libssh2_sys__0_2_21//:libssh2_sys",
+ "@complex_sys__libz_sys__1_1_3//:libz_sys",
+ ] + selects.with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ ): [
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+ "//conditions:default": [],
+ }),
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.libssh2-sys-0.2.21.bazel b/examples/sys/complex/raze/remote/BUILD.libssh2-sys-0.2.21.bazel
new file mode 100644
index 0000000..dab53f1
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.libssh2-sys-0.2.21.bazel
@@ -0,0 +1,156 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "libssh2_sys_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]) + [
+ "@openssl",
+ ],
+ edition = "2015",
+ links = "ssh2",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.21",
+ visibility = ["//visibility:private"],
+ deps = [
+ "@complex_sys__cc__1_0_69//:cc",
+ "@complex_sys__libz_sys__1_1_3//:libz_sys",
+ "@complex_sys__pkg_config__0_3_19//:pkg_config",
+ ] + selects.with_or({
+ # cfg(target_env = "msvc")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ "@complex_sys__vcpkg__0_2_15//:vcpkg",
+ ],
+ "//conditions:default": [],
+ }) + selects.with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ ): [
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+rust_library(
+ name = "libssh2_sys",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.21",
+ # buildifier: leave-alone
+ deps = [
+ ":libssh2_sys_build_script",
+ "@complex_sys__libc__0_2_98//:libc",
+ "@complex_sys__libz_sys__1_1_3//:libz_sys",
+ ] + selects.with_or({
+ # cfg(target_env = "msvc")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ ],
+ "//conditions:default": [],
+ }) + selects.with_or({
+ # cfg(unix)
+ (
+ "@rules_rust//rust/platform:i686-apple-darwin",
+ "@rules_rust//rust/platform:i686-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-darwin",
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:aarch64-apple-darwin",
+ "@rules_rust//rust/platform:aarch64-apple-ios",
+ "@rules_rust//rust/platform:aarch64-linux-android",
+ "@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
+ "@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
+ "@rules_rust//rust/platform:i686-linux-android",
+ "@rules_rust//rust/platform:i686-unknown-freebsd",
+ "@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
+ "@rules_rust//rust/platform:s390x-unknown-linux-gnu",
+ "@rules_rust//rust/platform:x86_64-apple-ios",
+ "@rules_rust//rust/platform:x86_64-linux-android",
+ "@rules_rust//rust/platform:x86_64-unknown-freebsd",
+ ): [
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+ "//conditions:default": [],
+ }),
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.libz-sys-1.1.3.bazel b/examples/sys/complex/raze/remote/BUILD.libz-sys-1.1.3.bazel
new file mode 100644
index 0000000..88c2b13
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.libz-sys-1.1.3.bazel
@@ -0,0 +1,108 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "libz_sys_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ "libc",
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2015",
+ links = "z",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.1.3",
+ visibility = ["//visibility:private"],
+ deps = [
+ "@complex_sys__cc__1_0_69//:cc",
+ "@complex_sys__pkg_config__0_3_19//:pkg_config",
+ ] + selects.with_or({
+ # cfg(target_env = "msvc")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ "@complex_sys__vcpkg__0_2_15//:vcpkg",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+rust_library(
+ name = "libz_sys",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ "libc",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.1.3",
+ # buildifier: leave-alone
+ deps = [
+ ":libz_sys_build_script",
+ "@complex_sys__libc__0_2_98//:libc",
+ ] + selects.with_or({
+ # cfg(target_env = "msvc")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ ],
+ "//conditions:default": [],
+ }),
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.log-0.4.14.bazel b/examples/sys/complex/raze/remote/BUILD.log-0.4.14.bazel
new file mode 100644
index 0000000..dbea3b3
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.log-0.4.14.bazel
@@ -0,0 +1,90 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "log_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.4.14",
+ visibility = ["//visibility:private"],
+ deps = [
+ ],
+)
+
+# Unsupported target "value" with type "bench" omitted
+
+rust_library(
+ name = "log",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.4.14",
+ # buildifier: leave-alone
+ deps = [
+ ":log_build_script",
+ "@complex_sys__cfg_if__1_0_0//:cfg_if",
+ ],
+)
+
+# Unsupported target "filters" with type "test" omitted
+
+# Unsupported target "macros" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.matches-0.1.8.bazel b/examples/sys/complex/raze/remote/BUILD.matches-0.1.8.bazel
new file mode 100644
index 0000000..2b9a32d
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.matches-0.1.8.bazel
@@ -0,0 +1,55 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "matches",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.8",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "macro_use_one" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.openssl-0.10.32.bazel b/examples/sys/complex/raze/remote/BUILD.openssl-0.10.32.bazel
new file mode 100644
index 0000000..5dda642
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.openssl-0.10.32.bazel
@@ -0,0 +1,92 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # Apache-2.0 from expression "Apache-2.0"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "openssl_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ },
+ crate_features = [
+ ],
+ crate_root = "build.rs",
+ data = glob(["**"]),
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.10.32",
+ visibility = ["//visibility:private"],
+ deps = [
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+)
+
+# Unsupported target "mk_certs" with type "example" omitted
+
+rust_library(
+ name = "openssl",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.10.32",
+ # buildifier: leave-alone
+ deps = [
+ ":openssl_build_script",
+ "@complex_sys__bitflags__1_2_1//:bitflags",
+ "@complex_sys__cfg_if__1_0_0//:cfg_if",
+ "@complex_sys__foreign_types__0_3_2//:foreign_types",
+ "@complex_sys__lazy_static__1_4_0//:lazy_static",
+ "@complex_sys__libc__0_2_98//:libc",
+ "@complex_sys__openssl_sys__0_9_60//:openssl_sys",
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.openssl-probe-0.1.4.bazel b/examples/sys/complex/raze/remote/BUILD.openssl-probe-0.1.4.bazel
new file mode 100644
index 0000000..e8c551b
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.openssl-probe-0.1.4.bazel
@@ -0,0 +1,53 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "openssl_probe",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.4",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.openssl-sys-0.9.60.bazel b/examples/sys/complex/raze/remote/BUILD.openssl-sys-0.9.60.bazel
new file mode 100644
index 0000000..c033c83
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.openssl-sys-0.9.60.bazel
@@ -0,0 +1,113 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT"
+])
+
+# Generated Targets
+# buildifier: disable=out-of-order-load
+# buildifier: disable=load-on-top
+load(
+ "@rules_rust//cargo:cargo_build_script.bzl",
+ "cargo_build_script",
+)
+
+cargo_build_script(
+ name = "openssl_sys_build_script",
+ srcs = glob(["**/*.rs"]),
+ build_script_env = {
+ "OPENSSL_DIR": "$(execpath @openssl//:gen_dir)",
+ "OPENSSL_STATIC": "1",
+ },
+ crate_features = [
+ ],
+ crate_root = "build/main.rs",
+ data = glob(["**"]) + [
+ "@openssl//:gen_dir",
+ "@openssl//:openssl",
+ ],
+ edition = "2015",
+ links = "openssl",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.9.60",
+ visibility = ["//visibility:private"],
+ deps = [
+ "@complex_sys__autocfg__1_0_1//:autocfg",
+ "@complex_sys__cc__1_0_69//:cc",
+ "@complex_sys__pkg_config__0_3_19//:pkg_config",
+ ] + selects.with_or({
+ # cfg(target_env = "msvc")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ "@complex_sys__vcpkg__0_2_15//:vcpkg",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+rust_library(
+ name = "openssl_sys",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [] + ["@openssl//:openssl"],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.9.60",
+ # buildifier: leave-alone
+ deps = [
+ ":openssl_sys_build_script",
+ "@complex_sys__libc__0_2_98//:libc",
+ "@openssl//:openssl",
+ ] + selects.with_or({
+ # cfg(target_env = "msvc")
+ (
+ "@rules_rust//rust/platform:i686-pc-windows-msvc",
+ "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
+ ): [
+ ],
+ "//conditions:default": [],
+ }),
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.percent-encoding-2.1.0.bazel b/examples/sys/complex/raze/remote/BUILD.percent-encoding-2.1.0.bazel
new file mode 100644
index 0000000..c6db1ca
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.percent-encoding-2.1.0.bazel
@@ -0,0 +1,53 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "percent_encoding",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "2.1.0",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.pkg-config-0.3.19.bazel b/examples/sys/complex/raze/remote/BUILD.pkg-config-0.3.19.bazel
new file mode 100644
index 0000000..579c9ba
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.pkg-config-0.3.19.bazel
@@ -0,0 +1,55 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "pkg_config",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.3.19",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
+
+# Unsupported target "test" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.tinyvec-1.3.1.bazel b/examples/sys/complex/raze/remote/BUILD.tinyvec-1.3.1.bazel
new file mode 100644
index 0000000..ec3dc78
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.tinyvec-1.3.1.bazel
@@ -0,0 +1,63 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # Zlib from expression "Zlib OR (Apache-2.0 OR MIT)"
+])
+
+# Generated Targets
+
+# Unsupported target "macros" with type "bench" omitted
+
+rust_library(
+ name = "tinyvec",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "alloc",
+ "default",
+ "tinyvec_macros",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "1.3.1",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__tinyvec_macros__0_1_0//:tinyvec_macros",
+ ],
+)
+
+# Unsupported target "arrayvec" with type "test" omitted
+
+# Unsupported target "tinyvec" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.tinyvec_macros-0.1.0.bazel b/examples/sys/complex/raze/remote/BUILD.tinyvec_macros-0.1.0.bazel
new file mode 100644
index 0000000..898618b
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.tinyvec_macros-0.1.0.bazel
@@ -0,0 +1,53 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR (Apache-2.0 OR Zlib)"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "tinyvec_macros",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.0",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.unicode-bidi-0.3.5.bazel b/examples/sys/complex/raze/remote/BUILD.unicode-bidi-0.3.5.bazel
new file mode 100644
index 0000000..eb6eaa4
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.unicode-bidi-0.3.5.bazel
@@ -0,0 +1,55 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "unicode_bidi",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "default",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.3.5",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__matches__0_1_8//:matches",
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.unicode-normalization-0.1.19.bazel b/examples/sys/complex/raze/remote/BUILD.unicode-normalization-0.1.19.bazel
new file mode 100644
index 0000000..eacf38d
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.unicode-normalization-0.1.19.bazel
@@ -0,0 +1,58 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+# Unsupported target "bench" with type "bench" omitted
+
+rust_library(
+ name = "unicode_normalization",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.1.19",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__tinyvec__1_3_1//:tinyvec",
+ ],
+)
diff --git a/examples/sys/complex/raze/remote/BUILD.url-2.2.2.bazel b/examples/sys/complex/raze/remote/BUILD.url-2.2.2.bazel
new file mode 100644
index 0000000..37b82d9
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.url-2.2.2.bazel
@@ -0,0 +1,63 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+# Unsupported target "parse_url" with type "bench" omitted
+
+rust_library(
+ name = "url",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "2.2.2",
+ # buildifier: leave-alone
+ deps = [
+ "@complex_sys__form_urlencoded__1_0_1//:form_urlencoded",
+ "@complex_sys__idna__0_2_3//:idna",
+ "@complex_sys__matches__0_1_8//:matches",
+ "@complex_sys__percent_encoding__2_1_0//:percent_encoding",
+ ],
+)
+
+# Unsupported target "data" with type "test" omitted
+
+# Unsupported target "unit" with type "test" omitted
diff --git a/examples/sys/complex/raze/remote/BUILD.vcpkg-0.2.15.bazel b/examples/sys/complex/raze/remote/BUILD.vcpkg-0.2.15.bazel
new file mode 100644
index 0000000..6a4c404
--- /dev/null
+++ b/examples/sys/complex/raze/remote/BUILD.vcpkg-0.2.15.bazel
@@ -0,0 +1,53 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//sys/complex/raze", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT OR Apache-2.0"
+])
+
+# Generated Targets
+
+rust_library(
+ name = "vcpkg",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2015",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.2.15",
+ # buildifier: leave-alone
+ deps = [
+ ],
+)
diff --git a/examples/sys/complex/repositories.bzl b/examples/sys/complex/repositories.bzl
new file mode 100644
index 0000000..1284191
--- /dev/null
+++ b/examples/sys/complex/repositories.bzl
@@ -0,0 +1,10 @@
+# buildifier: disable=module-docstring
+load("//sys/complex/raze:crates.bzl", "complex_sys_fetch_remote_crates")
+load("//third_party/openssl:openssl_repositories.bzl", "openssl_repositories")
+
+def complex_sys_repositories():
+ """Define repository dependencies for the `complex_sys` example"""
+
+ complex_sys_fetch_remote_crates()
+
+ openssl_repositories()
diff --git a/examples/sys/complex/src/main.rs b/examples/sys/complex/src/main.rs
new file mode 100644
index 0000000..f328e4d
--- /dev/null
+++ b/examples/sys/complex/src/main.rs
@@ -0,0 +1 @@
+fn main() {}
diff --git a/examples/sys/sys_deps.bzl b/examples/sys/sys_deps.bzl
new file mode 100644
index 0000000..31716e4
--- /dev/null
+++ b/examples/sys/sys_deps.bzl
@@ -0,0 +1,14 @@
+# buildifier: disable=module-docstring
+load("//sys/basic/raze:crates.bzl", "basic_sys_fetch_remote_crates")
+load("//sys/complex:repositories.bzl", "complex_sys_repositories")
+
+def sys_deps():
+ """This macro loads dependencies for the `sys` crate examples
+
+ Commonly `*-sys` crates are built on top of some existing library and
+ will have a number of dependencies. The examples here use
+ [cargo-raze](https://github.com/google/cargo-raze) to gather these
+ dependencies and make them avaialble in the workspace.
+ """
+ basic_sys_fetch_remote_crates()
+ complex_sys_repositories()
diff --git a/examples/third_party/openssl/BUILD.bazel b/examples/third_party/openssl/BUILD.bazel
new file mode 100644
index 0000000..ea1a6b9
--- /dev/null
+++ b/examples/third_party/openssl/BUILD.bazel
@@ -0,0 +1,11 @@
+# The code here was picked up from the `rules_foreign_cc` openssl example
+# https://github.com/bazelbuild/rules_foreign_cc/tree/0.5.1/examples/third_party/openssl
+
+exports_files(
+ [
+ "BUILD.nasm.bazel",
+ "BUILD.openssl.bazel",
+ "BUILD.perl.bazel",
+ ],
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/third_party/openssl/BUILD.nasm.bazel b/examples/third_party/openssl/BUILD.nasm.bazel
new file mode 100644
index 0000000..05d571d
--- /dev/null
+++ b/examples/third_party/openssl/BUILD.nasm.bazel
@@ -0,0 +1,17 @@
+# The code here was picked up from the `rules_foreign_cc` openssl example
+# https://github.com/bazelbuild/rules_foreign_cc/tree/0.5.1/examples/third_party/openssl
+
+load("@bazel_skylib//rules:select_file.bzl", "select_file")
+
+package(default_visibility = ["//visibility:public"])
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+select_file(
+ name = "nasm",
+ srcs = ":all_srcs",
+ subpath = "nasm.exe",
+)
diff --git a/examples/third_party/openssl/BUILD.openssl.bazel b/examples/third_party/openssl/BUILD.openssl.bazel
new file mode 100644
index 0000000..865fe22
--- /dev/null
+++ b/examples/third_party/openssl/BUILD.openssl.bazel
@@ -0,0 +1,100 @@
+# The code here was picked up from the `rules_foreign_cc` openssl example
+# https://github.com/bazelbuild/rules_foreign_cc/tree/0.5.1/examples/third_party/openssl
+
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make", "configure_make_variant")
+
+# Read https://wiki.openssl.org/index.php/Compilation_and_Installation
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+CONFIGURE_OPTIONS = [
+ "no-comp",
+ "no-idea",
+ "no-weak-ssl-ciphers",
+ "no-shared",
+]
+
+LIB_NAME = "openssl"
+
+MAKE_TARGETS = [
+ "build_libs",
+ "install_dev",
+]
+
+config_setting(
+ name = "msvc_compiler",
+ flag_values = {
+ "@bazel_tools//tools/cpp:compiler": "msvc-cl",
+ },
+ visibility = ["//visibility:public"],
+)
+
+alias(
+ name = "openssl",
+ actual = select({
+ ":msvc_compiler": "openssl_msvc",
+ "//conditions:default": "openssl_default",
+ }),
+ visibility = ["//visibility:public"],
+)
+
+configure_make_variant(
+ name = "openssl_msvc",
+ build_data = [
+ "@nasm_windows//:nasm",
+ "@perl_windows//:perl",
+ ],
+ configure_command = "Configure",
+ configure_in_place = True,
+ configure_options = CONFIGURE_OPTIONS + [
+ "VC-WIN64A",
+ # Unset Microsoft Assembler (MASM) flags set by built-in MSVC toolchain,
+ # as NASM is unsed to build OpenSSL rather than MASM
+ "ASFLAGS=\" \"",
+ ],
+ configure_prefix = "$PERL",
+ env = {
+ # The Zi flag must be set otherwise OpenSSL fails to build due to missing .pdb files
+ "CFLAGS": "-Zi",
+ "PATH": "$(dirname $(execpath @nasm_windows//:nasm)):$PATH",
+ "PERL": "$(execpath @perl_windows//:perl)",
+ },
+ lib_name = LIB_NAME,
+ lib_source = ":all_srcs",
+ out_static_libs = [
+ "libssl.lib",
+ "libcrypto.lib",
+ ],
+ targets = MAKE_TARGETS,
+ toolchain = "@rules_foreign_cc//toolchains:preinstalled_nmake_toolchain",
+)
+
+configure_make(
+ name = "openssl_default",
+ configure_command = "config",
+ configure_in_place = True,
+ configure_options = CONFIGURE_OPTIONS,
+ env = select({
+ "@platforms//os:macos": {"AR": ""},
+ "//conditions:default": {},
+ }),
+ lib_name = LIB_NAME,
+ lib_source = ":all_srcs",
+ # Note that for Linux builds, libssl must come before libcrypto on the linker command-line.
+ # As such, libssl must be listed before libcrypto
+ out_static_libs = [
+ "libssl.a",
+ "libcrypto.a",
+ ],
+ targets = MAKE_TARGETS,
+)
+
+filegroup(
+ name = "gen_dir",
+ srcs = [":openssl"],
+ output_group = "gen_dir",
+ visibility = ["//visibility:public"],
+)
diff --git a/examples/third_party/openssl/BUILD.perl.bazel b/examples/third_party/openssl/BUILD.perl.bazel
new file mode 100644
index 0000000..9c5d9c1
--- /dev/null
+++ b/examples/third_party/openssl/BUILD.perl.bazel
@@ -0,0 +1,17 @@
+# The code here was picked up from the `rules_foreign_cc` openssl example
+# https://github.com/bazelbuild/rules_foreign_cc/tree/0.5.1/examples/third_party/openssl
+
+load("@bazel_skylib//rules:select_file.bzl", "select_file")
+
+package(default_visibility = ["//visibility:public"])
+
+filegroup(
+ name = "all_srcs",
+ srcs = glob(["**"]),
+)
+
+select_file(
+ name = "perl",
+ srcs = ":all_srcs",
+ subpath = "perl/bin/perl.exe",
+)
diff --git a/examples/third_party/openssl/openssl_repositories.bzl b/examples/third_party/openssl/openssl_repositories.bzl
new file mode 100644
index 0000000..2047ebf
--- /dev/null
+++ b/examples/third_party/openssl/openssl_repositories.bzl
@@ -0,0 +1,45 @@
+"""A module defining the third party dependency OpenSSL
+
+The code here was picked up from the `rules_foreign_cc` openssl example
+https://github.com/bazelbuild/rules_foreign_cc/tree/0.5.1/examples/third_party/openssl
+"""
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
+
+def openssl_repositories():
+ maybe(
+ http_archive,
+ name = "openssl",
+ build_file = Label("//third_party/openssl:BUILD.openssl.bazel"),
+ sha256 = "892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5",
+ strip_prefix = "openssl-1.1.1k",
+ urls = [
+ "https://mirror.bazel.build/www.openssl.org/source/openssl-1.1.1k.tar.gz",
+ "https://www.openssl.org/source/openssl-1.1.1k.tar.gz",
+ "https://github.com/openssl/openssl/archive/OpenSSL_1_1_1k.tar.gz",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = "nasm_windows",
+ build_file = Label("//third_party/openssl:BUILD.nasm.bazel"),
+ sha256 = "f5c93c146f52b4f1664fa3ce6579f961a910e869ab0dae431bd871bdd2584ef2",
+ strip_prefix = "nasm-2.15.05",
+ urls = [
+ "https://mirror.bazel.build/www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip",
+ "https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip",
+ ],
+ )
+
+ maybe(
+ http_archive,
+ name = "perl_windows",
+ build_file = Label("//third_party/openssl:BUILD.perl.bazel"),
+ sha256 = "aeb973da474f14210d3e1a1f942dcf779e2ae7e71e4c535e6c53ebabe632cc98",
+ urls = [
+ "https://mirror.bazel.build/strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-64bit.zip",
+ "https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-64bit.zip",
+ ],
+ )
diff --git a/examples/version_stamping/BUILD.bazel b/examples/version_stamping/BUILD.bazel
new file mode 100644
index 0000000..474c80f
--- /dev/null
+++ b/examples/version_stamping/BUILD.bazel
@@ -0,0 +1,17 @@
+load("@rules_rust//rust:defs.bzl", "rust_binary")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "version_reporter",
+ srcs = ["src/main.rs"],
+ rustc_env_files = [":generate_rustc_env_file"],
+)
+
+# See https://docs.bazel.build/versions/master/user-manual.html#workspace_status for more information.
+genrule(
+ name = "generate_rustc_env_file",
+ outs = ["rustc_env_file"],
+ cmd = "echo \"CARGO_PKG_VERSION=0.1.0-$$(awk '$$1 == \"BUILD_TIMESTAMP\" {print $$2}' bazel-out/volatile-status.txt)\" > $@",
+ stamp = True,
+)
diff --git a/examples/version_stamping/src/main.rs b/examples/version_stamping/src/main.rs
new file mode 100644
index 0000000..695c237
--- /dev/null
+++ b/examples/version_stamping/src/main.rs
@@ -0,0 +1,17 @@
+// Copyright 2021 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+fn main() {
+ println!("Version: {}", env!("CARGO_PKG_VERSION"));
+}
diff --git a/examples/wasm/BUILD.bazel b/examples/wasm/BUILD.bazel
new file mode 100644
index 0000000..e499c31
--- /dev/null
+++ b/examples/wasm/BUILD.bazel
@@ -0,0 +1,79 @@
+# Copyright 2020 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# buildifier: disable=module-docstring
+load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_test")
+load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_shared_library")
+load("@rules_rust//wasm_bindgen:wasm_bindgen.bzl", "rust_wasm_bindgen")
+
+package(default_visibility = ["//visibility:public"])
+
+rust_binary(
+ name = "hello_world_bin_wasm",
+ srcs = ["main.rs"],
+ edition = "2018",
+ deps = [
+ "@rules_rust//wasm_bindgen/raze:wasm_bindgen",
+ ],
+)
+
+rust_shared_library(
+ name = "hello_world_lib_wasm",
+ srcs = ["main.rs"],
+ edition = "2018",
+ deps = [
+ "@rules_rust//wasm_bindgen/raze:wasm_bindgen",
+ ],
+)
+
+rust_wasm_bindgen(
+ name = "hello_world_bundler_wasm_bindgen",
+ wasm_file = ":hello_world_bin_wasm",
+)
+
+rust_wasm_bindgen(
+ name = "hello_world_web_wasm_bindgen",
+ target = "web",
+ wasm_file = ":hello_world_lib_wasm",
+)
+
+rust_wasm_bindgen(
+ name = "hello_world_deno_wasm_bindgen",
+ target = "deno",
+ wasm_file = ":hello_world_lib_wasm",
+)
+
+rust_wasm_bindgen(
+ name = "hello_world_nomodules_wasm_bindgen",
+ target = "no-modules",
+ wasm_file = ":hello_world_lib_wasm",
+)
+
+rust_wasm_bindgen(
+ name = "hello_world_nodejs_wasm_bindgen",
+ target = "nodejs",
+ wasm_file = ":hello_world_lib_wasm",
+)
+
+nodejs_test(
+ name = "hello_world_wasm_test",
+ data = [
+ ":hello_world_bundler_wasm_bindgen",
+ ":hello_world_deno_wasm_bindgen",
+ ":hello_world_nodejs_wasm_bindgen",
+ ":hello_world_nomodules_wasm_bindgen",
+ ":hello_world_web_wasm_bindgen",
+ ],
+ entry_point = "hello_world_wasm_test.js",
+)
diff --git a/examples/wasm/hello_world_wasm_test.js b/examples/wasm/hello_world_wasm_test.js
new file mode 100644
index 0000000..8712335
--- /dev/null
+++ b/examples/wasm/hello_world_wasm_test.js
@@ -0,0 +1,23 @@
+"use strict";
+const fs = require('fs');
+const path = require('path');
+const assert = require('assert');
+
+const main = async function (typ) {
+ const wasm_file = path.join(__dirname, 'hello_world_'+typ+'_wasm_bindgen_bg.wasm');
+ assert.ok(fs.existsSync(wasm_file));
+
+ const buf = fs.readFileSync(wasm_file);
+ assert.ok(buf);
+
+ const res = await WebAssembly.instantiate(buf);
+ assert.ok(res);
+ assert.strictEqual(res.instance.exports.double(2), 4);
+};
+
+["bundler", "web", "deno", "nomodules", "nodejs"].forEach((typ) => {
+ main(typ).catch(function (err) {
+ console.error(err);
+ process.exit(1);
+ });
+})
diff --git a/examples/wasm/main.rs b/examples/wasm/main.rs
new file mode 100644
index 0000000..8703ad3
--- /dev/null
+++ b/examples/wasm/main.rs
@@ -0,0 +1,11 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub fn double(i: i32) -> i32 {
+ i * 2
+}
+
+#[allow(dead_code)]
+fn main() {
+ println!("Hello {}", double(2));
+}