From 3be056a7a31ca62d437917fa607d71ec888a7bad Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Wed, 27 Jul 2022 16:34:29 +0200 Subject: [PATCH 01/26] toolchain files: ensure test depends on std (#1486) * toolchain files: ensure test depends on std No functional changes intended. Among the standard rust libs, libtest depends on libstd: https://github.com/rust-lang/rust/blob/master/library/test/Cargo.toml#L12 The current implementation was adding it to `between_core_and_std_files`. This may cause backward reference linker errors in some configurations where the linker is configured to check for such backward references and the toolchain uses the static version of libtest. * Regenerate documentation --- docs/flatten.md | 3 ++- docs/providers.md | 3 ++- rust/private/providers.bzl | 1 + rust/toolchain.bzl | 22 +++++++++++++++++----- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/docs/flatten.md b/docs/flatten.md index e4eef5414b..27287f63c1 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1408,7 +1408,7 @@ A provider containing information about a Crate's dependencies.
 StdLibInfo(alloc_files, between_alloc_and_core_files, between_core_and_std_files, core_files,
-           dot_a_files, memchr_files, self_contained_files, srcs, std_files, std_rlibs)
+           dot_a_files, memchr_files, self_contained_files, srcs, std_files, std_rlibs, test_files)
 
A collection of files either found within the `rust-stdlib` artifact or generated based on existing files. @@ -1428,6 +1428,7 @@ A collection of files either found within the `rust-stdlib` artifact or generate | srcs | List[Target]: All targets from the original srcs attribute. | | std_files | Depset[File]: .a files associated with the std module. | | std_rlibs | List[File]: All .rlib files | +| test_files | Depset[File]: .a files associated with the test module. | diff --git a/docs/providers.md b/docs/providers.md index 2df30cb43a..884a1542d1 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -68,7 +68,7 @@ A provider containing information about a Crate's dependencies.
 StdLibInfo(alloc_files, between_alloc_and_core_files, between_core_and_std_files, core_files,
-           dot_a_files, memchr_files, self_contained_files, srcs, std_files, std_rlibs)
+           dot_a_files, memchr_files, self_contained_files, srcs, std_files, std_rlibs, test_files)
 
A collection of files either found within the `rust-stdlib` artifact or generated based on existing files. @@ -88,5 +88,6 @@ A collection of files either found within the `rust-stdlib` artifact or generate | srcs | List[Target]: All targets from the original srcs attribute. | | std_files | Depset[File]: .a files associated with the std module. | | std_rlibs | List[File]: All .rlib files | +| test_files | Depset[File]: .a files associated with the test module. | diff --git a/rust/private/providers.bzl b/rust/private/providers.bzl index 6009aa05e0..0a1d924e83 100644 --- a/rust/private/providers.bzl +++ b/rust/private/providers.bzl @@ -94,6 +94,7 @@ StdLibInfo = provider( "srcs": "List[Target]: All targets from the original `srcs` attribute.", "std_files": "Depset[File]: `.a` files associated with the `std` module.", "std_rlibs": "List[File]: All `.rlib` files", + "test_files": "Depset[File]: `.a` files associated with the `test` module.", }, ) diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index 349c3932f3..a046c4e58f 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -14,6 +14,7 @@ def _rust_stdlib_filegroup_impl(ctx): core_files = [] between_core_and_std_files = [] std_files = [] + test_files = [] memchr_files = [] alloc_files = [] self_contained_files = [ @@ -24,7 +25,8 @@ def _rust_stdlib_filegroup_impl(ctx): std_rlibs = [f for f in rust_std if f.basename.endswith(".rlib")] if std_rlibs: - # std depends on everything + # test depends on std + # std depends on everything except test # # core only depends on alloc, but we poke adler in there # because that needs to be before miniz_oxide @@ -39,14 +41,15 @@ def _rust_stdlib_filegroup_impl(ctx): between_core_and_std_files = [ f for f in dot_a_files - if "alloc" not in f.basename and "compiler_builtins" not in f.basename and "core" not in f.basename and "adler" not in f.basename and "std" not in f.basename and "memchr" not in f.basename + if "alloc" not in f.basename and "compiler_builtins" not in f.basename and "core" not in f.basename and "adler" not in f.basename and "std" not in f.basename and "memchr" not in f.basename and "test" not in f.basename ] memchr_files = [f for f in dot_a_files if "memchr" in f.basename] std_files = [f for f in dot_a_files if "std" in f.basename] + test_files = [f for f in dot_a_files if "test" in f.basename] - partitioned_files_len = len(alloc_files) + len(between_alloc_and_core_files) + len(core_files) + len(between_core_and_std_files) + len(memchr_files) + len(std_files) + partitioned_files_len = len(alloc_files) + len(between_alloc_and_core_files) + len(core_files) + len(between_core_and_std_files) + len(memchr_files) + len(std_files) + len(test_files) if partitioned_files_len != len(dot_a_files): - partitioned = alloc_files + between_alloc_and_core_files + core_files + between_core_and_std_files + memchr_files + std_files + partitioned = alloc_files + between_alloc_and_core_files + core_files + between_core_and_std_files + memchr_files + std_files + test_files for f in sorted(partitioned): # buildifier: disable=print print("File partitioned: {}".format(f.basename)) @@ -63,6 +66,7 @@ def _rust_stdlib_filegroup_impl(ctx): core_files = core_files, between_core_and_std_files = between_core_and_std_files, std_files = std_files, + test_files = test_files, memchr_files = memchr_files, alloc_files = alloc_files, self_contained_files = self_contained_files, @@ -198,10 +202,18 @@ def _make_libstd_and_allocator_ccinfo(ctx, rust_std, allocator_library): transitive = [between_core_and_std_inputs], order = "topological", ) + test_inputs = depset( + [ + _ltl(f, ctx, cc_toolchain, feature_configuration) + for f in rust_stdlib_info.test_files + ], + transitive = [std_inputs], + order = "topological", + ) link_inputs = cc_common.create_linker_input( owner = rust_std.label, - libraries = std_inputs, + libraries = test_inputs, ) allocator_inputs = None From 0fc834bdfa9df75c6ffdcadb5d1bb9fc43cc247b Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Fri, 29 Jul 2022 09:42:33 -0700 Subject: [PATCH 02/26] Updated all toolchain_type definitions to be named `toolchain_type`. (#1479) * Updated all toolchain_type definitions to be named `toolchain_type`. * Regenerate documentation * Added deprecation warnings --- bindgen/BUILD.bazel | 13 +++++++++++-- bindgen/bindgen.bzl | 8 ++++---- cargo/cargo_build_script.bzl | 2 +- crate_universe/private/crates_vendor.bzl | 6 +++--- docs/flatten.md | 4 ++-- docs/rust_bindgen.md | 2 +- docs/rust_proto.md | 2 +- docs/rust_proto.vm | 2 +- docs/rust_wasm_bindgen.md | 2 +- proto/BUILD.bazel | 13 +++++++++++-- proto/proto.bzl | 10 +++++----- rust/BUILD.bazel | 7 +++++++ rust/private/clippy.bzl | 2 +- rust/private/rust.bzl | 16 ++++++++-------- rust/private/rust_analyzer.bzl | 4 ++-- rust/private/rustdoc.bzl | 2 +- rust/private/rustdoc_test.bzl | 2 +- rust/private/rustfmt.bzl | 2 +- rust/private/toolchain_utils.bzl | 8 ++++---- rust/private/utils.bzl | 2 +- .../with_modified_crate_name.bzl | 7 +++++-- test/unit/force_all_deps_direct/generator.bzl | 7 +++++-- .../toolchain_make_variables_test.bzl | 2 +- wasm_bindgen/BUILD.bazel | 13 +++++++++++-- wasm_bindgen/wasm_bindgen.bzl | 2 +- 25 files changed, 90 insertions(+), 50 deletions(-) diff --git a/bindgen/BUILD.bazel b/bindgen/BUILD.bazel index 8096c89943..c0872afc4d 100644 --- a/bindgen/BUILD.bazel +++ b/bindgen/BUILD.bazel @@ -3,7 +3,16 @@ load("//bindgen:bindgen.bzl", "rust_bindgen_toolchain") package(default_visibility = ["//visibility:public"]) -toolchain_type(name = "bindgen_toolchain") +toolchain_type( + name = "toolchain_type", +) + +alias( + name = "bindgen_toolchain", + actual = "toolchain_type", + deprecation = "instead use `@rules_rust//bindgen:toolchain_type`", + tags = ["manual"], +) bzl_library( name = "bzl_lib", @@ -43,5 +52,5 @@ rust_bindgen_toolchain( toolchain( name = "default_bindgen_toolchain", toolchain = "default_bindgen_toolchain_impl", - toolchain_type = "//bindgen:bindgen_toolchain", + toolchain_type = "//bindgen:toolchain_type", ) diff --git a/bindgen/bindgen.bzl b/bindgen/bindgen.bzl index b793cd00d5..58288d89e7 100644 --- a/bindgen/bindgen.bzl +++ b/bindgen/bindgen.bzl @@ -92,7 +92,7 @@ def _rust_bindgen_impl(ctx): if header not in cc_header_list: fail("Header {} is not in {}'s transitive headers.".format(ctx.attr.header, cc_lib), "header") - toolchain = ctx.toolchains[Label("//bindgen:bindgen_toolchain")] + toolchain = ctx.toolchains[Label("//bindgen:toolchain_type")] bindgen_bin = toolchain.bindgen rustfmt_bin = toolchain.rustfmt or rust_toolchain.rustfmt clang_bin = toolchain.clang @@ -214,8 +214,8 @@ rust_bindgen = rule( outputs = {"out": "%{name}.rs"}, fragments = ["cpp"], toolchains = [ - str(Label("//bindgen:bindgen_toolchain")), - str(Label("//rust:toolchain")), + str(Label("//bindgen:toolchain_type")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -253,7 +253,7 @@ rust_bindgen_toolchain( toolchain( name = "bindgen_toolchain", toolchain = "bindgen_toolchain_impl", - toolchain_type = "@rules_rust//bindgen:bindgen_toolchain", + toolchain_type = "@rules_rust//bindgen:toolchain_type", ) ``` diff --git a/cargo/cargo_build_script.bzl b/cargo/cargo_build_script.bzl index dfd4fd036c..87ee88e513 100644 --- a/cargo/cargo_build_script.bzl +++ b/cargo/cargo_build_script.bzl @@ -302,7 +302,7 @@ _build_script_run = rule( }, fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, diff --git a/crate_universe/private/crates_vendor.bzl b/crate_universe/private/crates_vendor.bzl index fa6a66f86d..021ffc3b93 100644 --- a/crate_universe/private/crates_vendor.bzl +++ b/crate_universe/private/crates_vendor.bzl @@ -36,7 +36,7 @@ def _runfiles_path(path, is_windows): return "{}/{}".format(runtime_pwd_var, path) def _is_windows(ctx): - toolchain = ctx.toolchains[Label("@rules_rust//rust:toolchain")] + toolchain = ctx.toolchains[Label("@rules_rust//rust:toolchain_type")] return "windows" in toolchain.target_triple def _get_output_package(ctx): @@ -175,7 +175,7 @@ def _write_config_file(ctx): return args, runfiles def _crates_vendor_impl(ctx): - toolchain = ctx.toolchains[Label("@rules_rust//rust:toolchain")] + toolchain = ctx.toolchains[Label("@rules_rust//rust:toolchain_type")] is_windows = _is_windows(ctx) environ = { @@ -400,7 +400,7 @@ call against the generated workspace. The following table describes how to contr ), }, executable = True, - toolchains = ["@rules_rust//rust:toolchain"], + toolchains = ["@rules_rust//rust:toolchain_type"], ) def _crates_vendor_remote_repository_impl(repository_ctx): diff --git a/docs/flatten.md b/docs/flatten.md index 27287f63c1..150e768c39 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -371,7 +371,7 @@ rust_bindgen_toolchain( toolchain( name = "bindgen_toolchain", toolchain = "bindgen_toolchain_impl", - toolchain_type = "@rules_rust//bindgen:bindgen_toolchain", + toolchain_type = "@rules_rust//bindgen:toolchain_type", ) ``` @@ -1301,7 +1301,7 @@ rust_bindgen_toolchain( toolchain( name = "wasm_bindgen_toolchain", toolchain = "wasm_bindgen_toolchain_impl", - toolchain_type = "@rules_rust//wasm_bindgen:wasm_bindgen_toolchain", + toolchain_type = "@rules_rust//wasm_bindgen:toolchain_type", ) ``` diff --git a/docs/rust_bindgen.md b/docs/rust_bindgen.md index 19eaafb4eb..3e282483ae 100644 --- a/docs/rust_bindgen.md +++ b/docs/rust_bindgen.md @@ -87,7 +87,7 @@ rust_bindgen_toolchain( toolchain( name = "bindgen_toolchain", toolchain = "bindgen_toolchain_impl", - toolchain_type = "@rules_rust//bindgen:bindgen_toolchain", + toolchain_type = "@rules_rust//bindgen:toolchain_type", ) ``` diff --git a/docs/rust_proto.md b/docs/rust_proto.md index 8ef0a3aecb..2f7b40c47a 100644 --- a/docs/rust_proto.md +++ b/docs/rust_proto.md @@ -77,7 +77,7 @@ rust_proto_toolchain( toolchain( name = "proto-toolchain", toolchain = ":proto-toolchain-impl", - toolchain_type = "@rules_rust//proto:toolchain", + toolchain_type = "@rules_rust//proto:toolchain_type", ) ``` diff --git a/docs/rust_proto.vm b/docs/rust_proto.vm index 9067510d01..b7f08f4e96 100644 --- a/docs/rust_proto.vm +++ b/docs/rust_proto.vm @@ -68,7 +68,7 @@ rust_proto_toolchain( toolchain( name = "proto-toolchain", toolchain = ":proto-toolchain-impl", - toolchain_type = "@rules_rust//proto:toolchain", + toolchain_type = "@rules_rust//proto:toolchain_type", ) ``` diff --git a/docs/rust_wasm_bindgen.md b/docs/rust_wasm_bindgen.md index ae84d1da65..9af8ad3fc6 100644 --- a/docs/rust_wasm_bindgen.md +++ b/docs/rust_wasm_bindgen.md @@ -85,7 +85,7 @@ rust_bindgen_toolchain( toolchain( name = "wasm_bindgen_toolchain", toolchain = "wasm_bindgen_toolchain_impl", - toolchain_type = "@rules_rust//wasm_bindgen:wasm_bindgen_toolchain", + toolchain_type = "@rules_rust//wasm_bindgen:toolchain_type", ) ``` diff --git a/proto/BUILD.bazel b/proto/BUILD.bazel index a76d069b61..92e31425de 100644 --- a/proto/BUILD.bazel +++ b/proto/BUILD.bazel @@ -29,7 +29,16 @@ filegroup( visibility = ["//:__subpackages__"], ) -toolchain_type(name = "toolchain") +toolchain_type( + name = "toolchain_type", +) + +alias( + name = "toolchain", + actual = "toolchain_type", + deprecation = "instead use `@rules_rust//proto:toolchain_type`", + tags = ["manual"], +) rust_binary( name = "optional_output_wrapper", @@ -41,7 +50,7 @@ rust_binary( toolchain( name = "default-proto-toolchain", toolchain = ":default-proto-toolchain-impl", - toolchain_type = "@rules_rust//proto:toolchain", + toolchain_type = "@rules_rust//proto:toolchain_type", ) rust_proto_toolchain( diff --git a/proto/proto.bzl b/proto/proto.bzl index ea239b067f..9cb83f3e7e 100644 --- a/proto/proto.bzl +++ b/proto/proto.bzl @@ -186,7 +186,7 @@ def _rust_proto_compile(protos, descriptor_sets, imports, crate_name, ctx, is_gr """ # Create all the source in a specific folder - proto_toolchain = ctx.toolchains[Label("//proto:toolchain")] + proto_toolchain = ctx.toolchains[Label("//proto:toolchain_type")] output_dir = "%s.%s.rust" % (crate_name, "grpc" if is_grpc else "proto") # Generate the proto stubs @@ -319,8 +319,8 @@ rust_proto_library = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//proto:toolchain")), - str(Label("//rust:toolchain")), + str(Label("//proto:toolchain_type")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], # TODO: Remove once (bazelbuild/bazel#11584) is closed and the rules use @@ -397,8 +397,8 @@ rust_grpc_library = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//proto:toolchain")), - str(Label("//rust:toolchain")), + str(Label("//proto:toolchain_type")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], # TODO: Remove once (bazelbuild/bazel#11584) is closed and the rules use diff --git a/rust/BUILD.bazel b/rust/BUILD.bazel index 672f2287b0..f9c736834f 100644 --- a/rust/BUILD.bazel +++ b/rust/BUILD.bazel @@ -10,7 +10,14 @@ exports_files([ ]) toolchain_type( + name = "toolchain_type", +) + +alias( name = "toolchain", + actual = "toolchain_type", + deprecation = "instead use `@rules_rust//rust:toolchain_type`", + tags = ["manual"], ) bzl_library( diff --git a/rust/private/clippy.bzl b/rust/private/clippy.bzl index ec94ae7628..21f3965664 100644 --- a/rust/private/clippy.bzl +++ b/rust/private/clippy.bzl @@ -226,7 +226,7 @@ rust_clippy_aspect = aspect( }, provides = [ClippyInfo], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index 1c84312019..f50303e3c9 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -759,7 +759,7 @@ rust_library = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -835,7 +835,7 @@ rust_static_library = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -858,7 +858,7 @@ rust_shared_library = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -910,7 +910,7 @@ rust_proc_macro = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -961,7 +961,7 @@ rust_binary = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -1089,7 +1089,7 @@ rust_binary_without_process_wrapper = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -1102,7 +1102,7 @@ rust_library_without_process_wrapper = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, @@ -1118,7 +1118,7 @@ rust_test = rule( host_fragments = ["cpp"], test = True, toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, diff --git a/rust/private/rust_analyzer.bzl b/rust/private/rust_analyzer.bzl index 48582b3c33..7515fd7c33 100644 --- a/rust/private/rust_analyzer.bzl +++ b/rust/private/rust_analyzer.bzl @@ -129,7 +129,7 @@ def find_proc_macro_dylib_path(toolchain, target): rust_analyzer_aspect = aspect( attr_aspects = ["deps", "proc_macro_deps", "crate", "actual"], implementation = _rust_analyzer_aspect_impl, - toolchains = [str(Label("//rust:toolchain"))], + toolchains = [str(Label("//rust:toolchain_type"))], incompatible_use_toolchain_transition = True, doc = "Annotates rust rules with RustAnalyzerInfo later used to build a rust-project.json", ) @@ -249,7 +249,7 @@ def _rust_analyzer_detect_sysroot_impl(ctx): rust_analyzer_detect_sysroot = rule( implementation = _rust_analyzer_detect_sysroot_impl, toolchains = [ - "@rules_rust//rust:toolchain", + "@rules_rust//rust:toolchain_type", "@rules_rust//rust/rust_analyzer:toolchain_type", ], incompatible_use_toolchain_transition = True, diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index 7da57e5f55..82fdd4e069 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -321,7 +321,7 @@ rust_doc = rule( "rust_doc_zip": "%{name}.zip", }, toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, diff --git a/rust/private/rustdoc_test.bzl b/rust/private/rustdoc_test.bzl index 3a1124ebb9..c2425b0b29 100644 --- a/rust/private/rustdoc_test.bzl +++ b/rust/private/rustdoc_test.bzl @@ -206,7 +206,7 @@ rust_doc_test = rule( fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), "@bazel_tools//tools/cpp:toolchain_type", ], incompatible_use_toolchain_transition = True, diff --git a/rust/private/rustfmt.bzl b/rust/private/rustfmt.bzl index 0de817d2f4..db5ef43a9d 100644 --- a/rust/private/rustfmt.bzl +++ b/rust/private/rustfmt.bzl @@ -138,7 +138,7 @@ generated source files are also ignored by this aspect. fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), ], ) diff --git a/rust/private/toolchain_utils.bzl b/rust/private/toolchain_utils.bzl index 3d61746de9..13c94acc53 100644 --- a/rust/private/toolchain_utils.bzl +++ b/rust/private/toolchain_utils.bzl @@ -1,7 +1,7 @@ """A module defining toolchain utilities""" def _toolchain_files_impl(ctx): - toolchain = ctx.toolchains[str(Label("//rust:toolchain"))] + toolchain = ctx.toolchains[str(Label("//rust:toolchain_type"))] runfiles = None if ctx.attr.tool == "cargo": @@ -73,13 +73,13 @@ toolchain_files = rule( ), }, toolchains = [ - str(Label("//rust:toolchain")), + str(Label("//rust:toolchain_type")), ], incompatible_use_toolchain_transition = True, ) def _current_rust_toolchain_impl(ctx): - toolchain = ctx.toolchains[str(Label("@rules_rust//rust:toolchain"))] + toolchain = ctx.toolchains[str(Label("@rules_rust//rust:toolchain_type"))] return [ toolchain, @@ -98,7 +98,7 @@ current_rust_toolchain = rule( doc = "A rule for exposing the current registered `rust_toolchain`.", implementation = _current_rust_toolchain_impl, toolchains = [ - str(Label("@rules_rust//rust:toolchain")), + str(Label("@rules_rust//rust:toolchain_type")), ], incompatible_use_toolchain_transition = True, ) diff --git a/rust/private/utils.bzl b/rust/private/utils.bzl index b3e8e809d3..4ae5b5fc3e 100644 --- a/rust/private/utils.bzl +++ b/rust/private/utils.bzl @@ -34,7 +34,7 @@ def find_toolchain(ctx): Returns: rust_toolchain: A Rust toolchain context. """ - return ctx.toolchains[Label("//rust:toolchain")] + return ctx.toolchains[Label("//rust:toolchain_type")] def find_cc_toolchain(ctx): """Extracts a CcToolchain from the current target's context diff --git a/test/unit/consistent_crate_name/with_modified_crate_name.bzl b/test/unit/consistent_crate_name/with_modified_crate_name.bzl index a9d2590398..dee1321c9a 100644 --- a/test/unit/consistent_crate_name/with_modified_crate_name.bzl +++ b/test/unit/consistent_crate_name/with_modified_crate_name.bzl @@ -9,7 +9,7 @@ load("//rust/private:providers.bzl", "BuildInfo", "CrateInfo", "DepInfo", "DepVa load("//rust/private:rustc.bzl", "rustc_compile_action") def _with_modified_crate_name_impl(ctx): - toolchain = ctx.toolchains[Label("//rust:toolchain")] + toolchain = ctx.toolchains[Label("//rust:toolchain_type")] crate_root = ctx.attr.src.files.to_list()[0] output_hash = repr(hash(crate_root.path)) @@ -73,7 +73,10 @@ with_modified_crate_name = rule( cfg = "exec", ), }, - toolchains = ["@rules_rust//rust:toolchain", "@bazel_tools//tools/cpp:toolchain_type"], + toolchains = [ + "@rules_rust//rust:toolchain_type", + "@bazel_tools//tools/cpp:toolchain_type", + ], incompatible_use_toolchain_transition = True, fragments = ["cpp"], ) diff --git a/test/unit/force_all_deps_direct/generator.bzl b/test/unit/force_all_deps_direct/generator.bzl index b44364f8e0..2ca319587d 100644 --- a/test/unit/force_all_deps_direct/generator.bzl +++ b/test/unit/force_all_deps_direct/generator.bzl @@ -26,7 +26,7 @@ EOF mnemonic = "WriteRsFile", ) - toolchain = ctx.toolchains[Label("//rust:toolchain")] + toolchain = ctx.toolchains[Label("//rust:toolchain_type")] # Determine unique hash for this rlib output_hash = repr(hash(rs_file.path)) @@ -88,7 +88,10 @@ generator = rule( cfg = "exec", ), }, - toolchains = ["@rules_rust//rust:toolchain", "@bazel_tools//tools/cpp:toolchain_type"], + toolchains = [ + "@rules_rust//rust:toolchain_type", + "@bazel_tools//tools/cpp:toolchain_type", + ], incompatible_use_toolchain_transition = True, fragments = ["cpp"], ) diff --git a/test/unit/toolchain_make_variables/toolchain_make_variables_test.bzl b/test/unit/toolchain_make_variables/toolchain_make_variables_test.bzl index b20e79e441..02f6d9e91d 100644 --- a/test/unit/toolchain_make_variables/toolchain_make_variables_test.bzl +++ b/test/unit/toolchain_make_variables/toolchain_make_variables_test.bzl @@ -124,7 +124,7 @@ rust_toolchain_consumer = rule( ), }, toolchains = [ - "@rules_rust//rust:toolchain", + "@rules_rust//rust:toolchain_type", ], ) diff --git a/wasm_bindgen/BUILD.bazel b/wasm_bindgen/BUILD.bazel index 0145d42434..0e42393aa0 100644 --- a/wasm_bindgen/BUILD.bazel +++ b/wasm_bindgen/BUILD.bazel @@ -3,7 +3,16 @@ load("//wasm_bindgen:wasm_bindgen.bzl", "rust_wasm_bindgen_toolchain") package(default_visibility = ["//visibility:public"]) -toolchain_type(name = "wasm_bindgen_toolchain") +toolchain_type( + name = "toolchain_type", +) + +alias( + name = "wasm_bindgen_toolchain", + actual = "toolchain_type", + deprecation = "instead use `@rules_rust//wasm_bindgen:toolchain_type`", + tags = ["manual"], +) bzl_library( name = "bzl_lib", @@ -32,5 +41,5 @@ rust_wasm_bindgen_toolchain( toolchain( name = "default_wasm_bindgen_toolchain", toolchain = "default_wasm_bindgen_toolchain_impl", - toolchain_type = "//wasm_bindgen:wasm_bindgen_toolchain", + toolchain_type = "//wasm_bindgen:toolchain_type", ) diff --git a/wasm_bindgen/wasm_bindgen.bzl b/wasm_bindgen/wasm_bindgen.bzl index 81ba1dc78e..9794313b38 100644 --- a/wasm_bindgen/wasm_bindgen.bzl +++ b/wasm_bindgen/wasm_bindgen.bzl @@ -58,7 +58,7 @@ rust_bindgen_toolchain( toolchain( name = "wasm_bindgen_toolchain", toolchain = "wasm_bindgen_toolchain_impl", - toolchain_type = "@rules_rust//wasm_bindgen:wasm_bindgen_toolchain", + toolchain_type = "@rules_rust//wasm_bindgen:toolchain_type", ) ``` From 67e204ff22338d58e653b49715067d8cd2a49ac7 Mon Sep 17 00:00:00 2001 From: Parker Timmerman Date: Mon, 1 Aug 2022 11:12:56 -0400 Subject: [PATCH 03/26] fix: `rust_doc_test` failure to find params file (#1418) **Context** Today `rust_doc_test` fails when Bazel [Args](https://docs.bazel.build/versions/main/skylark/lib/Args.html) "spill" over to a file. To a user this failure is seemingly random because Bazel will auto-magically spill `Args` onto a file when there are too many args for the command line, or when it can improve performance. The generated test script, e.g. `hellolib.rustdoc_test.sh`, is then run from runfiles, which is separate from the Arg file Bazel created. It's especially tricky because the amount of command line args Windows supports is < macOS < Linux, so there's a "silent" OS dependency here too. **Solution** This PR fixes the issue by manually declaring a params file, e.g. `hellolib.rustdoc_opt_params`, that is a sibling file to our test runner, `hellolib.rustdoc_test.sh`. We then pass the path of this optional params file to our test writer. The test writer checks for the presence of the Bazel Args file, and if it finds one, copies the content into our manually declared params file. Our manually declared params file then gets moved into runfiles with our test script. The test script can then find the file, and `rustdoc` picks up the args. Note: Today we detect the params file by matching a prefix of `@` and suffix of `.rustdoc_test.sh-0.params`. I'm not sure if this is accurate for all systems, or all versions of bazel. I tried the [`use_param_file`](https://docs.bazel.build/versions/main/skylark/lib/Args.html#use_param_file) option on `Args` to make it easier to detect a params file, but that seem to overwrite (or just generally effect) the other arguments we'd pass to `rustdoc_test_writer.rs`. Fixes #1233 --- crate_universe/BUILD.bazel | 7 --- crate_universe/src/cli.rs | 6 ++- crate_universe/src/cli/generate.rs | 2 +- crate_universe/src/cli/query.rs | 2 +- crate_universe/src/cli/splice.rs | 2 +- crate_universe/src/cli/vendor.rs | 2 +- rust/private/rustdoc_test.bzl | 33 +++++++++--- tools/rustdoc/rustdoc_test_writer.rs | 76 ++++++++++++++++++++++++++++ 8 files changed, 112 insertions(+), 18 deletions(-) diff --git a/crate_universe/BUILD.bazel b/crate_universe/BUILD.bazel index 203a4d2fd8..10ad57c7b7 100644 --- a/crate_universe/BUILD.bazel +++ b/crate_universe/BUILD.bazel @@ -124,11 +124,4 @@ rust_doc( rust_doc_test( name = "rustdoc_test", crate = ":cargo_bazel", - # TODO: This target fails on some platforms with the error tracked in: - # https://github.com/bazelbuild/rules_rust/issues/1233 - target_compatible_with = select({ - "@platforms//os:macos": ["@platforms//:incompatible"], - "@platforms//os:windows": ["@platforms//:incompatible"], - "//conditions:default": [], - }), ) diff --git a/crate_universe/src/cli.rs b/crate_universe/src/cli.rs index 2ed27accd9..fdff844178 100644 --- a/crate_universe/src/cli.rs +++ b/crate_universe/src/cli.rs @@ -19,7 +19,11 @@ pub use splice::splice; pub use vendor::vendor; #[derive(Parser, Debug)] -#[clap(name = "cargo-bazel", about, version)] +#[clap( + name = "cargo-bazel", + about = "crate_universe` is a collection of tools which use Cargo to generate build targets for Bazel.", + version +)] pub enum Options { /// Generate Bazel Build files from a Cargo manifest. Generate(GenerateOptions), diff --git a/crate_universe/src/cli/generate.rs b/crate_universe/src/cli/generate.rs index cf5e77068b..3fdc97e33e 100644 --- a/crate_universe/src/cli/generate.rs +++ b/crate_universe/src/cli/generate.rs @@ -16,7 +16,7 @@ use crate::splicing::SplicingManifest; /// Command line options for the `generate` subcommand #[derive(Parser, Debug)] -#[clap(about, version)] +#[clap(about = "Command line options for the `generate` subcommand", version)] pub struct GenerateOptions { /// The path to a Cargo binary to use for gathering metadata #[clap(long, env = "CARGO")] diff --git a/crate_universe/src/cli/query.rs b/crate_universe/src/cli/query.rs index 668f64fc80..19087abee6 100644 --- a/crate_universe/src/cli/query.rs +++ b/crate_universe/src/cli/query.rs @@ -13,7 +13,7 @@ use crate::splicing::SplicingManifest; /// Command line options for the `query` subcommand #[derive(Parser, Debug)] -#[clap(about, version)] +#[clap(about = "Command line options for the `query` subcommand", version)] pub struct QueryOptions { /// The lockfile path for reproducible Cargo->Bazel renderings #[clap(long)] diff --git a/crate_universe/src/cli/splice.rs b/crate_universe/src/cli/splice.rs index f5077bfe3c..213ee34124 100644 --- a/crate_universe/src/cli/splice.rs +++ b/crate_universe/src/cli/splice.rs @@ -11,7 +11,7 @@ use crate::splicing::{generate_lockfile, Splicer, SplicingManifest, WorkspaceMet /// Command line options for the `splice` subcommand #[derive(Parser, Debug)] -#[clap(about, version)] +#[clap(about = "Command line options for the `splice` subcommand", version)] pub struct SpliceOptions { /// A generated manifest of splicing inputs #[clap(long)] diff --git a/crate_universe/src/cli/vendor.rs b/crate_universe/src/cli/vendor.rs index 366bb686b2..0b9054171b 100644 --- a/crate_universe/src/cli/vendor.rs +++ b/crate_universe/src/cli/vendor.rs @@ -19,7 +19,7 @@ use crate::splicing::{generate_lockfile, Splicer, SplicingManifest, WorkspaceMet /// Command line options for the `vendor` subcommand #[derive(Parser, Debug)] -#[clap(about, version)] +#[clap(about = "Command line options for the `vendor` subcommand", version)] pub struct VendorOptions { /// The path to a Cargo binary to use for gathering metadata #[clap(long, env = "CARGO")] diff --git a/rust/private/rustdoc_test.bzl b/rust/private/rustdoc_test.bzl index c2425b0b29..a2ee98c4d9 100644 --- a/rust/private/rustdoc_test.bzl +++ b/rust/private/rustdoc_test.bzl @@ -19,7 +19,7 @@ load("//rust/private:providers.bzl", "CrateInfo") load("//rust/private:rustdoc.bzl", "rustdoc_compile_action") load("//rust/private:utils.bzl", "dedent", "find_toolchain", "transform_deps") -def _construct_writer_arguments(ctx, test_runner, action, crate_info): +def _construct_writer_arguments(ctx, test_runner, opt_test_params, action, crate_info): """Construct arguments and environment variables specific to `rustdoc_test_writer`. This is largely solving for the fact that tests run from a runfiles directory @@ -29,6 +29,7 @@ def _construct_writer_arguments(ctx, test_runner, action, crate_info): Args: ctx (ctx): The rule's context object. test_runner (File): The test_runner output file declared by `rustdoc_test`. + opt_test_params (File): An output file we can optionally use to store params for `rustdoc`. action (struct): Action arguments generated by `rustdoc_compile_action`. crate_info (CrateInfo): The provider of the crate who's docs are being tested. @@ -43,6 +44,9 @@ def _construct_writer_arguments(ctx, test_runner, action, crate_info): # Track the output path where the test writer should write the test writer_args.add("--output={}".format(test_runner.path)) + # Track where the test writer should move "spilled" Args to + writer_args.add("--optional_test_params={}".format(opt_test_params.path)) + # Track what environment variables should be written to the test runner writer_args.add("--action_env=DEVELOPER_DIR") writer_args.add("--action_env=PATHEXT") @@ -56,19 +60,29 @@ def _construct_writer_arguments(ctx, test_runner, action, crate_info): # files. To ensure rustdoc can find the appropriate dependencies, the # file roots are identified and tracked for each dependency so it can be # stripped from the test runner. + + # Collect and dedupe all of the file roots in a list before appending + # them to args to prevent generating a large amount of identical args + roots = [] for dep in crate_info.deps.to_list(): dep_crate_info = getattr(dep, "crate_info", None) dep_dep_info = getattr(dep, "dep_info", None) if dep_crate_info: root = dep_crate_info.output.root.path - writer_args.add("--strip_substring={}/".format(root)) + if not root in roots: + roots.append(root) if dep_dep_info: for direct_dep in dep_dep_info.direct_crates.to_list(): root = direct_dep.dep.output.root.path - writer_args.add("--strip_substring={}/".format(root)) + if not root in roots: + roots.append(root) for transitive_dep in dep_dep_info.transitive_crates.to_list(): root = transitive_dep.output.root.path - writer_args.add("--strip_substring={}/".format(root)) + if not root in roots: + roots.append(root) + + for root in roots: + writer_args.add("--strip_substring={}/".format(root)) # Indicate that the rustdoc_test args are over. writer_args.add("--") @@ -116,6 +130,12 @@ def _rust_doc_test_impl(ctx): else: test_runner = ctx.actions.declare_file(ctx.label.name + ".rustdoc_test.sh") + # Bazel will auto-magically spill params to a file, if they are too many for a given OSes shell + # (e.g. Windows ~32k, Linux ~2M). The executable script (aka test_runner) that gets generated, + # is run from the runfiles, which is separate from the params_file Bazel generates. To handle + # this case, we declare our own params file, that the test_writer will populate, if necessary + opt_test_params = ctx.actions.declare_file(ctx.label.name + ".rustdoc_opt_params", sibling = test_runner) + # Add the current crate as an extern for the compile action rustdoc_flags = [ "--extern", @@ -136,6 +156,7 @@ def _rust_doc_test_impl(ctx): writer_args, env = _construct_writer_arguments( ctx = ctx, test_runner = test_runner, + opt_test_params = opt_test_params, action = action, crate_info = crate_info, ) @@ -151,12 +172,12 @@ def _rust_doc_test_impl(ctx): tools = tools, arguments = [writer_args] + action.arguments, env = action.env, - outputs = [test_runner], + outputs = [test_runner, opt_test_params], ) return [DefaultInfo( files = depset([test_runner]), - runfiles = ctx.runfiles(files = tools, transitive_files = action.inputs), + runfiles = ctx.runfiles(files = tools + [opt_test_params], transitive_files = action.inputs), executable = test_runner, )] diff --git a/tools/rustdoc/rustdoc_test_writer.rs b/tools/rustdoc/rustdoc_test_writer.rs index 6803e8b9f0..0920c747a8 100644 --- a/tools/rustdoc/rustdoc_test_writer.rs +++ b/tools/rustdoc/rustdoc_test_writer.rs @@ -6,6 +6,7 @@ use std::cmp::Reverse; use std::collections::{BTreeMap, BTreeSet}; use std::env; use std::fs; +use std::io::{BufRead, BufReader}; use std::path::{Path, PathBuf}; #[derive(Debug)] @@ -19,6 +20,10 @@ struct Options { /// The path where the script should be written. output: PathBuf, + /// If Bazel generated a params file, we may need to strip roots from it. + /// This is the path where we will output our stripped params file. + optional_output_params_file: PathBuf, + /// The `argv` of the configured rustdoc build action. action_argv: Vec, } @@ -50,6 +55,13 @@ fn parse_args() -> Options { .map(PathBuf::from) .expect("Missing `--output` argument"); + let optional_output_params_file = writer_args + .iter() + .find(|arg| arg.starts_with("--optional_test_params=")) + .and_then(|arg| arg.splitn(2, '=').last()) + .map(PathBuf::from) + .expect("Missing `--optional_test_params` argument"); + let (strip_substring_args, writer_args): (Vec, Vec) = writer_args .into_iter() .partition(|arg| arg.starts_with("--strip_substring=")); @@ -85,10 +97,73 @@ fn parse_args() -> Options { env_keys, strip_substrings, output, + optional_output_params_file, action_argv, } } +/// Expand the Bazel Arg file and write it into our manually defined params file +fn expand_params_file(mut options: Options) -> Options { + let params_extension = if cfg!(target_family = "windows") { + ".rustdoc_test.bat-0.params" + } else { + ".rustdoc_test.sh-0.params" + }; + + // We always need to produce the params file, we might overwrite this later though + fs::write(&options.optional_output_params_file, b"unused") + .expect("Failed to write params file"); + + // extract the path for the params file, if it exists + let params_path = match options.action_argv.pop() { + // Found the params file! + Some(arg) if arg.starts_with('@') && arg.ends_with(params_extension) => { + let path_str = arg + .strip_prefix('@') + .expect("Checked that there is an @ prefix"); + PathBuf::from(path_str) + } + // No params file present, exit early + Some(arg) => { + options.action_argv.push(arg); + return options; + } + None => return options, + }; + + // read the params file + let params_file = fs::File::open(params_path).expect("Failed to read the rustdoc params file"); + let content: Vec<_> = BufReader::new(params_file) + .lines() + .map(|line| line.expect("failed to parse param as String")) + // Remove any substrings found in the argument + .map(|arg| { + let mut stripped_arg = arg; + options + .strip_substrings + .iter() + .for_each(|substring| stripped_arg = stripped_arg.replace(substring, "")); + stripped_arg + }) + .collect(); + + // add all arguments + fs::write(&options.optional_output_params_file, content.join("\n")) + .expect("Failed to write test runner"); + + // append the path of our new params file + let formatted_params_path = format!( + "@{}", + options + .optional_output_params_file + .to_str() + .expect("invalid UTF-8") + ); + options.action_argv.push(formatted_params_path); + + options +} + /// Write a unix compatible test runner fn write_test_runner_unix( path: &Path, @@ -195,6 +270,7 @@ fn write_test_runner( fn main() { let opt = parse_args(); + let opt = expand_params_file(opt); let env: BTreeMap = env::vars() .into_iter() From 83a03ab03e112bf4ba168b3dd03462b763b1ccb2 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Tue, 2 Aug 2022 06:11:47 -0700 Subject: [PATCH 04/26] Updated proto rules to fetch dependencies using crate_universe (#1491) * Updated proto rules to fetch dependencies using crate_universe * Regenerated dependencies * Regenerate documentation --- docs/flatten.md | 4 +- docs/rust_proto.md | 4 +- proto/3rdparty/BUILD.bazel | 80 ++ proto/3rdparty/Cargo.Bazel.lock | 792 ++++++++++++ .../3rdparty/crates/BUILD.autocfg-1.1.0.bazel | 90 ++ .../3rdparty/crates/BUILD.base64-0.9.3.bazel | 92 ++ proto/3rdparty/crates/BUILD.bazel | 89 ++ .../crates/BUILD.bitflags-1.3.2.bazel | 91 ++ .../crates/BUILD.byteorder-1.4.3.bazel | 92 ++ .../3rdparty/crates/BUILD.bytes-0.4.12.bazel | 92 ++ .../3rdparty/crates/BUILD.cfg-if-0.1.10.bazel | 90 ++ .../3rdparty/crates/BUILD.cfg-if-1.0.0.bazel | 90 ++ .../crates/BUILD.cloudabi-0.0.3.bazel | 93 ++ .../crates/BUILD.crossbeam-deque-0.7.4.bazel | 93 ++ .../crates/BUILD.crossbeam-epoch-0.8.2.bazel | 187 +++ .../crates/BUILD.crossbeam-queue-0.2.3.bazel | 95 ++ .../crates/BUILD.crossbeam-utils-0.7.2.bazel | 183 +++ proto/3rdparty/crates/BUILD.fnv-1.0.7.bazel | 92 ++ .../crates/BUILD.fuchsia-zircon-0.3.3.bazel | 92 ++ .../BUILD.fuchsia-zircon-sys-0.3.3.bazel | 90 ++ .../crates/BUILD.futures-0.1.31.bazel | 93 ++ .../crates/BUILD.futures-cpupool-0.1.8.bazel | 94 ++ proto/3rdparty/crates/BUILD.grpc-0.6.2.bazel | 102 ++ .../crates/BUILD.grpc-compiler-0.6.2.bazel | 161 +++ .../crates/BUILD.hermit-abi-0.1.19.bazel | 92 ++ .../3rdparty/crates/BUILD.httpbis-0.7.0.bazel | 227 ++++ proto/3rdparty/crates/BUILD.iovec-0.1.4.bazel | 117 ++ .../crates/BUILD.kernel32-sys-0.2.2.bazel | 176 +++ .../crates/BUILD.lazy_static-1.4.0.bazel | 93 ++ .../3rdparty/crates/BUILD.libc-0.2.126.bazel | 178 +++ .../crates/BUILD.lock_api-0.3.4.bazel | 91 ++ proto/3rdparty/crates/BUILD.log-0.3.9.bazel | 93 ++ proto/3rdparty/crates/BUILD.log-0.4.17.bazel | 177 +++ .../crates/BUILD.maybe-uninit-2.0.0.bazel | 174 +++ .../crates/BUILD.memoffset-0.5.6.bazel | 177 +++ proto/3rdparty/crates/BUILD.mio-0.6.23.bazel | 151 +++ .../3rdparty/crates/BUILD.mio-uds-0.6.8.bazel | 119 ++ proto/3rdparty/crates/BUILD.miow-0.2.2.bazel | 94 ++ proto/3rdparty/crates/BUILD.net2-0.2.37.bazel | 133 ++ .../crates/BUILD.num_cpus-1.13.1.bazel | 125 ++ .../crates/BUILD.parking_lot-0.9.0.bazel | 179 +++ .../crates/BUILD.parking_lot_core-0.6.2.bazel | 230 ++++ .../crates/BUILD.protobuf-2.8.2.bazel | 179 +++ .../crates/BUILD.protobuf-codegen-2.8.2.bazel | 226 ++++ .../crates/BUILD.redox_syscall-0.1.57.bazel | 90 ++ .../crates/BUILD.rustc_version-0.2.3.bazel | 91 ++ .../3rdparty/crates/BUILD.safemem-0.3.3.bazel | 92 ++ .../crates/BUILD.scoped-tls-0.1.2.bazel | 90 ++ .../crates/BUILD.scopeguard-1.1.0.bazel | 90 ++ .../3rdparty/crates/BUILD.semver-0.9.0.bazel | 92 ++ .../crates/BUILD.semver-parser-0.7.0.bazel | 90 ++ proto/3rdparty/crates/BUILD.slab-0.3.0.bazel | 90 ++ proto/3rdparty/crates/BUILD.slab-0.4.7.bazel | 179 +++ .../crates/BUILD.smallvec-0.6.14.bazel | 93 ++ .../crates/BUILD.tls-api-0.1.22.bazel | 91 ++ .../crates/BUILD.tls-api-stub-0.1.22.bazel | 92 ++ .../3rdparty/crates/BUILD.tokio-0.1.22.bazel | 173 +++ .../crates/BUILD.tokio-codec-0.1.2.bazel | 93 ++ .../crates/BUILD.tokio-core-0.1.18.bazel | 101 ++ .../BUILD.tokio-current-thread-0.1.7.bazel | 92 ++ .../crates/BUILD.tokio-executor-0.1.10.bazel | 92 ++ .../crates/BUILD.tokio-fs-0.1.7.bazel | 93 ++ .../crates/BUILD.tokio-io-0.1.13.bazel | 93 ++ .../crates/BUILD.tokio-reactor-0.1.12.bazel | 101 ++ .../crates/BUILD.tokio-sync-0.1.8.bazel | 92 ++ .../crates/BUILD.tokio-tcp-0.1.4.bazel | 96 ++ .../BUILD.tokio-threadpool-0.1.18.bazel | 99 ++ .../crates/BUILD.tokio-timer-0.1.2.bazel | 92 ++ .../crates/BUILD.tokio-timer-0.2.13.bazel | 94 ++ .../crates/BUILD.tokio-tls-api-0.1.22.bazel | 93 ++ .../crates/BUILD.tokio-udp-0.1.6.bazel | 97 ++ .../crates/BUILD.tokio-uds-0.1.7.bazel | 99 ++ .../crates/BUILD.tokio-uds-0.2.7.bazel | 100 ++ .../crates/BUILD.unix_socket-0.5.0.bazel | 92 ++ proto/3rdparty/crates/BUILD.void-1.0.2.bazel | 92 ++ .../3rdparty/crates/BUILD.winapi-0.2.8.bazel | 90 ++ .../3rdparty/crates/BUILD.winapi-0.3.9.bazel | 206 +++ .../crates/BUILD.winapi-build-0.1.1.bazel | 90 ++ ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 174 +++ ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 174 +++ .../crates/BUILD.ws2_32-sys-0.2.1.bazel | 176 +++ proto/3rdparty/crates/crates.bzl | 25 + proto/3rdparty/crates/defs.bzl | 1143 +++++++++++++++++ proto/{ => 3rdparty}/patches/BUILD.bazel | 6 +- .../patch => 3rdparty/patches}/README.md | 16 +- ...ogle_protobuf-v3.10.0-bzl_visibility.patch | 0 .../patches}/protobuf-2.8.2.patch | 0 proto/BUILD.bazel | 15 +- proto/patches/README.md | 3 - proto/raze/BUILD.bazel | 73 +- proto/raze/Cargo.lock | 782 ----------- proto/raze/Cargo.toml | 47 - proto/raze/crates.bzl | 768 ----------- proto/raze/patch/BUILD.bazel | 19 - proto/raze/remote/BUILD.autocfg-1.0.0.bazel | 64 - proto/raze/remote/BUILD.base64-0.9.3.bazel | 68 - proto/raze/remote/BUILD.bazel | 17 - proto/raze/remote/BUILD.bitflags-1.2.1.bazel | 57 - proto/raze/remote/BUILD.byteorder-1.3.4.bazel | 60 - proto/raze/remote/BUILD.bytes-0.4.12.bazel | 78 -- proto/raze/remote/BUILD.cfg-if-0.1.10.bazel | 56 - proto/raze/remote/BUILD.cloudabi-0.0.3.bazel | 57 - .../remote/BUILD.crossbeam-deque-0.7.3.bazel | 65 - .../remote/BUILD.crossbeam-epoch-0.8.2.bazel | 75 -- .../remote/BUILD.crossbeam-queue-0.2.1.bazel | 62 - .../remote/BUILD.crossbeam-utils-0.7.2.bazel | 75 -- proto/raze/remote/BUILD.fnv-1.0.6.bazel | 54 - .../remote/BUILD.fuchsia-zircon-0.3.3.bazel | 56 - .../BUILD.fuchsia-zircon-sys-0.3.3.bazel | 56 - proto/raze/remote/BUILD.futures-0.1.29.bazel | 119 -- .../remote/BUILD.futures-cpupool-0.1.8.bazel | 60 - proto/raze/remote/BUILD.grpc-0.6.2.bazel | 72 -- .../remote/BUILD.grpc-compiler-0.6.2.bazel | 83 -- .../raze/remote/BUILD.hermit-abi-0.1.11.bazel | 56 - proto/raze/remote/BUILD.httpbis-0.7.0.bazel | 100 -- proto/raze/remote/BUILD.iovec-0.1.4.bazel | 79 -- .../remote/BUILD.kernel32-sys-0.2.2.bazel | 66 - .../raze/remote/BUILD.lazy_static-1.4.0.bazel | 59 - proto/raze/remote/BUILD.libc-0.2.69.bazel | 60 - proto/raze/remote/BUILD.lock_api-0.3.4.bazel | 55 - proto/raze/remote/BUILD.log-0.3.9.bazel | 57 - proto/raze/remote/BUILD.log-0.4.6.bazel | 58 - .../remote/BUILD.maybe-uninit-2.0.0.bazel | 58 - proto/raze/remote/BUILD.memoffset-0.5.4.bazel | 57 - proto/raze/remote/BUILD.mio-0.6.21.bazel | 101 -- proto/raze/remote/BUILD.mio-uds-0.6.7.bazel | 85 -- proto/raze/remote/BUILD.miow-0.2.1.bazel | 58 - proto/raze/remote/BUILD.net2-0.2.33.bazel | 93 -- proto/raze/remote/BUILD.num_cpus-1.13.0.bazel | 57 - .../raze/remote/BUILD.parking_lot-0.9.0.bazel | 59 - .../remote/BUILD.parking_lot_core-0.6.2.bazel | 92 -- proto/raze/remote/BUILD.protobuf-2.8.2.bazel | 63 - .../remote/BUILD.protobuf-codegen-2.8.2.bazel | 107 -- .../remote/BUILD.redox_syscall-0.1.56.bazel | 63 - .../remote/BUILD.rustc_version-0.2.3.bazel | 55 - proto/raze/remote/BUILD.safemem-0.3.3.bazel | 56 - .../raze/remote/BUILD.scoped-tls-0.1.2.bazel | 54 - .../raze/remote/BUILD.scopeguard-1.1.0.bazel | 56 - proto/raze/remote/BUILD.semver-0.9.0.bazel | 62 - .../remote/BUILD.semver-parser-0.7.0.bazel | 54 - proto/raze/remote/BUILD.slab-0.3.0.bazel | 54 - proto/raze/remote/BUILD.slab-0.4.2.bazel | 56 - proto/raze/remote/BUILD.smallvec-0.6.13.bazel | 59 - proto/raze/remote/BUILD.tls-api-0.1.22.bazel | 55 - .../remote/BUILD.tls-api-stub-0.1.22.bazel | 56 - proto/raze/remote/BUILD.tokio-0.1.22.bazel | 172 --- .../raze/remote/BUILD.tokio-codec-0.1.2.bazel | 65 - .../raze/remote/BUILD.tokio-core-0.1.17.bazel | 119 -- .../BUILD.tokio-current-thread-0.1.7.bazel | 58 - .../remote/BUILD.tokio-executor-0.1.10.bazel | 58 - proto/raze/remote/BUILD.tokio-fs-0.1.7.bazel | 65 - proto/raze/remote/BUILD.tokio-io-0.1.13.bazel | 61 - .../remote/BUILD.tokio-reactor-0.1.12.bazel | 67 - .../raze/remote/BUILD.tokio-sync-0.1.8.bazel | 84 -- proto/raze/remote/BUILD.tokio-tcp-0.1.4.bazel | 70 - .../BUILD.tokio-threadpool-0.1.18.bazel | 79 -- .../raze/remote/BUILD.tokio-timer-0.1.2.bazel | 60 - .../remote/BUILD.tokio-timer-0.2.13.bazel | 74 -- .../remote/BUILD.tokio-tls-api-0.1.22.bazel | 61 - proto/raze/remote/BUILD.tokio-udp-0.1.6.bazel | 63 - proto/raze/remote/BUILD.tokio-uds-0.1.7.bazel | 63 - proto/raze/remote/BUILD.tokio-uds-0.2.6.bazel | 68 - .../raze/remote/BUILD.unix_socket-0.5.0.bazel | 56 - proto/raze/remote/BUILD.void-1.0.2.bazel | 56 - proto/raze/remote/BUILD.winapi-0.2.8.bazel | 54 - proto/raze/remote/BUILD.winapi-0.3.8.bazel | 67 - .../remote/BUILD.winapi-build-0.1.1.bazel | 63 - ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 56 - ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 56 - .../raze/remote/BUILD.ws2_32-sys-0.2.1.bazel | 66 - proto/repositories.bzl | 6 +- proto/toolchain.bzl | 8 +- 172 files changed, 11191 insertions(+), 6801 deletions(-) create mode 100644 proto/3rdparty/BUILD.bazel create mode 100644 proto/3rdparty/Cargo.Bazel.lock create mode 100644 proto/3rdparty/crates/BUILD.autocfg-1.1.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.base64-0.9.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.bazel create mode 100644 proto/3rdparty/crates/BUILD.bitflags-1.3.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.byteorder-1.4.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.bytes-0.4.12.bazel create mode 100644 proto/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel create mode 100644 proto/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel create mode 100644 proto/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.fnv-1.0.7.bazel create mode 100644 proto/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.futures-0.1.31.bazel create mode 100644 proto/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel create mode 100644 proto/3rdparty/crates/BUILD.grpc-0.6.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel create mode 100644 proto/3rdparty/crates/BUILD.httpbis-0.7.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.iovec-0.1.4.bazel create mode 100644 proto/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.libc-0.2.126.bazel create mode 100644 proto/3rdparty/crates/BUILD.lock_api-0.3.4.bazel create mode 100644 proto/3rdparty/crates/BUILD.log-0.3.9.bazel create mode 100644 proto/3rdparty/crates/BUILD.log-0.4.17.bazel create mode 100644 proto/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.memoffset-0.5.6.bazel create mode 100644 proto/3rdparty/crates/BUILD.mio-0.6.23.bazel create mode 100644 proto/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel create mode 100644 proto/3rdparty/crates/BUILD.miow-0.2.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.net2-0.2.37.bazel create mode 100644 proto/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel create mode 100644 proto/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.parking_lot_core-0.6.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.protobuf-2.8.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel create mode 100644 proto/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.safemem-0.3.3.bazel create mode 100644 proto/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.semver-0.9.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.slab-0.3.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.slab-0.4.7.bazel create mode 100644 proto/3rdparty/crates/BUILD.smallvec-0.6.14.bazel create mode 100644 proto/3rdparty/crates/BUILD.tls-api-0.1.22.bazel create mode 100644 proto/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-0.1.22.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel create mode 100644 proto/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel create mode 100644 proto/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.void-1.0.2.bazel create mode 100644 proto/3rdparty/crates/BUILD.winapi-0.2.8.bazel create mode 100644 proto/3rdparty/crates/BUILD.winapi-0.3.9.bazel create mode 100644 proto/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel create mode 100644 proto/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel create mode 100644 proto/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel create mode 100644 proto/3rdparty/crates/crates.bzl create mode 100644 proto/3rdparty/crates/defs.bzl rename proto/{ => 3rdparty}/patches/BUILD.bazel (78%) rename proto/{raze/patch => 3rdparty/patches}/README.md (66%) rename proto/{ => 3rdparty}/patches/com_google_protobuf-v3.10.0-bzl_visibility.patch (100%) rename proto/{raze/patch => 3rdparty/patches}/protobuf-2.8.2.patch (100%) delete mode 100644 proto/patches/README.md delete mode 100644 proto/raze/Cargo.lock delete mode 100644 proto/raze/Cargo.toml delete mode 100644 proto/raze/crates.bzl delete mode 100644 proto/raze/patch/BUILD.bazel delete mode 100644 proto/raze/remote/BUILD.autocfg-1.0.0.bazel delete mode 100644 proto/raze/remote/BUILD.base64-0.9.3.bazel delete mode 100644 proto/raze/remote/BUILD.bazel delete mode 100644 proto/raze/remote/BUILD.bitflags-1.2.1.bazel delete mode 100644 proto/raze/remote/BUILD.byteorder-1.3.4.bazel delete mode 100644 proto/raze/remote/BUILD.bytes-0.4.12.bazel delete mode 100644 proto/raze/remote/BUILD.cfg-if-0.1.10.bazel delete mode 100644 proto/raze/remote/BUILD.cloudabi-0.0.3.bazel delete mode 100644 proto/raze/remote/BUILD.crossbeam-deque-0.7.3.bazel delete mode 100644 proto/raze/remote/BUILD.crossbeam-epoch-0.8.2.bazel delete mode 100644 proto/raze/remote/BUILD.crossbeam-queue-0.2.1.bazel delete mode 100644 proto/raze/remote/BUILD.crossbeam-utils-0.7.2.bazel delete mode 100644 proto/raze/remote/BUILD.fnv-1.0.6.bazel delete mode 100644 proto/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel delete mode 100644 proto/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel delete mode 100644 proto/raze/remote/BUILD.futures-0.1.29.bazel delete mode 100644 proto/raze/remote/BUILD.futures-cpupool-0.1.8.bazel delete mode 100644 proto/raze/remote/BUILD.grpc-0.6.2.bazel delete mode 100644 proto/raze/remote/BUILD.grpc-compiler-0.6.2.bazel delete mode 100644 proto/raze/remote/BUILD.hermit-abi-0.1.11.bazel delete mode 100644 proto/raze/remote/BUILD.httpbis-0.7.0.bazel delete mode 100644 proto/raze/remote/BUILD.iovec-0.1.4.bazel delete mode 100644 proto/raze/remote/BUILD.kernel32-sys-0.2.2.bazel delete mode 100644 proto/raze/remote/BUILD.lazy_static-1.4.0.bazel delete mode 100644 proto/raze/remote/BUILD.libc-0.2.69.bazel delete mode 100644 proto/raze/remote/BUILD.lock_api-0.3.4.bazel delete mode 100644 proto/raze/remote/BUILD.log-0.3.9.bazel delete mode 100644 proto/raze/remote/BUILD.log-0.4.6.bazel delete mode 100644 proto/raze/remote/BUILD.maybe-uninit-2.0.0.bazel delete mode 100644 proto/raze/remote/BUILD.memoffset-0.5.4.bazel delete mode 100644 proto/raze/remote/BUILD.mio-0.6.21.bazel delete mode 100644 proto/raze/remote/BUILD.mio-uds-0.6.7.bazel delete mode 100644 proto/raze/remote/BUILD.miow-0.2.1.bazel delete mode 100644 proto/raze/remote/BUILD.net2-0.2.33.bazel delete mode 100644 proto/raze/remote/BUILD.num_cpus-1.13.0.bazel delete mode 100644 proto/raze/remote/BUILD.parking_lot-0.9.0.bazel delete mode 100644 proto/raze/remote/BUILD.parking_lot_core-0.6.2.bazel delete mode 100644 proto/raze/remote/BUILD.protobuf-2.8.2.bazel delete mode 100644 proto/raze/remote/BUILD.protobuf-codegen-2.8.2.bazel delete mode 100644 proto/raze/remote/BUILD.redox_syscall-0.1.56.bazel delete mode 100644 proto/raze/remote/BUILD.rustc_version-0.2.3.bazel delete mode 100644 proto/raze/remote/BUILD.safemem-0.3.3.bazel delete mode 100644 proto/raze/remote/BUILD.scoped-tls-0.1.2.bazel delete mode 100644 proto/raze/remote/BUILD.scopeguard-1.1.0.bazel delete mode 100644 proto/raze/remote/BUILD.semver-0.9.0.bazel delete mode 100644 proto/raze/remote/BUILD.semver-parser-0.7.0.bazel delete mode 100644 proto/raze/remote/BUILD.slab-0.3.0.bazel delete mode 100644 proto/raze/remote/BUILD.slab-0.4.2.bazel delete mode 100644 proto/raze/remote/BUILD.smallvec-0.6.13.bazel delete mode 100644 proto/raze/remote/BUILD.tls-api-0.1.22.bazel delete mode 100644 proto/raze/remote/BUILD.tls-api-stub-0.1.22.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-0.1.22.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-codec-0.1.2.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-core-0.1.17.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-current-thread-0.1.7.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-executor-0.1.10.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-fs-0.1.7.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-io-0.1.13.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-reactor-0.1.12.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-sync-0.1.8.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-tcp-0.1.4.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-threadpool-0.1.18.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-timer-0.1.2.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-timer-0.2.13.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-tls-api-0.1.22.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-udp-0.1.6.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-uds-0.1.7.bazel delete mode 100644 proto/raze/remote/BUILD.tokio-uds-0.2.6.bazel delete mode 100644 proto/raze/remote/BUILD.unix_socket-0.5.0.bazel delete mode 100644 proto/raze/remote/BUILD.void-1.0.2.bazel delete mode 100644 proto/raze/remote/BUILD.winapi-0.2.8.bazel delete mode 100644 proto/raze/remote/BUILD.winapi-0.3.8.bazel delete mode 100644 proto/raze/remote/BUILD.winapi-build-0.1.1.bazel delete mode 100644 proto/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel delete mode 100644 proto/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel delete mode 100644 proto/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel diff --git a/docs/flatten.md b/docs/flatten.md index 150e768c39..725a9fc8b0 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -830,9 +830,9 @@ See @rules_rust//proto:BUILD for examples of defining the toolchain. | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | | edition | The edition used by the generated rust source. | String | optional | "" | -| grpc_compile_deps | The crates the generated grpc libraries depends on. | List of labels | optional | [Label("//proto/raze:protobuf"), Label("//proto/raze:grpc"), Label("//proto/raze:tls_api"), Label("//proto/raze:tls_api_stub")] | +| grpc_compile_deps | The crates the generated grpc libraries depends on. | List of labels | optional | [Label("//proto/3rdparty/crates:protobuf"), Label("//proto/3rdparty/crates:grpc"), Label("//proto/3rdparty/crates:tls-api"), Label("//proto/3rdparty/crates:tls-api-stub")] | | grpc_plugin | The location of the Rust protobuf compiler plugin to generate rust gRPC stubs. | Label | optional | //proto:protoc_gen_rust_grpc | -| proto_compile_deps | The crates the generated protobuf libraries depends on. | List of labels | optional | [Label("//proto/raze:protobuf")] | +| proto_compile_deps | The crates the generated protobuf libraries depends on. | List of labels | optional | [Label("//proto/3rdparty/crates:protobuf")] | | proto_plugin | The location of the Rust protobuf compiler plugin used to generate rust sources. | Label | optional | //proto:protoc_gen_rust | | protoc | The location of the protoc binary. It should be an executable target. | Label | optional | @com_google_protobuf//:protoc | diff --git a/docs/rust_proto.md b/docs/rust_proto.md index 2f7b40c47a..479cdb533c 100644 --- a/docs/rust_proto.md +++ b/docs/rust_proto.md @@ -253,9 +253,9 @@ See @rules_rust//proto:BUILD for examples of defining the toolchain. | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | | edition | The edition used by the generated rust source. | String | optional | "" | -| grpc_compile_deps | The crates the generated grpc libraries depends on. | List of labels | optional | [Label("//proto/raze:protobuf"), Label("//proto/raze:grpc"), Label("//proto/raze:tls_api"), Label("//proto/raze:tls_api_stub")] | +| grpc_compile_deps | The crates the generated grpc libraries depends on. | List of labels | optional | [Label("//proto/3rdparty/crates:protobuf"), Label("//proto/3rdparty/crates:grpc"), Label("//proto/3rdparty/crates:tls-api"), Label("//proto/3rdparty/crates:tls-api-stub")] | | grpc_plugin | The location of the Rust protobuf compiler plugin to generate rust gRPC stubs. | Label | optional | //proto:protoc_gen_rust_grpc | -| proto_compile_deps | The crates the generated protobuf libraries depends on. | List of labels | optional | [Label("//proto/raze:protobuf")] | +| proto_compile_deps | The crates the generated protobuf libraries depends on. | List of labels | optional | [Label("//proto/3rdparty/crates:protobuf")] | | proto_plugin | The location of the Rust protobuf compiler plugin used to generate rust sources. | Label | optional | //proto:protoc_gen_rust | | protoc | The location of the protoc binary. It should be an executable target. | Label | optional | @com_google_protobuf//:protoc | diff --git a/proto/3rdparty/BUILD.bazel b/proto/3rdparty/BUILD.bazel new file mode 100644 index 0000000000..4bbcd71923 --- /dev/null +++ b/proto/3rdparty/BUILD.bazel @@ -0,0 +1,80 @@ +load("@bazel_skylib//:bzl_library.bzl", "bzl_library") +load("//crate_universe:defs.bzl", "crate", "crates_vendor") + +crates_vendor( + name = "crates_vendor", + annotations = { + "lazy_static": [crate.annotation( + rustc_flags = [ + "--cfg=lazy_static_heap_impl", + ], + )], + "protobuf": [crate.annotation( + patch_args = ["-p1"], + patches = ["@rules_rust//proto/3rdparty/patches:protobuf-2.8.2.patch"], + )], + }, + cargo_lockfile = "Cargo.Bazel.lock", + mode = "remote", + packages = { + "grpc": crate.spec( + version = "0.6.2", + ), + "grpc-compiler": crate.spec( + version = "0.6.2", + ), + "log": crate.spec( + version = "0.4, 0.4.7", + ), + "protobuf": crate.spec( + features = ["with-bytes"], + version = "2.8.2", + ), + "protobuf-codegen": crate.spec( + version = "2.8.2", + ), + "tls-api": crate.spec( + version = "0.1.22", + ), + "tls-api-stub": crate.spec( + version = "0.1.22", + ), + }, + repository_name = "rules_rust_proto", + tags = ["manual"], +) + +alias( + name = "wasm_bindgen_cli", + actual = "@rules_rust_wasm_bindgen_cli", + tags = ["manual"], + visibility = ["//visibility:public"], +) + +alias( + name = "wasm_bindgen", + actual = "//wasm_bindgen/3rdparty/crates:wasm-bindgen", + visibility = ["//visibility:public"], +) + +bzl_library( + name = "bzl_lib", + srcs = glob(["**/*.bzl"]) + [ + "//proto/3rdparty/crates:defs.bzl", + "//proto/3rdparty/crates:crates.bzl", + ], + visibility = ["//proto:__pkg__"], +) + +filegroup( + name = "distro", + srcs = glob([ + "*.bzl", + "*.bazel", + ]) + [ + "//proto/3rdparty/patches:distro", + "//proto/3rdparty/crates:srcs", + "Cargo.Bazel.lock", + ], + visibility = ["//proto:__pkg__"], +) diff --git a/proto/3rdparty/Cargo.Bazel.lock b/proto/3rdparty/Cargo.Bazel.lock new file mode 100644 index 0000000000..e2eaa42b2b --- /dev/null +++ b/proto/3rdparty/Cargo.Bazel.lock @@ -0,0 +1,792 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "base64" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" +dependencies = [ + "byteorder", + "safemem", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + +[[package]] +name = "bytes" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" +dependencies = [ + "byteorder", + "iovec", +] + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cloudabi" +version = "0.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" +dependencies = [ + "bitflags", +] + +[[package]] +name = "crossbeam-deque" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", + "maybe-uninit", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" +dependencies = [ + "autocfg", + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils", + "lazy_static", + "maybe-uninit", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-queue" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570" +dependencies = [ + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils", + "maybe-uninit", +] + +[[package]] +name = "crossbeam-utils" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" +dependencies = [ + "autocfg", + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static", +] + +[[package]] +name = "direct-cargo-bazel-deps" +version = "0.0.1" +dependencies = [ + "grpc", + "grpc-compiler", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "protobuf", + "protobuf-codegen", + "tls-api", + "tls-api-stub", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "fuchsia-zircon" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" +dependencies = [ + "bitflags", + "fuchsia-zircon-sys", +] + +[[package]] +name = "fuchsia-zircon-sys" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" + +[[package]] +name = "futures" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" + +[[package]] +name = "futures-cpupool" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" +dependencies = [ + "futures", + "num_cpus", +] + +[[package]] +name = "grpc" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2aaf1d741fe6f3413f1f9f71b99f5e4e26776d563475a8a53ce53a73a8534c1d" +dependencies = [ + "base64", + "bytes", + "futures", + "futures-cpupool", + "httpbis", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "protobuf", + "tls-api", + "tls-api-stub", + "tokio-core", + "tokio-io", + "tokio-tls-api", +] + +[[package]] +name = "grpc-compiler" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "907274ce8ee7b40a0d0b0db09022ea22846a47cfb1fc8ad2c983c70001b4ffb1" +dependencies = [ + "protobuf", + "protobuf-codegen", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "httpbis" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7689cfa896b2a71da4f16206af167542b75d242b6906313e53857972a92d5614" +dependencies = [ + "bytes", + "futures", + "futures-cpupool", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "net2", + "tls-api", + "tls-api-stub", + "tokio-core", + "tokio-io", + "tokio-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-tls-api", + "tokio-uds 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", + "unix_socket", + "void", +] + +[[package]] +name = "iovec" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" +dependencies = [ + "libc", +] + +[[package]] +name = "kernel32-sys" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" +dependencies = [ + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build", +] + +[[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.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" + +[[package]] +name = "lock_api" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" +dependencies = [ + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "log" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +dependencies = [ + "cfg-if 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "maybe-uninit" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" + +[[package]] +name = "memoffset" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mio" +version = "0.6.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4" +dependencies = [ + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "fuchsia-zircon", + "fuchsia-zircon-sys", + "iovec", + "kernel32-sys", + "libc", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "miow", + "net2", + "slab 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "mio-uds" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" +dependencies = [ + "iovec", + "libc", + "mio", +] + +[[package]] +name = "miow" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d" +dependencies = [ + "kernel32-sys", + "net2", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "ws2_32-sys", +] + +[[package]] +name = "net2" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae" +dependencies = [ + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "libc", + "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[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 = "parking_lot" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" +dependencies = [ + "lock_api", + "parking_lot_core", + "rustc_version", +] + +[[package]] +name = "parking_lot_core" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" +dependencies = [ + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "cloudabi", + "libc", + "redox_syscall", + "rustc_version", + "smallvec", + "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "protobuf" +version = "2.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70731852eec72c56d11226c8a5f96ad5058a3dab73647ca5f7ee351e464f2571" +dependencies = [ + "bytes", +] + +[[package]] +name = "protobuf-codegen" +version = "2.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d74b9cbbf2ac9a7169c85a3714ec16c51ee9ec7cfd511549527e9a7df720795" +dependencies = [ + "protobuf", +] + +[[package]] +name = "redox_syscall" +version = "0.1.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" + +[[package]] +name = "rustc_version" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver", +] + +[[package]] +name = "safemem" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" + +[[package]] +name = "scoped-tls" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28" + +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +[[package]] +name = "semver" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + +[[package]] +name = "slab" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" + +[[package]] +name = "slab" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +dependencies = [ + "autocfg", +] + +[[package]] +name = "smallvec" +version = "0.6.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0" +dependencies = [ + "maybe-uninit", +] + +[[package]] +name = "tls-api" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "049c03787a0595182357fbd487577947f4351b78ce20c3668f6d49f17feb13d1" +dependencies = [ + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tls-api-stub" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9a0cc8c149724db9de7d73a0e1bc80b1a74f5394f08c6f301e11f9c35fa061e" +dependencies = [ + "tls-api", + "void", +] + +[[package]] +name = "tokio" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" +dependencies = [ + "bytes", + "futures", + "mio", + "num_cpus", + "tokio-codec", + "tokio-current-thread", + "tokio-executor", + "tokio-fs", + "tokio-io", + "tokio-reactor", + "tokio-sync", + "tokio-tcp", + "tokio-threadpool", + "tokio-timer 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-udp", + "tokio-uds 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-codec" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b" +dependencies = [ + "bytes", + "futures", + "tokio-io", +] + +[[package]] +name = "tokio-core" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87b1395334443abca552f63d4f61d0486f12377c2ba8b368e523f89e828cffd4" +dependencies = [ + "bytes", + "futures", + "iovec", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "mio", + "scoped-tls", + "tokio", + "tokio-executor", + "tokio-io", + "tokio-reactor", + "tokio-timer 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-current-thread" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e" +dependencies = [ + "futures", + "tokio-executor", +] + +[[package]] +name = "tokio-executor" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671" +dependencies = [ + "crossbeam-utils", + "futures", +] + +[[package]] +name = "tokio-fs" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4" +dependencies = [ + "futures", + "tokio-io", + "tokio-threadpool", +] + +[[package]] +name = "tokio-io" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674" +dependencies = [ + "bytes", + "futures", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-reactor" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351" +dependencies = [ + "crossbeam-utils", + "futures", + "lazy_static", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "mio", + "num_cpus", + "parking_lot", + "slab 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor", + "tokio-io", + "tokio-sync", +] + +[[package]] +name = "tokio-sync" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee" +dependencies = [ + "fnv", + "futures", +] + +[[package]] +name = "tokio-tcp" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72" +dependencies = [ + "bytes", + "futures", + "iovec", + "mio", + "tokio-io", + "tokio-reactor", +] + +[[package]] +name = "tokio-threadpool" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89" +dependencies = [ + "crossbeam-deque", + "crossbeam-queue", + "crossbeam-utils", + "futures", + "lazy_static", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "num_cpus", + "slab 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor", +] + +[[package]] +name = "tokio-timer" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6131e780037787ff1b3f8aad9da83bca02438b72277850dd6ad0d455e0e20efc" +dependencies = [ + "futures", + "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-timer" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296" +dependencies = [ + "crossbeam-utils", + "futures", + "slab 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor", +] + +[[package]] +name = "tokio-tls-api" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68d0e040d5b1f4cfca70ec4f371229886a5de5bb554d272a4a8da73004a7b2c9" +dependencies = [ + "futures", + "tls-api", + "tokio-io", +] + +[[package]] +name = "tokio-udp" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82" +dependencies = [ + "bytes", + "futures", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "mio", + "tokio-codec", + "tokio-io", + "tokio-reactor", +] + +[[package]] +name = "tokio-uds" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65ae5d255ce739e8537221ed2942e0445f4b3b813daebac1c0050ddaaa3587f9" +dependencies = [ + "bytes", + "futures", + "iovec", + "libc", + "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", + "mio", + "mio-uds", + "tokio-core", + "tokio-io", +] + +[[package]] +name = "tokio-uds" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0" +dependencies = [ + "bytes", + "futures", + "iovec", + "libc", + "log 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)", + "mio", + "mio-uds", + "tokio-codec", + "tokio-io", + "tokio-reactor", +] + +[[package]] +name = "unix_socket" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564" +dependencies = [ + "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", + "libc", +] + +[[package]] +name = "void" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" + +[[package]] +name = "winapi" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" + +[[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-build" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" + +[[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 = "ws2_32-sys" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" +dependencies = [ + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build", +] diff --git a/proto/3rdparty/crates/BUILD.autocfg-1.1.0.bazel b/proto/3rdparty/crates/BUILD.autocfg-1.1.0.bazel new file mode 100644 index 0000000000..de041c03e8 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.autocfg-1.1.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.base64-0.9.3.bazel b/proto/3rdparty/crates/BUILD.base64-0.9.3.bazel new file mode 100644 index 0000000000..5a21a942d1 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.base64-0.9.3.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "base64", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.9.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__byteorder-1.4.3//:byteorder", + "@rules_rust_proto__safemem-0.3.3//:safemem", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.bazel b/proto/3rdparty/crates/BUILD.bazel new file mode 100644 index 0000000000..075d512c85 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.bazel @@ -0,0 +1,89 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "grpc", + actual = "@rules_rust_proto__grpc-0.6.2//:grpc", + tags = ["manual"], +) + +alias( + name = "grpc-compiler", + actual = "@rules_rust_proto__grpc-compiler-0.6.2//:grpc_compiler", + tags = ["manual"], +) + +alias( + name = "log", + actual = "@rules_rust_proto__log-0.4.17//:log", + tags = ["manual"], +) + +alias( + name = "protobuf", + actual = "@rules_rust_proto__protobuf-2.8.2//:protobuf", + tags = ["manual"], +) + +alias( + name = "protobuf-codegen", + actual = "@rules_rust_proto__protobuf-codegen-2.8.2//:protobuf_codegen", + tags = ["manual"], +) + +alias( + name = "tls-api", + actual = "@rules_rust_proto__tls-api-0.1.22//:tls_api", + tags = ["manual"], +) + +alias( + name = "tls-api-stub", + actual = "@rules_rust_proto__tls-api-stub-0.1.22//:tls_api_stub", + tags = ["manual"], +) + +# Binaries +alias( + name = "grpc-compiler__protoc-gen-rust-grpc", + actual = "@rules_rust_proto__grpc-compiler-0.6.2//:protoc-gen-rust-grpc__bin", + tags = ["manual"], +) + +alias( + name = "protobuf-codegen__protoc-gen-rust", + actual = "@rules_rust_proto__protobuf-codegen-2.8.2//:protoc-gen-rust__bin", + tags = ["manual"], +) + +alias( + name = "protobuf-codegen__protobuf-bin-gen-rust-do-not-use", + actual = "@rules_rust_proto__protobuf-codegen-2.8.2//:protobuf-bin-gen-rust-do-not-use__bin", + tags = ["manual"], +) diff --git a/proto/3rdparty/crates/BUILD.bitflags-1.3.2.bazel b/proto/3rdparty/crates/BUILD.bitflags-1.3.2.bazel new file mode 100644 index 0000000000..376a421f2f --- /dev/null +++ b/proto/3rdparty/crates/BUILD.bitflags-1.3.2.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.3.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.byteorder-1.4.3.bazel b/proto/3rdparty/crates/BUILD.byteorder-1.4.3.bazel new file mode 100644 index 0000000000..fac53242c8 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.byteorder-1.4.3.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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", # Unlicense OR MIT +# ]) + +rust_library( + name = "byteorder", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.bytes-0.4.12.bazel b/proto/3rdparty/crates/BUILD.bytes-0.4.12.bazel new file mode 100644 index 0000000000..67d4a2d2be --- /dev/null +++ b/proto/3rdparty/crates/BUILD.bytes-0.4.12.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.12", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__byteorder-1.4.3//:byteorder", + "@rules_rust_proto__iovec-0.1.4//:iovec", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel b/proto/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel new file mode 100644 index 0000000000..74edf2a069 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.cfg-if-0.1.10.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.10", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel b/proto/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 0000000000..ac048f6c30 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel b/proto/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel new file mode 100644 index 0000000000..5fc5e2cb76 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.cloudabi-0.0.3.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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-2-Clause +# ]) + +rust_library( + name = "cloudabi", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "bitflags", + "default", + ], + crate_root = "cloudabi.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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.0.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bitflags-1.3.2//:bitflags", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel b/proto/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel new file mode 100644 index 0000000000..6e074d52ca --- /dev/null +++ b/proto/3rdparty/crates/BUILD.crossbeam-deque-0.7.4.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "crossbeam_deque", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__crossbeam-epoch-0.8.2//:crossbeam_epoch", + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__maybe-uninit-2.0.0//:maybe_uninit", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel b/proto/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel new file mode 100644 index 0000000000..fade29458a --- /dev/null +++ b/proto/3rdparty/crates/BUILD.crossbeam-epoch-0.8.2.bazel @@ -0,0 +1,187 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "crossbeam_epoch", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "lazy_static", + "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__crossbeam-epoch-0.8.2//:build_script_build", + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__lazy_static-1.4.0//:lazy_static", + "@rules_rust_proto__maybe-uninit-2.0.0//:maybe_uninit", + "@rules_rust_proto__memoffset-0.5.6//:memoffset", + "@rules_rust_proto__scopeguard-1.1.0//:scopeguard", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "crossbeam-epoch_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", + "lazy_static", + "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.8.2", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__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 = "crossbeam-epoch_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel b/proto/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel new file mode 100644 index 0000000000..54b721f1a1 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.crossbeam-queue-0.2.3.bazel @@ -0,0 +1,95 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 AND BSD-2-Clause +# ]) + +rust_library( + name = "crossbeam_queue", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__maybe-uninit-2.0.0//:maybe_uninit", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel b/proto/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel new file mode 100644 index 0000000000..c43a9918ca --- /dev/null +++ b/proto/3rdparty/crates/BUILD.crossbeam-utils-0.7.2.bazel @@ -0,0 +1,183 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "crossbeam_utils", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "lazy_static", + "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__crossbeam-utils-0.7.2//:build_script_build", + "@rules_rust_proto__lazy_static-1.4.0//:lazy_static", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "crossbeam-utils_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", + "lazy_static", + "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.7.2", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__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 = "crossbeam-utils_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.fnv-1.0.7.bazel b/proto/3rdparty/crates/BUILD.fnv-1.0.7.bazel new file mode 100644 index 0000000000..e6e2d1ed14 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.fnv-1.0.7.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.7", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel b/proto/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel new file mode 100644 index 0000000000..20816668bb --- /dev/null +++ b/proto/3rdparty/crates/BUILD.fuchsia-zircon-0.3.3.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "fuchsia_zircon", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bitflags-1.3.2//:bitflags", + "@rules_rust_proto__fuchsia-zircon-sys-0.3.3//:fuchsia_zircon_sys", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel b/proto/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel new file mode 100644 index 0000000000..94be648de8 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.fuchsia-zircon-sys-0.3.3.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "fuchsia_zircon_sys", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.futures-0.1.31.bazel b/proto/3rdparty/crates/BUILD.futures-0.1.31.bazel new file mode 100644 index 0000000000..baf3817487 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.futures-0.1.31.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "futures", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "use_std", + "with-deprecated", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.31", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel b/proto/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel new file mode 100644 index 0000000000..74399d4fec --- /dev/null +++ b/proto/3rdparty/crates/BUILD.futures-cpupool-0.1.8.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "futures_cpupool", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "with-deprecated", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.8", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__num_cpus-1.13.1//:num_cpus", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.grpc-0.6.2.bazel b/proto/3rdparty/crates/BUILD.grpc-0.6.2.bazel new file mode 100644 index 0000000000..fe04e70f3c --- /dev/null +++ b/proto/3rdparty/crates/BUILD.grpc-0.6.2.bazel @@ -0,0 +1,102 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "grpc", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__base64-0.9.3//:base64", + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__futures-cpupool-0.1.8//:futures_cpupool", + "@rules_rust_proto__httpbis-0.7.0//:httpbis", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__protobuf-2.8.2//:protobuf", + "@rules_rust_proto__tls-api-0.1.22//:tls_api", + "@rules_rust_proto__tls-api-stub-0.1.22//:tls_api_stub", + "@rules_rust_proto__tokio-core-0.1.18//:tokio_core", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-tls-api-0.1.22//:tokio_tls_api", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel b/proto/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel new file mode 100644 index 0000000000..33e256eb80 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.grpc-compiler-0.6.2.bazel @@ -0,0 +1,161 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "grpc_compiler", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__protobuf-2.8.2//:protobuf", + "@rules_rust_proto__protobuf-codegen-2.8.2//:protobuf_codegen", + ], + }), +) + +rust_binary( + name = "protoc-gen-rust-grpc__bin", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/bin/protoc-gen-rust-grpc.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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.2", + deps = [ + ":grpc_compiler", + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__protobuf-2.8.2//:protobuf", + "@rules_rust_proto__protobuf-codegen-2.8.2//:protobuf_codegen", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel b/proto/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel new file mode 100644 index 0000000000..c0640cab7f --- /dev/null +++ b/proto/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.19", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__libc-0.2.126//:libc", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.httpbis-0.7.0.bazel b/proto/3rdparty/crates/BUILD.httpbis-0.7.0.bazel new file mode 100644 index 0000000000..53f14d4b6f --- /dev/null +++ b/proto/3rdparty/crates/BUILD.httpbis-0.7.0.bazel @@ -0,0 +1,227 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "httpbis", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.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-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__tokio-uds-0.1.7//:tokio_uds", + "@rules_rust_proto__unix_socket-0.5.0//:unix_socket", + + # Common Deps + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__futures-cpupool-0.1.8//:futures_cpupool", + "@rules_rust_proto__httpbis-0.7.0//:build_script_build", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__net2-0.2.37//:net2", + "@rules_rust_proto__tls-api-0.1.22//:tls_api", + "@rules_rust_proto__tls-api-stub-0.1.22//:tls_api_stub", + "@rules_rust_proto__tokio-core-0.1.18//:tokio_core", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-timer-0.1.2//:tokio_timer", + "@rules_rust_proto__tokio-tls-api-0.1.22//:tokio_tls_api", + "@rules_rust_proto__void-1.0.2//:void", + ], + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__futures-cpupool-0.1.8//:futures_cpupool", + "@rules_rust_proto__httpbis-0.7.0//:build_script_build", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__net2-0.2.37//:net2", + "@rules_rust_proto__tls-api-0.1.22//:tls_api", + "@rules_rust_proto__tls-api-stub-0.1.22//:tls_api_stub", + "@rules_rust_proto__tokio-core-0.1.18//:tokio_core", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-timer-0.1.2//:tokio_timer", + "@rules_rust_proto__tokio-tls-api-0.1.22//:tokio_tls_api", + "@rules_rust_proto__void-1.0.2//:void", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "httpbis_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.7.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 = "httpbis_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.iovec-0.1.4.bazel b/proto/3rdparty/crates/BUILD.iovec-0.1.4.bazel new file mode 100644 index 0000000000..bdebbff3e9 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.iovec-0.1.4.bazel @@ -0,0 +1,117 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "iovec", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.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-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__libc-0.2.126//:libc", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel b/proto/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel new file mode 100644 index 0000000000..5e79eb168c --- /dev/null +++ b/proto/3rdparty/crates/BUILD.kernel32-sys-0.2.2.bazel @@ -0,0 +1,176 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "kernel32", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__kernel32-sys-0.2.2//:build_script_build", + "@rules_rust_proto__winapi-0.2.8//:winapi", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "kernel32-sys_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.2.2", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__winapi-build-0.1.1//:build", + ], + }), +) + +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 = "kernel32-sys_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel b/proto/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 0000000000..d05a5bd2f0 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + + # User provided rustc_flags + "--cfg=lazy_static_heap_impl", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.libc-0.2.126.bazel b/proto/3rdparty/crates/BUILD.libc-0.2.126.bazel new file mode 100644 index 0000000000..e720b0c975 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.libc-0.2.126.bazel @@ -0,0 +1,178 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.126", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__libc-0.2.126//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.2.126", + 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/proto/3rdparty/crates/BUILD.lock_api-0.3.4.bazel b/proto/3rdparty/crates/BUILD.lock_api-0.3.4.bazel new file mode 100644 index 0000000000..eeee52f006 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.lock_api-0.3.4.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__scopeguard-1.1.0//:scopeguard", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.log-0.3.9.bazel b/proto/3rdparty/crates/BUILD.log-0.3.9.bazel new file mode 100644 index 0000000000..600cf718b0 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.log-0.3.9.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "log", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "use_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.9", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__log-0.4.17//:log", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.log-0.4.17.bazel b/proto/3rdparty/crates/BUILD.log-0.4.17.bazel new file mode 100644 index 0000000000..ca62ec01a2 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.log-0.4.17.bazel @@ -0,0 +1,177 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.17", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__cfg-if-1.0.0//:cfg_if", + "@rules_rust_proto__log-0.4.17//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.17", + 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/proto/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel b/proto/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel new file mode 100644 index 0000000000..239aa81d52 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.maybe-uninit-2.0.0.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "maybe_uninit", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.0.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__maybe-uninit-2.0.0//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "maybe-uninit_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "2.0.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 = "maybe-uninit_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.memoffset-0.5.6.bazel b/proto/3rdparty/crates/BUILD.memoffset-0.5.6.bazel new file mode 100644 index 0000000000..ecb0a43511 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.memoffset-0.5.6.bazel @@ -0,0 +1,177 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "memoffset", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.5.6", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__memoffset-0.5.6//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "memoffset_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", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.5.6", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__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 = "memoffset_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.mio-0.6.23.bazel b/proto/3rdparty/crates/BUILD.mio-0.6.23.bazel new file mode 100644 index 0000000000..c3ed3091f2 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.mio-0.6.23.bazel @@ -0,0 +1,151 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "with-deprecated", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.23", + deps = [ + ] + select_with_or({ + # cfg(target_os = "fuchsia") + # + # No supported platform triples for cfg: 'cfg(target_os = "fuchsia")' + # Skipped dependencies: [{"id":"fuchsia-zircon 0.3.3","target":"fuchsia_zircon"},{"id":"fuchsia-zircon-sys 0.3.3","target":"fuchsia_zircon_sys"}] + # + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__libc-0.2.126//:libc", + + # Common Deps + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__net2-0.2.37//:net2", + "@rules_rust_proto__slab-0.4.7//:slab", + ], + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_proto__kernel32-sys-0.2.2//:kernel32", + "@rules_rust_proto__miow-0.2.2//:miow", + "@rules_rust_proto__winapi-0.2.8//:winapi", + + # Common Deps + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__net2-0.2.37//:net2", + "@rules_rust_proto__slab-0.4.7//:slab", + ], + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__net2-0.2.37//:net2", + "@rules_rust_proto__slab-0.4.7//:slab", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel b/proto/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel new file mode 100644 index 0000000000..3593e957fc --- /dev/null +++ b/proto/3rdparty/crates/BUILD.mio-uds-0.6.8.bazel @@ -0,0 +1,119 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "mio_uds", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.8", + 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-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__libc-0.2.126//:libc", + "@rules_rust_proto__mio-0.6.23//:mio", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.miow-0.2.2.bazel b/proto/3rdparty/crates/BUILD.miow-0.2.2.bazel new file mode 100644 index 0000000000..3305a3932b --- /dev/null +++ b/proto/3rdparty/crates/BUILD.miow-0.2.2.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__kernel32-sys-0.2.2//:kernel32", + "@rules_rust_proto__net2-0.2.37//:net2", + "@rules_rust_proto__winapi-0.2.8//:winapi", + "@rules_rust_proto__ws2_32-sys-0.2.1//:ws2_32", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.net2-0.2.37.bazel b/proto/3rdparty/crates/BUILD.net2-0.2.37.bazel new file mode 100644 index 0000000000..50629668b0 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.net2-0.2.37.bazel @@ -0,0 +1,133 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "net2", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "duration", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.37", + deps = [ + ] + select_with_or({ + # cfg(any(target_os = "redox", unix, target_os = "wasi")) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__libc-0.2.126//:libc", + + # Common Deps + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + ], + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_proto__winapi-0.3.9//:winapi", + + # Common Deps + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + ], + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel b/proto/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel new file mode 100644 index 0000000000..eb66e906e4 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel @@ -0,0 +1,125 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + 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-apple-ios-sim", + "@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-linux-androideabi", + "@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:riscv32imc-unknown-none-elf", + "@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 + "@rules_rust_proto__libc-0.2.126//:libc", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel b/proto/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel new file mode 100644 index 0000000000..2563828103 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.parking_lot-0.9.0.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.9.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__lock_api-0.3.4//:lock_api", + "@rules_rust_proto__parking_lot-0.9.0//:build_script_build", + "@rules_rust_proto__parking_lot_core-0.6.2//:parking_lot_core", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "parking_lot_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", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.9.0", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__rustc_version-0.2.3//:rustc_version", + ], + }), +) + +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_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.parking_lot_core-0.6.2.bazel b/proto/3rdparty/crates/BUILD.parking_lot_core-0.6.2.bazel new file mode 100644 index 0000000000..32d0707b15 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.parking_lot_core-0.6.2.bazel @@ -0,0 +1,230 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.2", + deps = [ + ] + select_with_or({ + # cfg(target_os = "cloudabi") + # + # No supported platform triples for cfg: 'cfg(target_os = "cloudabi")' + # Skipped dependencies: [{"id":"cloudabi 0.0.3","target":"cloudabi"}] + # + # cfg(target_os = "redox") + # + # No supported platform triples for cfg: 'cfg(target_os = "redox")' + # Skipped dependencies: [{"id":"redox_syscall 0.1.57","target":"syscall"}] + # + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__libc-0.2.126//:libc", + + # Common Deps + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__parking_lot_core-0.6.2//:build_script_build", + "@rules_rust_proto__smallvec-0.6.14//:smallvec", + ], + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_proto__winapi-0.3.9//:winapi", + + # Common Deps + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__parking_lot_core-0.6.2//:build_script_build", + "@rules_rust_proto__smallvec-0.6.14//:smallvec", + ], + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__parking_lot_core-0.6.2//:build_script_build", + "@rules_rust_proto__smallvec-0.6.14//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.6.2", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__rustc_version-0.2.3//:rustc_version", + ], + }), +) + +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/proto/3rdparty/crates/BUILD.protobuf-2.8.2.bazel b/proto/3rdparty/crates/BUILD.protobuf-2.8.2.bazel new file mode 100644 index 0000000000..aa85d0b631 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.protobuf-2.8.2.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "protobuf", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "bytes", + "with-bytes", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.8.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__protobuf-2.8.2//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "protobuf_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 = [ + "bytes", + "with-bytes", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "2.8.2", + 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 = "protobuf_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel b/proto/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel new file mode 100644 index 0000000000..5a63331cbc --- /dev/null +++ b/proto/3rdparty/crates/BUILD.protobuf-codegen-2.8.2.bazel @@ -0,0 +1,226 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "protobuf_codegen", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.8.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__protobuf-2.8.2//:protobuf", + ], + }), +) + +rust_binary( + name = "protoc-gen-rust__bin", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/bin/protoc-gen-rust.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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.8.2", + deps = [ + ":protobuf_codegen", + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__protobuf-2.8.2//:protobuf", + ], + }), +) + +rust_binary( + name = "protobuf-bin-gen-rust-do-not-use__bin", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/bin/protobuf-bin-gen-rust-do-not-use.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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.8.2", + deps = [ + ":protobuf_codegen", + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__protobuf-2.8.2//:protobuf", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel b/proto/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel new file mode 100644 index 0000000000..7a078cb034 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.redox_syscall-0.1.57.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.57", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel b/proto/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel new file mode 100644 index 0000000000..9780f5915f --- /dev/null +++ b/proto/3rdparty/crates/BUILD.rustc_version-0.2.3.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "rustc_version", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__semver-0.9.0//:semver", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.safemem-0.3.3.bazel b/proto/3rdparty/crates/BUILD.safemem-0.3.3.bazel new file mode 100644 index 0000000000..02ef8a633e --- /dev/null +++ b/proto/3rdparty/crates/BUILD.safemem-0.3.3.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "safemem", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel b/proto/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel new file mode 100644 index 0000000000..e764fae0a9 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.scoped-tls-0.1.2.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "scoped_tls", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel b/proto/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel new file mode 100644 index 0000000000..53c44b7f6f --- /dev/null +++ b/proto/3rdparty/crates/BUILD.scopeguard-1.1.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.semver-0.9.0.bazel b/proto/3rdparty/crates/BUILD.semver-0.9.0.bazel new file mode 100644 index 0000000000..ae3d4a0cfc --- /dev/null +++ b/proto/3rdparty/crates/BUILD.semver-0.9.0.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "semver", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.9.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__semver-parser-0.7.0//:semver_parser", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel b/proto/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel new file mode 100644 index 0000000000..de4e9d41aa --- /dev/null +++ b/proto/3rdparty/crates/BUILD.semver-parser-0.7.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "semver_parser", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.slab-0.3.0.bazel b/proto/3rdparty/crates/BUILD.slab-0.3.0.bazel new file mode 100644 index 0000000000..d4998ed225 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.slab-0.3.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.slab-0.4.7.bazel b/proto/3rdparty/crates/BUILD.slab-0.4.7.bazel new file mode 100644 index 0000000000..feb5d93b9d --- /dev/null +++ b/proto/3rdparty/crates/BUILD.slab-0.4.7.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "slab", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.7", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__slab-0.4.7//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "slab_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.7", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__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 = "slab_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/BUILD.smallvec-0.6.14.bazel b/proto/3rdparty/crates/BUILD.smallvec-0.6.14.bazel new file mode 100644 index 0000000000..a350125017 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.smallvec-0.6.14.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.14", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__maybe-uninit-2.0.0//:maybe_uninit", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tls-api-0.1.22.bazel b/proto/3rdparty/crates/BUILD.tls-api-0.1.22.bazel new file mode 100644 index 0000000000..0dd4b51d5f --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tls-api-0.1.22.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "tls_api", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.22", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__log-0.4.17//:log", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel b/proto/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel new file mode 100644 index 0000000000..3189886c29 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tls-api-stub-0.1.22.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "tls_api_stub", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.22", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__tls-api-0.1.22//:tls_api", + "@rules_rust_proto__void-1.0.2//:void", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-0.1.22.bazel b/proto/3rdparty/crates/BUILD.tokio-0.1.22.bazel new file mode 100644 index 0000000000..c33ef7b576 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-0.1.22.bazel @@ -0,0 +1,173 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "bytes", + "codec", + "default", + "fs", + "io", + "mio", + "num_cpus", + "reactor", + "rt-full", + "sync", + "tcp", + "timer", + "tokio-codec", + "tokio-current-thread", + "tokio-executor", + "tokio-fs", + "tokio-io", + "tokio-reactor", + "tokio-sync", + "tokio-tcp", + "tokio-threadpool", + "tokio-timer", + "tokio-udp", + "tokio-uds", + "udp", + "uds", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.22", + 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-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_proto__tokio-uds-0.2.7//:tokio_uds", + + # Common Deps + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__num_cpus-1.13.1//:num_cpus", + "@rules_rust_proto__tokio-codec-0.1.2//:tokio_codec", + "@rules_rust_proto__tokio-current-thread-0.1.7//:tokio_current_thread", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + "@rules_rust_proto__tokio-fs-0.1.7//:tokio_fs", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-reactor-0.1.12//:tokio_reactor", + "@rules_rust_proto__tokio-sync-0.1.8//:tokio_sync", + "@rules_rust_proto__tokio-tcp-0.1.4//:tokio_tcp", + "@rules_rust_proto__tokio-threadpool-0.1.18//:tokio_threadpool", + "@rules_rust_proto__tokio-timer-0.2.13//:tokio_timer", + "@rules_rust_proto__tokio-udp-0.1.6//:tokio_udp", + ], + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__num_cpus-1.13.1//:num_cpus", + "@rules_rust_proto__tokio-codec-0.1.2//:tokio_codec", + "@rules_rust_proto__tokio-current-thread-0.1.7//:tokio_current_thread", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + "@rules_rust_proto__tokio-fs-0.1.7//:tokio_fs", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-reactor-0.1.12//:tokio_reactor", + "@rules_rust_proto__tokio-sync-0.1.8//:tokio_sync", + "@rules_rust_proto__tokio-tcp-0.1.4//:tokio_tcp", + "@rules_rust_proto__tokio-threadpool-0.1.18//:tokio_threadpool", + "@rules_rust_proto__tokio-timer-0.2.13//:tokio_timer", + "@rules_rust_proto__tokio-udp-0.1.6//:tokio_udp", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel b/proto/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel new file mode 100644 index 0000000000..26a586c48d --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-codec-0.1.2.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_codec", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel b/proto/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel new file mode 100644 index 0000000000..a7532c88fb --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-core-0.1.18.bazel @@ -0,0 +1,101 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "tokio_core", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.18", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__scoped-tls-0.1.2//:scoped_tls", + "@rules_rust_proto__tokio-0.1.22//:tokio", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-reactor-0.1.12//:tokio_reactor", + "@rules_rust_proto__tokio-timer-0.2.13//:tokio_timer", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel b/proto/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel new file mode 100644 index 0000000000..91dc929aec --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-current-thread-0.1.7.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_current_thread", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.7", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel b/proto/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel new file mode 100644 index 0000000000..7a0f588b43 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-executor-0.1.10.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_executor", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.10", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__futures-0.1.31//:futures", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel b/proto/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel new file mode 100644 index 0000000000..42b51dcf11 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-fs-0.1.7.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_fs", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.7", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-threadpool-0.1.18//:tokio_threadpool", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel b/proto/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel new file mode 100644 index 0000000000..36fb632ff0 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-io-0.1.13.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_io", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.13", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__log-0.4.17//:log", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel b/proto/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel new file mode 100644 index 0000000000..f2eec69c3b --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-reactor-0.1.12.bazel @@ -0,0 +1,101 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_reactor", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.12", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__lazy_static-1.4.0//:lazy_static", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__num_cpus-1.13.1//:num_cpus", + "@rules_rust_proto__parking_lot-0.9.0//:parking_lot", + "@rules_rust_proto__slab-0.4.7//:slab", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-sync-0.1.8//:tokio_sync", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel b/proto/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel new file mode 100644 index 0000000000..34566c0553 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-sync-0.1.8.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_sync", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.8", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__fnv-1.0.7//:fnv", + "@rules_rust_proto__futures-0.1.31//:futures", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel b/proto/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel new file mode 100644 index 0000000000..743f8b0db2 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-tcp-0.1.4.bazel @@ -0,0 +1,96 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_tcp", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-reactor-0.1.12//:tokio_reactor", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel b/proto/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel new file mode 100644 index 0000000000..cafb9cb1ba --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-threadpool-0.1.18.bazel @@ -0,0 +1,99 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_threadpool", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.18", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__crossbeam-deque-0.7.4//:crossbeam_deque", + "@rules_rust_proto__crossbeam-queue-0.2.3//:crossbeam_queue", + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__lazy_static-1.4.0//:lazy_static", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__num_cpus-1.13.1//:num_cpus", + "@rules_rust_proto__slab-0.4.7//:slab", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel b/proto/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel new file mode 100644 index 0000000000..79c91e998c --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-timer-0.1.2.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "tokio_timer", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__slab-0.3.0//:slab", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel b/proto/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel new file mode 100644 index 0000000000..6c2f050317 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-timer-0.2.13.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_timer", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.13", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__crossbeam-utils-0.7.2//:crossbeam_utils", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__slab-0.4.7//:slab", + "@rules_rust_proto__tokio-executor-0.1.10//:tokio_executor", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel b/proto/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel new file mode 100644 index 0000000000..b4a36f2d0e --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-tls-api-0.1.22.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "tokio_tls_api", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.22", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__tls-api-0.1.22//:tls_api", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel b/proto/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel new file mode 100644 index 0000000000..ae02c80453 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-udp-0.1.6.bazel @@ -0,0 +1,97 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_udp", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.6", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__tokio-codec-0.1.2//:tokio_codec", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-reactor-0.1.12//:tokio_reactor", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel b/proto/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel new file mode 100644 index 0000000000..c27f778e1d --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-uds-0.1.7.bazel @@ -0,0 +1,99 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "tokio_uds", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.7", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__libc-0.2.126//:libc", + "@rules_rust_proto__log-0.3.9//:log", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__mio-uds-0.6.8//:mio_uds", + "@rules_rust_proto__tokio-core-0.1.18//:tokio_core", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel b/proto/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel new file mode 100644 index 0000000000..8d0235fbea --- /dev/null +++ b/proto/3rdparty/crates/BUILD.tokio-uds-0.2.7.bazel @@ -0,0 +1,100 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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_uds", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.7", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__bytes-0.4.12//:bytes", + "@rules_rust_proto__futures-0.1.31//:futures", + "@rules_rust_proto__iovec-0.1.4//:iovec", + "@rules_rust_proto__libc-0.2.126//:libc", + "@rules_rust_proto__log-0.4.17//:log", + "@rules_rust_proto__mio-0.6.23//:mio", + "@rules_rust_proto__mio-uds-0.6.8//:mio_uds", + "@rules_rust_proto__tokio-codec-0.1.2//:tokio_codec", + "@rules_rust_proto__tokio-io-0.1.13//:tokio_io", + "@rules_rust_proto__tokio-reactor-0.1.12//:tokio_reactor", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel b/proto/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel new file mode 100644 index 0000000000..f78fb1fc4c --- /dev/null +++ b/proto/3rdparty/crates/BUILD.unix_socket-0.5.0.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "unix_socket", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.5.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__cfg-if-0.1.10//:cfg_if", + "@rules_rust_proto__libc-0.2.126//:libc", + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.void-1.0.2.bazel b/proto/3rdparty/crates/BUILD.void-1.0.2.bazel new file mode 100644 index 0000000000..cd0e4bc97c --- /dev/null +++ b/proto/3rdparty/crates/BUILD.void-1.0.2.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "void", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.winapi-0.2.8.bazel b/proto/3rdparty/crates/BUILD.winapi-0.2.8.bazel new file mode 100644 index 0000000000..ff2af66a11 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.winapi-0.2.8.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "winapi", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.8", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.winapi-0.3.9.bazel b/proto/3rdparty/crates/BUILD.winapi-0.3.9.bazel new file mode 100644 index 0000000000..70452aeeca --- /dev/null +++ b/proto/3rdparty/crates/BUILD.winapi-0.3.9.bazel @@ -0,0 +1,206 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "errhandlingapi", + "handleapi", + "minwindef", + "ntstatus", + "winbase", + "winerror", + "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", + ], + 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": [ + "@rules_rust_proto__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 = [ + "errhandlingapi", + "handleapi", + "minwindef", + "ntstatus", + "winbase", + "winerror", + "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", + ], + 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/proto/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel b/proto/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel new file mode 100644 index 0000000000..90d09f24fb --- /dev/null +++ b/proto/3rdparty/crates/BUILD.winapi-build-0.1.1.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "build", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.1", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/proto/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/proto/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 0000000000..0ff44fdcea --- /dev/null +++ b/proto/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__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", + ], + 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/proto/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/proto/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 0000000000..a4fb59f70b --- /dev/null +++ b/proto/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__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", + ], + 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/proto/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel b/proto/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel new file mode 100644 index 0000000000..591c218ce7 --- /dev/null +++ b/proto/3rdparty/crates/BUILD.ws2_32-sys-0.2.1.bazel @@ -0,0 +1,176 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### + +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 = "ws2_32", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.1", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__winapi-0.2.8//:winapi", + "@rules_rust_proto__ws2_32-sys-0.2.1//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "ws2_32-sys_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.2.1", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_proto__winapi-build-0.1.1//:build", + ], + }), +) + +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 = "ws2_32-sys_build_script", + tags = [ + "manual", + ], +) diff --git a/proto/3rdparty/crates/crates.bzl b/proto/3rdparty/crates/crates.bzl new file mode 100644 index 0000000000..5a694ea96d --- /dev/null +++ b/proto/3rdparty/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("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") + +# buildifier: disable=bzl-visibility +load("@rules_rust//proto/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") + +def crate_repositories(): + maybe( + crates_vendor_remote_repository, + name = "rules_rust_proto", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust//proto/3rdparty/crates:defs.bzl"), + ) + + _crate_repositories() diff --git a/proto/3rdparty/crates/defs.bzl b/proto/3rdparty/crates/defs.bzl new file mode 100644 index 0000000000..b19e46e18f --- /dev/null +++ b/proto/3rdparty/crates/defs.bzl @@ -0,0 +1,1143 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //proto/3rdparty:crates_vendor +############################################################################### +""" +# `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: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + 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: { + "grpc": "@rules_rust_proto__grpc-0.6.2//:grpc", + "grpc-compiler": "@rules_rust_proto__grpc-compiler-0.6.2//:grpc_compiler", + "log": "@rules_rust_proto__log-0.4.17//:log", + "protobuf": "@rules_rust_proto__protobuf-2.8.2//:protobuf", + "protobuf-codegen": "@rules_rust_proto__protobuf-codegen-2.8.2//:protobuf_codegen", + "tls-api": "@rules_rust_proto__tls-api-0.1.22//:tls_api", + "tls-api-stub": "@rules_rust_proto__tls-api-stub-0.1.22//:tls_api_stub", + }, + }, +} + +_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(any(target_os = \"redox\", unix, target_os = \"wasi\"))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "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 = \"cloudabi\")": [], + "cfg(target_os = \"fuchsia\")": [], + "cfg(target_os = \"redox\")": [], + "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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 = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.autocfg-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__base64-0.9.3", + sha256 = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/base64/0.9.3/download"], + strip_prefix = "base64-0.9.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.base64-0.9.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__byteorder-1.4.3", + sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/byteorder/1.4.3/download"], + strip_prefix = "byteorder-1.4.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.byteorder-1.4.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__bytes-0.4.12", + sha256 = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/bytes/0.4.12/download"], + strip_prefix = "bytes-0.4.12", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.bytes-0.4.12.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__cfg-if-0.1.10", + sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/cfg-if/0.1.10/download"], + strip_prefix = "cfg-if-0.1.10", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.cfg-if-0.1.10.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__cloudabi-0.0.3", + sha256 = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/cloudabi/0.0.3/download"], + strip_prefix = "cloudabi-0.0.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.cloudabi-0.0.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__crossbeam-deque-0.7.4", + sha256 = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/crossbeam-deque/0.7.4/download"], + strip_prefix = "crossbeam-deque-0.7.4", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-deque-0.7.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__crossbeam-epoch-0.8.2", + sha256 = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/crossbeam-epoch/0.8.2/download"], + strip_prefix = "crossbeam-epoch-0.8.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-epoch-0.8.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__crossbeam-queue-0.2.3", + sha256 = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/crossbeam-queue/0.2.3/download"], + strip_prefix = "crossbeam-queue-0.2.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-queue-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__crossbeam-utils-0.7.2", + sha256 = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/crossbeam-utils/0.7.2/download"], + strip_prefix = "crossbeam-utils-0.7.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.crossbeam-utils-0.7.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.fnv-1.0.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__fuchsia-zircon-0.3.3", + sha256 = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/fuchsia-zircon/0.3.3/download"], + strip_prefix = "fuchsia-zircon-0.3.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.fuchsia-zircon-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__fuchsia-zircon-sys-0.3.3", + sha256 = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/fuchsia-zircon-sys/0.3.3/download"], + strip_prefix = "fuchsia-zircon-sys-0.3.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__futures-0.1.31", + sha256 = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/futures/0.1.31/download"], + strip_prefix = "futures-0.1.31", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.futures-0.1.31.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__futures-cpupool-0.1.8", + sha256 = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/futures-cpupool/0.1.8/download"], + strip_prefix = "futures-cpupool-0.1.8", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.futures-cpupool-0.1.8.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__grpc-0.6.2", + sha256 = "2aaf1d741fe6f3413f1f9f71b99f5e4e26776d563475a8a53ce53a73a8534c1d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/grpc/0.6.2/download"], + strip_prefix = "grpc-0.6.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.grpc-0.6.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__grpc-compiler-0.6.2", + sha256 = "907274ce8ee7b40a0d0b0db09022ea22846a47cfb1fc8ad2c983c70001b4ffb1", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/grpc-compiler/0.6.2/download"], + strip_prefix = "grpc-compiler-0.6.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.grpc-compiler-0.6.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__httpbis-0.7.0", + sha256 = "7689cfa896b2a71da4f16206af167542b75d242b6906313e53857972a92d5614", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/httpbis/0.7.0/download"], + strip_prefix = "httpbis-0.7.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.httpbis-0.7.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__iovec-0.1.4", + sha256 = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/iovec/0.1.4/download"], + strip_prefix = "iovec-0.1.4", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.iovec-0.1.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__kernel32-sys-0.2.2", + sha256 = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/kernel32-sys/0.2.2/download"], + strip_prefix = "kernel32-sys-0.2.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.kernel32-sys-0.2.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__libc-0.2.126", + sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"], + strip_prefix = "libc-0.2.126", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.libc-0.2.126.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__lock_api-0.3.4", + sha256 = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/lock_api/0.3.4/download"], + strip_prefix = "lock_api-0.3.4", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.lock_api-0.3.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__log-0.3.9", + sha256 = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/log/0.3.9/download"], + strip_prefix = "log-0.3.9", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.log-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__log-0.4.17", + sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"], + strip_prefix = "log-0.4.17", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.log-0.4.17.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__maybe-uninit-2.0.0", + sha256 = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/maybe-uninit/2.0.0/download"], + strip_prefix = "maybe-uninit-2.0.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.maybe-uninit-2.0.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__memoffset-0.5.6", + sha256 = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/memoffset/0.5.6/download"], + strip_prefix = "memoffset-0.5.6", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.memoffset-0.5.6.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__mio-0.6.23", + sha256 = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/mio/0.6.23/download"], + strip_prefix = "mio-0.6.23", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.mio-0.6.23.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__mio-uds-0.6.8", + sha256 = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/mio-uds/0.6.8/download"], + strip_prefix = "mio-uds-0.6.8", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.mio-uds-0.6.8.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__miow-0.2.2", + sha256 = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/miow/0.2.2/download"], + strip_prefix = "miow-0.2.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.miow-0.2.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__net2-0.2.37", + sha256 = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/net2/0.2.37/download"], + strip_prefix = "net2-0.2.37", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.net2-0.2.37.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.num_cpus-1.13.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__parking_lot-0.9.0", + sha256 = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/parking_lot/0.9.0/download"], + strip_prefix = "parking_lot-0.9.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.parking_lot-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__parking_lot_core-0.6.2", + sha256 = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/parking_lot_core/0.6.2/download"], + strip_prefix = "parking_lot_core-0.6.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.parking_lot_core-0.6.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__protobuf-2.8.2", + patch_args = [ + "-p1", + ], + patches = [ + "@rules_rust//proto/3rdparty/patches:protobuf-2.8.2.patch", + ], + sha256 = "70731852eec72c56d11226c8a5f96ad5058a3dab73647ca5f7ee351e464f2571", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/protobuf/2.8.2/download"], + strip_prefix = "protobuf-2.8.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.protobuf-2.8.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__protobuf-codegen-2.8.2", + sha256 = "3d74b9cbbf2ac9a7169c85a3714ec16c51ee9ec7cfd511549527e9a7df720795", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/protobuf-codegen/2.8.2/download"], + strip_prefix = "protobuf-codegen-2.8.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.protobuf-codegen-2.8.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__redox_syscall-0.1.57", + sha256 = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/redox_syscall/0.1.57/download"], + strip_prefix = "redox_syscall-0.1.57", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.redox_syscall-0.1.57.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__rustc_version-0.2.3", + sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/rustc_version/0.2.3/download"], + strip_prefix = "rustc_version-0.2.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.rustc_version-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__safemem-0.3.3", + sha256 = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/safemem/0.3.3/download"], + strip_prefix = "safemem-0.3.3", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.safemem-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__scoped-tls-0.1.2", + sha256 = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/scoped-tls/0.1.2/download"], + strip_prefix = "scoped-tls-0.1.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.scoped-tls-0.1.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.scopeguard-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__semver-0.9.0", + sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/semver/0.9.0/download"], + strip_prefix = "semver-0.9.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.semver-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__semver-parser-0.7.0", + sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/semver-parser/0.7.0/download"], + strip_prefix = "semver-parser-0.7.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.semver-parser-0.7.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__slab-0.3.0", + sha256 = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/slab/0.3.0/download"], + strip_prefix = "slab-0.3.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.slab-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__slab-0.4.7", + sha256 = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/slab/0.4.7/download"], + strip_prefix = "slab-0.4.7", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.slab-0.4.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__smallvec-0.6.14", + sha256 = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/smallvec/0.6.14/download"], + strip_prefix = "smallvec-0.6.14", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.smallvec-0.6.14.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tls-api-0.1.22", + sha256 = "049c03787a0595182357fbd487577947f4351b78ce20c3668f6d49f17feb13d1", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tls-api/0.1.22/download"], + strip_prefix = "tls-api-0.1.22", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tls-api-0.1.22.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tls-api-stub-0.1.22", + sha256 = "c9a0cc8c149724db9de7d73a0e1bc80b1a74f5394f08c6f301e11f9c35fa061e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tls-api-stub/0.1.22/download"], + strip_prefix = "tls-api-stub-0.1.22", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tls-api-stub-0.1.22.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-0.1.22", + sha256 = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio/0.1.22/download"], + strip_prefix = "tokio-0.1.22", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-0.1.22.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-codec-0.1.2", + sha256 = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-codec/0.1.2/download"], + strip_prefix = "tokio-codec-0.1.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-codec-0.1.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-core-0.1.18", + sha256 = "87b1395334443abca552f63d4f61d0486f12377c2ba8b368e523f89e828cffd4", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-core/0.1.18/download"], + strip_prefix = "tokio-core-0.1.18", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-core-0.1.18.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-current-thread-0.1.7", + sha256 = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-current-thread/0.1.7/download"], + strip_prefix = "tokio-current-thread-0.1.7", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-current-thread-0.1.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-executor-0.1.10", + sha256 = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-executor/0.1.10/download"], + strip_prefix = "tokio-executor-0.1.10", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-executor-0.1.10.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-fs-0.1.7", + sha256 = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-fs/0.1.7/download"], + strip_prefix = "tokio-fs-0.1.7", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-fs-0.1.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-io-0.1.13", + sha256 = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-io/0.1.13/download"], + strip_prefix = "tokio-io-0.1.13", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-io-0.1.13.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-reactor-0.1.12", + sha256 = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-reactor/0.1.12/download"], + strip_prefix = "tokio-reactor-0.1.12", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-reactor-0.1.12.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-sync-0.1.8", + sha256 = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-sync/0.1.8/download"], + strip_prefix = "tokio-sync-0.1.8", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-sync-0.1.8.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-tcp-0.1.4", + sha256 = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-tcp/0.1.4/download"], + strip_prefix = "tokio-tcp-0.1.4", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-tcp-0.1.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-threadpool-0.1.18", + sha256 = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-threadpool/0.1.18/download"], + strip_prefix = "tokio-threadpool-0.1.18", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-threadpool-0.1.18.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-timer-0.1.2", + sha256 = "6131e780037787ff1b3f8aad9da83bca02438b72277850dd6ad0d455e0e20efc", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-timer/0.1.2/download"], + strip_prefix = "tokio-timer-0.1.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-timer-0.1.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-timer-0.2.13", + sha256 = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-timer/0.2.13/download"], + strip_prefix = "tokio-timer-0.2.13", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-timer-0.2.13.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-tls-api-0.1.22", + sha256 = "68d0e040d5b1f4cfca70ec4f371229886a5de5bb554d272a4a8da73004a7b2c9", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-tls-api/0.1.22/download"], + strip_prefix = "tokio-tls-api-0.1.22", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-tls-api-0.1.22.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-udp-0.1.6", + sha256 = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-udp/0.1.6/download"], + strip_prefix = "tokio-udp-0.1.6", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-udp-0.1.6.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-uds-0.1.7", + sha256 = "65ae5d255ce739e8537221ed2942e0445f4b3b813daebac1c0050ddaaa3587f9", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-uds/0.1.7/download"], + strip_prefix = "tokio-uds-0.1.7", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-uds-0.1.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__tokio-uds-0.2.7", + sha256 = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tokio-uds/0.2.7/download"], + strip_prefix = "tokio-uds-0.2.7", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.tokio-uds-0.2.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__unix_socket-0.5.0", + sha256 = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unix_socket/0.5.0/download"], + strip_prefix = "unix_socket-0.5.0", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.unix_socket-0.5.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__void-1.0.2", + sha256 = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/void/1.0.2/download"], + strip_prefix = "void-1.0.2", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.void-1.0.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__winapi-0.2.8", + sha256 = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/winapi/0.2.8/download"], + strip_prefix = "winapi-0.2.8", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-0.2.8.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__winapi-build-0.1.1", + sha256 = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/winapi-build/0.1.1/download"], + strip_prefix = "winapi-build-0.1.1", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.winapi-build-0.1.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__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("@rules_rust//proto/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_proto__ws2_32-sys-0.2.1", + sha256 = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/ws2_32-sys/0.2.1/download"], + strip_prefix = "ws2_32-sys-0.2.1", + build_file = Label("@rules_rust//proto/3rdparty/crates:BUILD.ws2_32-sys-0.2.1.bazel"), + ) diff --git a/proto/patches/BUILD.bazel b/proto/3rdparty/patches/BUILD.bazel similarity index 78% rename from proto/patches/BUILD.bazel rename to proto/3rdparty/patches/BUILD.bazel index cfabc97b20..d1eb637acd 100644 --- a/proto/patches/BUILD.bazel +++ b/proto/3rdparty/patches/BUILD.bazel @@ -8,7 +8,9 @@ filegroup( name = "distro", srcs = [ "BUILD.bazel", - "com_google_protobuf-v3.10.0-bzl_visibility.patch", - ], + "README.md", + ] + glob([ + "*.patch", + ]), visibility = ["//:__subpackages__"], ) diff --git a/proto/raze/patch/README.md b/proto/3rdparty/patches/README.md similarity index 66% rename from proto/raze/patch/README.md rename to proto/3rdparty/patches/README.md index 2cd05d71a8..56e910b159 100644 --- a/proto/raze/patch/README.md +++ b/proto/3rdparty/patches/README.md @@ -1,15 +1,6 @@ # Patches -Cargo raze, in its remote mode allows for patches to be applied to a repository -before building it with rustc. It is advisable to use this functionality -sparingly, if at all. Also note that the patch is applied after all of the -dependency resolution has been completed by cargo raze, and that patching the -version of a dependency will not cause cargo raze to update that dependency in -the BUILD file. - -The patch itself can be generated using git or another tool. The output of git -diff requires the `-p1` option to remove the leading `/` from the git diff patch -format. +Details related to patches required for the rules_rust protobuf rules. ## protobuf-2.8.2 @@ -29,3 +20,8 @@ For this crate, the patch that is applied is replacing the include! macro with what would be generated by the build.rs file. This lets us avoid running the build file altogether, at the expense of having to update the patch for every version. + + +## com_google_protobuf-v3.10.0-bzl_visibility + +The patches here provide the required visibility to `*.bzl` files used by the rules defined in `com_google_protobuf`. diff --git a/proto/patches/com_google_protobuf-v3.10.0-bzl_visibility.patch b/proto/3rdparty/patches/com_google_protobuf-v3.10.0-bzl_visibility.patch similarity index 100% rename from proto/patches/com_google_protobuf-v3.10.0-bzl_visibility.patch rename to proto/3rdparty/patches/com_google_protobuf-v3.10.0-bzl_visibility.patch diff --git a/proto/raze/patch/protobuf-2.8.2.patch b/proto/3rdparty/patches/protobuf-2.8.2.patch similarity index 100% rename from proto/raze/patch/protobuf-2.8.2.patch rename to proto/3rdparty/patches/protobuf-2.8.2.patch diff --git a/proto/BUILD.bazel b/proto/BUILD.bazel index 92e31425de..3a33024e77 100644 --- a/proto/BUILD.bazel +++ b/proto/BUILD.bazel @@ -6,12 +6,12 @@ package(default_visibility = ["//visibility:public"]) alias( name = "protoc_gen_rust", - actual = "//proto/raze:cargo_bin_protoc_gen_rust", + actual = "//proto/3rdparty/crates:protobuf-codegen__protoc-gen-rust", ) alias( name = "protoc_gen_rust_grpc", - actual = "//proto/raze:cargo_bin_protoc_gen_rust_grpc", + actual = "//proto/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc", ) filegroup( @@ -20,10 +20,8 @@ filegroup( "*.bzl", "*.rs", ]) + [ - "//proto/patches:distro", - "//proto/raze:srcs", - "//proto/raze/patch:distro", - "//proto/raze/remote:srcs", + "//proto/raze:distro", + "//proto/3rdparty:distro", "BUILD.bazel", ], visibility = ["//:__subpackages__"], @@ -60,5 +58,8 @@ rust_proto_toolchain( bzl_library( name = "bzl_lib", - srcs = glob(["**/*.bzl"]) + ["//proto/raze:crates.bzl"], + srcs = glob(["**/*.bzl"]), + deps = [ + "//proto/3rdparty:bzl_lib", + ], ) diff --git a/proto/patches/README.md b/proto/patches/README.md deleted file mode 100644 index 7d4ca11dfa..0000000000 --- a/proto/patches/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# @rules_rust//proto patches - -The patches here provide the required visibility to `*.bzl` files used by the rules defined in `com_google_protobuf`. diff --git a/proto/raze/BUILD.bazel b/proto/raze/BUILD.bazel index 632e22026e..65ae167f47 100644 --- a/proto/raze/BUILD.bazel +++ b/proto/raze/BUILD.bazel @@ -1,76 +1,56 @@ -""" -@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 = "grpc", - actual = "@rules_rust_proto__grpc__0_6_2//:grpc", + actual = "//proto/3rdparty/crates:grpc", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:grpc", tags = [ - "cargo-raze", "manual", ], ) alias( name = "cargo_bin_protoc_gen_rust_grpc", - actual = "@rules_rust_proto__grpc_compiler__0_6_2//:cargo_bin_protoc_gen_rust_grpc", + actual = "//proto/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc", tags = [ - "cargo-raze", "manual", ], ) alias( name = "grpc_compiler", - actual = "@rules_rust_proto__grpc_compiler__0_6_2//:grpc_compiler", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "log", - actual = "@rules_rust_proto__log__0_4_6//:log", + actual = "//proto/3rdparty/crates:grpc_compiler", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:grpc_compiler", tags = [ - "cargo-raze", "manual", ], ) alias( name = "protobuf", - actual = "@rules_rust_proto__protobuf__2_8_2//:protobuf", + actual = "//proto/3rdparty/crates:protobuf", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:protobuf", tags = [ - "cargo-raze", "manual", ], ) alias( name = "cargo_bin_protoc_gen_rust", - actual = "@rules_rust_proto__protobuf_codegen__2_8_2//:cargo_bin_protoc_gen_rust", + actual = "//proto/3rdparty/crates:protobuf-codegen__protoc-gen-rust", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:protobuf-codegen__protoc-gen-rust", tags = [ - "cargo-raze", "manual", ], ) alias( name = "protobuf_codegen", - actual = "@rules_rust_proto__protobuf_codegen__2_8_2//:protobuf_codegen", + actual = "//proto/3rdparty/crates:protobuf-codegen", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:protobuf-codegen", tags = [ - "cargo-raze", "manual", ], ) @@ -78,35 +58,14 @@ alias( alias( name = "tls_api", actual = "@rules_rust_proto__tls_api__0_1_22//:tls_api", + deprecation = "Instead, use @rules_rust//proto/3rdparty/crates:tls_api", tags = [ - "cargo-raze", "manual", ], ) -alias( - name = "tls_api_stub", - actual = "@rules_rust_proto__tls_api_stub__0_1_22//:tls_api_stub", - tags = [ - "cargo-raze", - "manual", - ], -) - -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], + name = "distro", + srcs = ["BUILD.bazel"], + visibility = ["//proto:__pkg__"], ) diff --git a/proto/raze/Cargo.lock b/proto/raze/Cargo.lock deleted file mode 100644 index 2c6b3d0a1c..0000000000 --- a/proto/raze/Cargo.lock +++ /dev/null @@ -1,782 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "autocfg" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "base64" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "safemem 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "bitflags" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "byteorder" -version = "1.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "bytes" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "crossbeam-deque" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", - "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "memoffset 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", - "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "crossbeam-queue" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "crossbeam-utils" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "fake_lib" -version = "0.0.1" -dependencies = [ - "grpc 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", - "grpc-compiler 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "protobuf 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)", - "protobuf-codegen 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api-stub 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "fnv" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "futures" -version = "0.1.29" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "futures-cpupool" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "grpc" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)", - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "httpbis 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "protobuf 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api-stub 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "grpc-compiler" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "protobuf 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)", - "protobuf-codegen 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "hermit-abi" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "httpbis" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api-stub 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-uds 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "unix_socket 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", - "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "iovec" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "libc" -version = "0.2.69" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "lock_api" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "log" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "log" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "maybe-uninit" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "memoffset" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "mio" -version = "0.6.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "mio-uds" -version = "0.6.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "miow" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "net2" -version = "0.2.33" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "num_cpus" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "hermit-abi 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "parking_lot" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "lock_api 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "parking_lot_core" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", - "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "protobuf" -version = "2.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "protobuf-codegen" -version = "2.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "protobuf 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "redox_syscall" -version = "0.1.56" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "safemem" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "scoped-tls" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "slab" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "slab" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "smallvec" -version = "0.6.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tls-api" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tls-api-stub" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-codec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-current-thread 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-fs 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-reactor 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-sync 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-tcp 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-threadpool 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-timer 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-udp 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-uds 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-codec" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-core" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-reactor 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-timer 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-current-thread" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-executor" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-fs" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-threadpool 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-io" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-reactor" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-sync 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-sync" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-tcp" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-reactor 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-threadpool" -version = "0.1.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-timer" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-timer" -version = "0.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-tls-api" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-udp" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-codec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-reactor 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-uds" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "tokio-uds" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", - "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", - "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-codec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-reactor 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "unix_socket" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "winapi" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[metadata] -"checksum autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" -"checksum base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)" = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" -"checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" -"checksum byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" -"checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" -"checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" -"checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -"checksum crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285" -"checksum crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" -"checksum crossbeam-queue 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c695eeca1e7173472a32221542ae469b3e9aac3a4fc81f7696bcad82029493db" -"checksum crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" -"checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" -"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" -"checksum futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)" = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef" -"checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" -"checksum grpc 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2aaf1d741fe6f3413f1f9f71b99f5e4e26776d563475a8a53ce53a73a8534c1d" -"checksum grpc-compiler 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "907274ce8ee7b40a0d0b0db09022ea22846a47cfb1fc8ad2c983c70001b4ffb1" -"checksum hermit-abi 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8a0d737e0f947a1864e93d33fdef4af8445a00d1ed8dc0c8ddb73139ea6abf15" -"checksum httpbis 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7689cfa896b2a71da4f16206af167542b75d242b6906313e53857972a92d5614" -"checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" -"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -"checksum libc 0.2.69 (registry+https://github.com/rust-lang/crates.io-index)" = "99e85c08494b21a9054e7fe1374a732aeadaff3980b6990b94bfd3a70f690005" -"checksum lock_api 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -"checksum log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" -"checksum log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c84ec4b527950aa83a329754b01dbe3f58361d1c5efacd1f6d68c494d08a17c6" -"checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" -"checksum memoffset 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b4fc2c02a7e374099d4ee95a193111f72d2110197fe200272371758f6c3643d8" -"checksum mio 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)" = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f" -"checksum mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "966257a94e196b11bb43aca423754d87429960a768de9414f3691d6957abf125" -"checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" -"checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" -"checksum num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" -"checksum parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" -"checksum parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" -"checksum protobuf 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "70731852eec72c56d11226c8a5f96ad5058a3dab73647ca5f7ee351e464f2571" -"checksum protobuf-codegen 2.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "3d74b9cbbf2ac9a7169c85a3714ec16c51ee9ec7cfd511549527e9a7df720795" -"checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" -"checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -"checksum safemem 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" -"checksum scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28" -"checksum scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" -"checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -"checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" -"checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" -"checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" -"checksum smallvec 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6" -"checksum tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "049c03787a0595182357fbd487577947f4351b78ce20c3668f6d49f17feb13d1" -"checksum tls-api-stub 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "c9a0cc8c149724db9de7d73a0e1bc80b1a74f5394f08c6f301e11f9c35fa061e" -"checksum tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" -"checksum tokio-codec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b" -"checksum tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "aeeffbbb94209023feaef3c196a41cbcdafa06b4a6f893f68779bb5e53796f71" -"checksum tokio-current-thread 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e" -"checksum tokio-executor 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671" -"checksum tokio-fs 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4" -"checksum tokio-io 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674" -"checksum tokio-reactor 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351" -"checksum tokio-sync 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee" -"checksum tokio-tcp 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72" -"checksum tokio-threadpool 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89" -"checksum tokio-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6131e780037787ff1b3f8aad9da83bca02438b72277850dd6ad0d455e0e20efc" -"checksum tokio-timer 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296" -"checksum tokio-tls-api 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "68d0e040d5b1f4cfca70ec4f371229886a5de5bb554d272a4a8da73004a7b2c9" -"checksum tokio-udp 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82" -"checksum tokio-uds 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "65ae5d255ce739e8537221ed2942e0445f4b3b813daebac1c0050ddaaa3587f9" -"checksum tokio-uds 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "5076db410d6fdc6523df7595447629099a1fdc47b3d9f896220780fa48faf798" -"checksum unix_socket 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564" -"checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" -"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" -"checksum winapi 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" -"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" -"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -"checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" diff --git a/proto/raze/Cargo.toml b/proto/raze/Cargo.toml deleted file mode 100644 index 773554d805..0000000000 --- a/proto/raze/Cargo.toml +++ /dev/null @@ -1,47 +0,0 @@ - -[package] -name = "fake_rules_rust_proto" -version = "0.0.1" - -[lib] -path = "fake_rules_rust_proto.rs" - -[dependencies] -# Newer version of protobuf have been released, but the 0.6.2 release of -# grpc-rust doesn't work with 2.10 or above, and the 2.9 release pulled. -protobuf = { version = "2.8.2", features = ["with-bytes"] } -protobuf-codegen = "2.8.2" -grpc = "0.6.2" -grpc-compiler = "0.6.2" -# Newer version of tls-api have been released, but the 0.1 release is still -# required by grpc 0.6.2, so continue to use 0.1 of tls-api here. -tls-api = "0.1.22" -tls-api-stub = "0.1.22" -# This needs to be specified, as log 0.3 depends on log 0.4, and log 0.4.7 and -# up break log 0.3, which is needed by tokio-uds-0.1.7 (which is required by -# httpbis 0.7.0, which hasn't had a version released in a while). grpc -# requires httpbis. -log = "0.4, <0.4.7" - -[package.metadata.raze] -genmode = "Remote" -workspace_path = "//proto/raze" -gen_workspace_prefix = "rules_rust_proto" -rust_rules_workspace_name = "rules_rust" -package_aliases_dir = "." -default_gen_buildrs = false - -[package.metadata.raze.crates.lazy_static.'1.4.0'] -additional_flags = [ - "--cfg=lazy_static_heap_impl", -] - -[package.metadata.raze.crates.protobuf.'2.8.2'] -patches = ["@rules_rust//proto/raze/patch:protobuf-2.8.2.patch"] -patch_args = ["-p1"] - -[package.metadata.raze.crates.protobuf-codegen.'2.8.2'] -extra_aliased_targets = ["cargo_bin_protoc_gen_rust"] - -[package.metadata.raze.crates.grpc-compiler.'0.6.2'] -extra_aliased_targets = ["cargo_bin_protoc_gen_rust_grpc"] diff --git a/proto/raze/crates.bzl b/proto/raze/crates.bzl deleted file mode 100644 index 3ec2de1fce..0000000000 --- a/proto/raze/crates.bzl +++ /dev/null @@ -1,768 +0,0 @@ -""" -@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 rules_rust_proto_fetch_remote_crates(): - """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "rules_rust_proto__autocfg__1_0_0", - url = "https://crates.io/api/v1/crates/autocfg/1.0.0/download", - type = "tar.gz", - sha256 = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d", - strip_prefix = "autocfg-1.0.0", - build_file = Label("//proto/raze/remote:BUILD.autocfg-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__base64__0_9_3", - url = "https://crates.io/api/v1/crates/base64/0.9.3/download", - type = "tar.gz", - sha256 = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643", - strip_prefix = "base64-0.9.3", - build_file = Label("//proto/raze/remote:BUILD.base64-0.9.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__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("//proto/raze/remote:BUILD.bitflags-1.2.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__byteorder__1_3_4", - url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", - type = "tar.gz", - sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", - strip_prefix = "byteorder-1.3.4", - build_file = Label("//proto/raze/remote:BUILD.byteorder-1.3.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__bytes__0_4_12", - url = "https://crates.io/api/v1/crates/bytes/0.4.12/download", - type = "tar.gz", - sha256 = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c", - strip_prefix = "bytes-0.4.12", - build_file = Label("//proto/raze/remote:BUILD.bytes-0.4.12.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__cfg_if__0_1_10", - url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", - type = "tar.gz", - sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", - strip_prefix = "cfg-if-0.1.10", - build_file = Label("//proto/raze/remote:BUILD.cfg-if-0.1.10.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__cloudabi__0_0_3", - url = "https://crates.io/api/v1/crates/cloudabi/0.0.3/download", - type = "tar.gz", - sha256 = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f", - strip_prefix = "cloudabi-0.0.3", - build_file = Label("//proto/raze/remote:BUILD.cloudabi-0.0.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__crossbeam_deque__0_7_3", - url = "https://crates.io/api/v1/crates/crossbeam-deque/0.7.3/download", - type = "tar.gz", - sha256 = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285", - strip_prefix = "crossbeam-deque-0.7.3", - build_file = Label("//proto/raze/remote:BUILD.crossbeam-deque-0.7.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__crossbeam_epoch__0_8_2", - url = "https://crates.io/api/v1/crates/crossbeam-epoch/0.8.2/download", - type = "tar.gz", - sha256 = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace", - strip_prefix = "crossbeam-epoch-0.8.2", - build_file = Label("//proto/raze/remote:BUILD.crossbeam-epoch-0.8.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__crossbeam_queue__0_2_1", - url = "https://crates.io/api/v1/crates/crossbeam-queue/0.2.1/download", - type = "tar.gz", - sha256 = "c695eeca1e7173472a32221542ae469b3e9aac3a4fc81f7696bcad82029493db", - strip_prefix = "crossbeam-queue-0.2.1", - build_file = Label("//proto/raze/remote:BUILD.crossbeam-queue-0.2.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__crossbeam_utils__0_7_2", - url = "https://crates.io/api/v1/crates/crossbeam-utils/0.7.2/download", - type = "tar.gz", - sha256 = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8", - strip_prefix = "crossbeam-utils-0.7.2", - build_file = Label("//proto/raze/remote:BUILD.crossbeam-utils-0.7.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__fnv__1_0_6", - url = "https://crates.io/api/v1/crates/fnv/1.0.6/download", - type = "tar.gz", - sha256 = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3", - strip_prefix = "fnv-1.0.6", - build_file = Label("//proto/raze/remote:BUILD.fnv-1.0.6.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__fuchsia_zircon__0_3_3", - url = "https://crates.io/api/v1/crates/fuchsia-zircon/0.3.3/download", - type = "tar.gz", - sha256 = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82", - strip_prefix = "fuchsia-zircon-0.3.3", - build_file = Label("//proto/raze/remote:BUILD.fuchsia-zircon-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__fuchsia_zircon_sys__0_3_3", - url = "https://crates.io/api/v1/crates/fuchsia-zircon-sys/0.3.3/download", - type = "tar.gz", - sha256 = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7", - strip_prefix = "fuchsia-zircon-sys-0.3.3", - build_file = Label("//proto/raze/remote:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__futures__0_1_29", - url = "https://crates.io/api/v1/crates/futures/0.1.29/download", - type = "tar.gz", - sha256 = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef", - strip_prefix = "futures-0.1.29", - build_file = Label("//proto/raze/remote:BUILD.futures-0.1.29.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__futures_cpupool__0_1_8", - url = "https://crates.io/api/v1/crates/futures-cpupool/0.1.8/download", - type = "tar.gz", - sha256 = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4", - strip_prefix = "futures-cpupool-0.1.8", - build_file = Label("//proto/raze/remote:BUILD.futures-cpupool-0.1.8.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__grpc__0_6_2", - url = "https://crates.io/api/v1/crates/grpc/0.6.2/download", - type = "tar.gz", - sha256 = "2aaf1d741fe6f3413f1f9f71b99f5e4e26776d563475a8a53ce53a73a8534c1d", - strip_prefix = "grpc-0.6.2", - build_file = Label("//proto/raze/remote:BUILD.grpc-0.6.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__grpc_compiler__0_6_2", - url = "https://crates.io/api/v1/crates/grpc-compiler/0.6.2/download", - type = "tar.gz", - sha256 = "907274ce8ee7b40a0d0b0db09022ea22846a47cfb1fc8ad2c983c70001b4ffb1", - strip_prefix = "grpc-compiler-0.6.2", - build_file = Label("//proto/raze/remote:BUILD.grpc-compiler-0.6.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__hermit_abi__0_1_11", - url = "https://crates.io/api/v1/crates/hermit-abi/0.1.11/download", - type = "tar.gz", - sha256 = "8a0d737e0f947a1864e93d33fdef4af8445a00d1ed8dc0c8ddb73139ea6abf15", - strip_prefix = "hermit-abi-0.1.11", - build_file = Label("//proto/raze/remote:BUILD.hermit-abi-0.1.11.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__httpbis__0_7_0", - url = "https://crates.io/api/v1/crates/httpbis/0.7.0/download", - type = "tar.gz", - sha256 = "7689cfa896b2a71da4f16206af167542b75d242b6906313e53857972a92d5614", - strip_prefix = "httpbis-0.7.0", - build_file = Label("//proto/raze/remote:BUILD.httpbis-0.7.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__iovec__0_1_4", - url = "https://crates.io/api/v1/crates/iovec/0.1.4/download", - type = "tar.gz", - sha256 = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e", - strip_prefix = "iovec-0.1.4", - build_file = Label("//proto/raze/remote:BUILD.iovec-0.1.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__kernel32_sys__0_2_2", - url = "https://crates.io/api/v1/crates/kernel32-sys/0.2.2/download", - type = "tar.gz", - sha256 = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d", - strip_prefix = "kernel32-sys-0.2.2", - build_file = Label("//proto/raze/remote:BUILD.kernel32-sys-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__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("//proto/raze/remote:BUILD.lazy_static-1.4.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__libc__0_2_69", - url = "https://crates.io/api/v1/crates/libc/0.2.69/download", - type = "tar.gz", - sha256 = "99e85c08494b21a9054e7fe1374a732aeadaff3980b6990b94bfd3a70f690005", - strip_prefix = "libc-0.2.69", - build_file = Label("//proto/raze/remote:BUILD.libc-0.2.69.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__lock_api__0_3_4", - url = "https://crates.io/api/v1/crates/lock_api/0.3.4/download", - type = "tar.gz", - sha256 = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75", - strip_prefix = "lock_api-0.3.4", - build_file = Label("//proto/raze/remote:BUILD.lock_api-0.3.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__log__0_3_9", - url = "https://crates.io/api/v1/crates/log/0.3.9/download", - type = "tar.gz", - sha256 = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b", - strip_prefix = "log-0.3.9", - build_file = Label("//proto/raze/remote:BUILD.log-0.3.9.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__log__0_4_6", - url = "https://crates.io/api/v1/crates/log/0.4.6/download", - type = "tar.gz", - sha256 = "c84ec4b527950aa83a329754b01dbe3f58361d1c5efacd1f6d68c494d08a17c6", - strip_prefix = "log-0.4.6", - build_file = Label("//proto/raze/remote:BUILD.log-0.4.6.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__maybe_uninit__2_0_0", - url = "https://crates.io/api/v1/crates/maybe-uninit/2.0.0/download", - type = "tar.gz", - sha256 = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00", - strip_prefix = "maybe-uninit-2.0.0", - build_file = Label("//proto/raze/remote:BUILD.maybe-uninit-2.0.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__memoffset__0_5_4", - url = "https://crates.io/api/v1/crates/memoffset/0.5.4/download", - type = "tar.gz", - sha256 = "b4fc2c02a7e374099d4ee95a193111f72d2110197fe200272371758f6c3643d8", - strip_prefix = "memoffset-0.5.4", - build_file = Label("//proto/raze/remote:BUILD.memoffset-0.5.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__mio__0_6_21", - url = "https://crates.io/api/v1/crates/mio/0.6.21/download", - type = "tar.gz", - sha256 = "302dec22bcf6bae6dfb69c647187f4b4d0fb6f535521f7bc022430ce8e12008f", - strip_prefix = "mio-0.6.21", - build_file = Label("//proto/raze/remote:BUILD.mio-0.6.21.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__mio_uds__0_6_7", - url = "https://crates.io/api/v1/crates/mio-uds/0.6.7/download", - type = "tar.gz", - sha256 = "966257a94e196b11bb43aca423754d87429960a768de9414f3691d6957abf125", - strip_prefix = "mio-uds-0.6.7", - build_file = Label("//proto/raze/remote:BUILD.mio-uds-0.6.7.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__miow__0_2_1", - url = "https://crates.io/api/v1/crates/miow/0.2.1/download", - type = "tar.gz", - sha256 = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919", - strip_prefix = "miow-0.2.1", - build_file = Label("//proto/raze/remote:BUILD.miow-0.2.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__net2__0_2_33", - url = "https://crates.io/api/v1/crates/net2/0.2.33/download", - type = "tar.gz", - sha256 = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88", - strip_prefix = "net2-0.2.33", - build_file = Label("//proto/raze/remote:BUILD.net2-0.2.33.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__num_cpus__1_13_0", - url = "https://crates.io/api/v1/crates/num_cpus/1.13.0/download", - type = "tar.gz", - sha256 = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3", - strip_prefix = "num_cpus-1.13.0", - build_file = Label("//proto/raze/remote:BUILD.num_cpus-1.13.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__parking_lot__0_9_0", - url = "https://crates.io/api/v1/crates/parking_lot/0.9.0/download", - type = "tar.gz", - sha256 = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252", - strip_prefix = "parking_lot-0.9.0", - build_file = Label("//proto/raze/remote:BUILD.parking_lot-0.9.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__parking_lot_core__0_6_2", - url = "https://crates.io/api/v1/crates/parking_lot_core/0.6.2/download", - type = "tar.gz", - sha256 = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b", - strip_prefix = "parking_lot_core-0.6.2", - build_file = Label("//proto/raze/remote:BUILD.parking_lot_core-0.6.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__protobuf__2_8_2", - url = "https://crates.io/api/v1/crates/protobuf/2.8.2/download", - type = "tar.gz", - sha256 = "70731852eec72c56d11226c8a5f96ad5058a3dab73647ca5f7ee351e464f2571", - strip_prefix = "protobuf-2.8.2", - patches = [ - "@rules_rust//proto/raze/patch:protobuf-2.8.2.patch", - ], - patch_args = [ - "-p1", - ], - build_file = Label("//proto/raze/remote:BUILD.protobuf-2.8.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__protobuf_codegen__2_8_2", - url = "https://crates.io/api/v1/crates/protobuf-codegen/2.8.2/download", - type = "tar.gz", - sha256 = "3d74b9cbbf2ac9a7169c85a3714ec16c51ee9ec7cfd511549527e9a7df720795", - strip_prefix = "protobuf-codegen-2.8.2", - build_file = Label("//proto/raze/remote:BUILD.protobuf-codegen-2.8.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__redox_syscall__0_1_56", - url = "https://crates.io/api/v1/crates/redox_syscall/0.1.56/download", - type = "tar.gz", - sha256 = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84", - strip_prefix = "redox_syscall-0.1.56", - build_file = Label("//proto/raze/remote:BUILD.redox_syscall-0.1.56.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__rustc_version__0_2_3", - url = "https://crates.io/api/v1/crates/rustc_version/0.2.3/download", - type = "tar.gz", - sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a", - strip_prefix = "rustc_version-0.2.3", - build_file = Label("//proto/raze/remote:BUILD.rustc_version-0.2.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__safemem__0_3_3", - url = "https://crates.io/api/v1/crates/safemem/0.3.3/download", - type = "tar.gz", - sha256 = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072", - strip_prefix = "safemem-0.3.3", - build_file = Label("//proto/raze/remote:BUILD.safemem-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__scoped_tls__0_1_2", - url = "https://crates.io/api/v1/crates/scoped-tls/0.1.2/download", - type = "tar.gz", - sha256 = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28", - strip_prefix = "scoped-tls-0.1.2", - build_file = Label("//proto/raze/remote:BUILD.scoped-tls-0.1.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__scopeguard__1_1_0", - url = "https://crates.io/api/v1/crates/scopeguard/1.1.0/download", - type = "tar.gz", - sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd", - strip_prefix = "scopeguard-1.1.0", - build_file = Label("//proto/raze/remote:BUILD.scopeguard-1.1.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__semver__0_9_0", - url = "https://crates.io/api/v1/crates/semver/0.9.0/download", - type = "tar.gz", - sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403", - strip_prefix = "semver-0.9.0", - build_file = Label("//proto/raze/remote:BUILD.semver-0.9.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__semver_parser__0_7_0", - url = "https://crates.io/api/v1/crates/semver-parser/0.7.0/download", - type = "tar.gz", - sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3", - strip_prefix = "semver-parser-0.7.0", - build_file = Label("//proto/raze/remote:BUILD.semver-parser-0.7.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__slab__0_3_0", - url = "https://crates.io/api/v1/crates/slab/0.3.0/download", - type = "tar.gz", - sha256 = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23", - strip_prefix = "slab-0.3.0", - build_file = Label("//proto/raze/remote:BUILD.slab-0.3.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__slab__0_4_2", - url = "https://crates.io/api/v1/crates/slab/0.4.2/download", - type = "tar.gz", - sha256 = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8", - strip_prefix = "slab-0.4.2", - build_file = Label("//proto/raze/remote:BUILD.slab-0.4.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__smallvec__0_6_13", - url = "https://crates.io/api/v1/crates/smallvec/0.6.13/download", - type = "tar.gz", - sha256 = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6", - strip_prefix = "smallvec-0.6.13", - build_file = Label("//proto/raze/remote:BUILD.smallvec-0.6.13.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tls_api__0_1_22", - url = "https://crates.io/api/v1/crates/tls-api/0.1.22/download", - type = "tar.gz", - sha256 = "049c03787a0595182357fbd487577947f4351b78ce20c3668f6d49f17feb13d1", - strip_prefix = "tls-api-0.1.22", - build_file = Label("//proto/raze/remote:BUILD.tls-api-0.1.22.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tls_api_stub__0_1_22", - url = "https://crates.io/api/v1/crates/tls-api-stub/0.1.22/download", - type = "tar.gz", - sha256 = "c9a0cc8c149724db9de7d73a0e1bc80b1a74f5394f08c6f301e11f9c35fa061e", - strip_prefix = "tls-api-stub-0.1.22", - build_file = Label("//proto/raze/remote:BUILD.tls-api-stub-0.1.22.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio__0_1_22", - url = "https://crates.io/api/v1/crates/tokio/0.1.22/download", - type = "tar.gz", - sha256 = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6", - strip_prefix = "tokio-0.1.22", - build_file = Label("//proto/raze/remote:BUILD.tokio-0.1.22.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_codec__0_1_2", - url = "https://crates.io/api/v1/crates/tokio-codec/0.1.2/download", - type = "tar.gz", - sha256 = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b", - strip_prefix = "tokio-codec-0.1.2", - build_file = Label("//proto/raze/remote:BUILD.tokio-codec-0.1.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_core__0_1_17", - url = "https://crates.io/api/v1/crates/tokio-core/0.1.17/download", - type = "tar.gz", - sha256 = "aeeffbbb94209023feaef3c196a41cbcdafa06b4a6f893f68779bb5e53796f71", - strip_prefix = "tokio-core-0.1.17", - build_file = Label("//proto/raze/remote:BUILD.tokio-core-0.1.17.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_current_thread__0_1_7", - url = "https://crates.io/api/v1/crates/tokio-current-thread/0.1.7/download", - type = "tar.gz", - sha256 = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e", - strip_prefix = "tokio-current-thread-0.1.7", - build_file = Label("//proto/raze/remote:BUILD.tokio-current-thread-0.1.7.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_executor__0_1_10", - url = "https://crates.io/api/v1/crates/tokio-executor/0.1.10/download", - type = "tar.gz", - sha256 = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671", - strip_prefix = "tokio-executor-0.1.10", - build_file = Label("//proto/raze/remote:BUILD.tokio-executor-0.1.10.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_fs__0_1_7", - url = "https://crates.io/api/v1/crates/tokio-fs/0.1.7/download", - type = "tar.gz", - sha256 = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4", - strip_prefix = "tokio-fs-0.1.7", - build_file = Label("//proto/raze/remote:BUILD.tokio-fs-0.1.7.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_io__0_1_13", - url = "https://crates.io/api/v1/crates/tokio-io/0.1.13/download", - type = "tar.gz", - sha256 = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674", - strip_prefix = "tokio-io-0.1.13", - build_file = Label("//proto/raze/remote:BUILD.tokio-io-0.1.13.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_reactor__0_1_12", - url = "https://crates.io/api/v1/crates/tokio-reactor/0.1.12/download", - type = "tar.gz", - sha256 = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351", - strip_prefix = "tokio-reactor-0.1.12", - build_file = Label("//proto/raze/remote:BUILD.tokio-reactor-0.1.12.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_sync__0_1_8", - url = "https://crates.io/api/v1/crates/tokio-sync/0.1.8/download", - type = "tar.gz", - sha256 = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee", - strip_prefix = "tokio-sync-0.1.8", - build_file = Label("//proto/raze/remote:BUILD.tokio-sync-0.1.8.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_tcp__0_1_4", - url = "https://crates.io/api/v1/crates/tokio-tcp/0.1.4/download", - type = "tar.gz", - sha256 = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72", - strip_prefix = "tokio-tcp-0.1.4", - build_file = Label("//proto/raze/remote:BUILD.tokio-tcp-0.1.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_threadpool__0_1_18", - url = "https://crates.io/api/v1/crates/tokio-threadpool/0.1.18/download", - type = "tar.gz", - sha256 = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89", - strip_prefix = "tokio-threadpool-0.1.18", - build_file = Label("//proto/raze/remote:BUILD.tokio-threadpool-0.1.18.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_timer__0_1_2", - url = "https://crates.io/api/v1/crates/tokio-timer/0.1.2/download", - type = "tar.gz", - sha256 = "6131e780037787ff1b3f8aad9da83bca02438b72277850dd6ad0d455e0e20efc", - strip_prefix = "tokio-timer-0.1.2", - build_file = Label("//proto/raze/remote:BUILD.tokio-timer-0.1.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_timer__0_2_13", - url = "https://crates.io/api/v1/crates/tokio-timer/0.2.13/download", - type = "tar.gz", - sha256 = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296", - strip_prefix = "tokio-timer-0.2.13", - build_file = Label("//proto/raze/remote:BUILD.tokio-timer-0.2.13.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_tls_api__0_1_22", - url = "https://crates.io/api/v1/crates/tokio-tls-api/0.1.22/download", - type = "tar.gz", - sha256 = "68d0e040d5b1f4cfca70ec4f371229886a5de5bb554d272a4a8da73004a7b2c9", - strip_prefix = "tokio-tls-api-0.1.22", - build_file = Label("//proto/raze/remote:BUILD.tokio-tls-api-0.1.22.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_udp__0_1_6", - url = "https://crates.io/api/v1/crates/tokio-udp/0.1.6/download", - type = "tar.gz", - sha256 = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82", - strip_prefix = "tokio-udp-0.1.6", - build_file = Label("//proto/raze/remote:BUILD.tokio-udp-0.1.6.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_uds__0_1_7", - url = "https://crates.io/api/v1/crates/tokio-uds/0.1.7/download", - type = "tar.gz", - sha256 = "65ae5d255ce739e8537221ed2942e0445f4b3b813daebac1c0050ddaaa3587f9", - strip_prefix = "tokio-uds-0.1.7", - build_file = Label("//proto/raze/remote:BUILD.tokio-uds-0.1.7.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__tokio_uds__0_2_6", - url = "https://crates.io/api/v1/crates/tokio-uds/0.2.6/download", - type = "tar.gz", - sha256 = "5076db410d6fdc6523df7595447629099a1fdc47b3d9f896220780fa48faf798", - strip_prefix = "tokio-uds-0.2.6", - build_file = Label("//proto/raze/remote:BUILD.tokio-uds-0.2.6.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__unix_socket__0_5_0", - url = "https://crates.io/api/v1/crates/unix_socket/0.5.0/download", - type = "tar.gz", - sha256 = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564", - strip_prefix = "unix_socket-0.5.0", - build_file = Label("//proto/raze/remote:BUILD.unix_socket-0.5.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__void__1_0_2", - url = "https://crates.io/api/v1/crates/void/1.0.2/download", - type = "tar.gz", - sha256 = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d", - strip_prefix = "void-1.0.2", - build_file = Label("//proto/raze/remote:BUILD.void-1.0.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__winapi__0_2_8", - url = "https://crates.io/api/v1/crates/winapi/0.2.8/download", - type = "tar.gz", - sha256 = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a", - strip_prefix = "winapi-0.2.8", - build_file = Label("//proto/raze/remote:BUILD.winapi-0.2.8.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__winapi__0_3_8", - url = "https://crates.io/api/v1/crates/winapi/0.3.8/download", - type = "tar.gz", - sha256 = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6", - strip_prefix = "winapi-0.3.8", - build_file = Label("//proto/raze/remote:BUILD.winapi-0.3.8.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__winapi_build__0_1_1", - url = "https://crates.io/api/v1/crates/winapi-build/0.1.1/download", - type = "tar.gz", - sha256 = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc", - strip_prefix = "winapi-build-0.1.1", - build_file = Label("//proto/raze/remote:BUILD.winapi-build-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__winapi_i686_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", - strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//proto/raze/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__winapi_x86_64_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", - strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//proto/raze/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_proto__ws2_32_sys__0_2_1", - url = "https://crates.io/api/v1/crates/ws2_32-sys/0.2.1/download", - type = "tar.gz", - sha256 = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e", - strip_prefix = "ws2_32-sys-0.2.1", - build_file = Label("//proto/raze/remote:BUILD.ws2_32-sys-0.2.1.bazel"), - ) diff --git a/proto/raze/patch/BUILD.bazel b/proto/raze/patch/BUILD.bazel deleted file mode 100644 index 547d104185..0000000000 --- a/proto/raze/patch/BUILD.bazel +++ /dev/null @@ -1,19 +0,0 @@ -package(default_visibility = ["//proto/raze:__subpackages__"]) - -filegroup( - name = "patches", - srcs = [ - "protobuf-2.8.2.patch", - ], -) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - "README.md", - ] + glob([ - "*.patch", - ]), - visibility = ["//proto:__subpackages__"], -) diff --git a/proto/raze/remote/BUILD.autocfg-1.0.0.bazel b/proto/raze/remote/BUILD.autocfg-1.0.0.bazel deleted file mode 100644 index 81f5a99df7..0000000000 --- a/proto/raze/remote/BUILD.autocfg-1.0.0.bazel +++ /dev/null @@ -1,64 +0,0 @@ -""" -@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 "//proto/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", - "crate-name=autocfg", - "manual", - ], - version = "1.0.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "rustflags" with type "test" omitted diff --git a/proto/raze/remote/BUILD.base64-0.9.3.bazel b/proto/raze/remote/BUILD.base64-0.9.3.bazel deleted file mode 100644 index 153754c871..0000000000 --- a/proto/raze/remote/BUILD.base64-0.9.3.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@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 "//proto/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 "benchmarks" with type "bench" omitted - -# Unsupported target "make_tables" with type "example" omitted - -rust_library( - name = "base64", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=base64", - "manual", - ], - version = "0.9.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__byteorder__1_3_4//:byteorder", - "@rules_rust_proto__safemem__0_3_3//:safemem", - ], -) - -# Unsupported target "decode" with type "test" omitted - -# Unsupported target "encode" with type "test" omitted - -# Unsupported target "helpers" with type "test" omitted - -# Unsupported target "tests" with type "test" omitted diff --git a/proto/raze/remote/BUILD.bazel b/proto/raze/remote/BUILD.bazel deleted file mode 100644 index b49fb68667..0000000000 --- a/proto/raze/remote/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/proto/raze/remote/BUILD.bitflags-1.2.1.bazel b/proto/raze/remote/BUILD.bitflags-1.2.1.bazel deleted file mode 100644 index d66eec61f9..0000000000 --- a/proto/raze/remote/BUILD.bitflags-1.2.1.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//proto/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 = "bitflags", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=bitflags", - "manual", - ], - version = "1.2.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.byteorder-1.3.4.bazel b/proto/raze/remote/BUILD.byteorder-1.3.4.bazel deleted file mode 100644 index 6355af9a37..0000000000 --- a/proto/raze/remote/BUILD.byteorder-1.3.4.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "build-script-build" with type "custom-build" omitted - -rust_library( - name = "byteorder", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=byteorder", - "manual", - ], - version = "1.3.4", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.bytes-0.4.12.bazel b/proto/raze/remote/BUILD.bytes-0.4.12.bazel deleted file mode 100644 index b396872e00..0000000000 --- a/proto/raze/remote/BUILD.bytes-0.4.12.bazel +++ /dev/null @@ -1,78 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "bytes" with type "bench" omitted - -rust_library( - name = "bytes", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=bytes", - "manual", - ], - version = "0.4.12", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__byteorder__1_3_4//:byteorder", - "@rules_rust_proto__iovec__0_1_4//:iovec", - ], -) - -# Unsupported target "test_buf" with type "test" omitted - -# Unsupported target "test_buf_mut" with type "test" omitted - -# Unsupported target "test_bytes" with type "test" omitted - -# Unsupported target "test_chain" with type "test" omitted - -# Unsupported target "test_debug" with type "test" omitted - -# Unsupported target "test_from_buf" with type "test" omitted - -# Unsupported target "test_iter" with type "test" omitted - -# Unsupported target "test_reader" with type "test" omitted - -# Unsupported target "test_serde" with type "test" omitted - -# Unsupported target "test_take" with type "test" omitted diff --git a/proto/raze/remote/BUILD.cfg-if-0.1.10.bazel b/proto/raze/remote/BUILD.cfg-if-0.1.10.bazel deleted file mode 100644 index d7152921c0..0000000000 --- a/proto/raze/remote/BUILD.cfg-if-0.1.10.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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", - "crate-name=cfg-if", - "manual", - ], - version = "0.1.10", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/proto/raze/remote/BUILD.cloudabi-0.0.3.bazel b/proto/raze/remote/BUILD.cloudabi-0.0.3.bazel deleted file mode 100644 index 72f3ad786d..0000000000 --- a/proto/raze/remote/BUILD.cloudabi-0.0.3.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "restricted", # BSD-2-Clause from expression "BSD-2-Clause" -]) - -# Generated Targets - -rust_library( - name = "cloudabi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "bitflags", - "default", - ], - crate_root = "cloudabi.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cloudabi", - "manual", - ], - version = "0.0.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bitflags__1_2_1//:bitflags", - ], -) diff --git a/proto/raze/remote/BUILD.crossbeam-deque-0.7.3.bazel b/proto/raze/remote/BUILD.crossbeam-deque-0.7.3.bazel deleted file mode 100644 index e04c7d6f14..0000000000 --- a/proto/raze/remote/BUILD.crossbeam-deque-0.7.3.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@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 "//proto/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 = "crossbeam_deque", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crossbeam-deque", - "manual", - ], - version = "0.7.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__crossbeam_epoch__0_8_2//:crossbeam_epoch", - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - "@rules_rust_proto__maybe_uninit__2_0_0//:maybe_uninit", - ], -) - -# Unsupported target "fifo" with type "test" omitted - -# Unsupported target "injector" with type "test" omitted - -# Unsupported target "lifo" with type "test" omitted - -# Unsupported target "steal" with type "test" omitted diff --git a/proto/raze/remote/BUILD.crossbeam-epoch-0.8.2.bazel b/proto/raze/remote/BUILD.crossbeam-epoch-0.8.2.bazel deleted file mode 100644 index 4d3dd1e13d..0000000000 --- a/proto/raze/remote/BUILD.crossbeam-epoch-0.8.2.bazel +++ /dev/null @@ -1,75 +0,0 @@ -""" -@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 "//proto/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 "defer" with type "bench" omitted - -# Unsupported target "flush" with type "bench" omitted - -# Unsupported target "pin" with type "bench" omitted - -# Unsupported target "build-script-build" with type "custom-build" omitted - -# Unsupported target "sanitize" with type "example" omitted - -# Unsupported target "treiber_stack" with type "example" omitted - -rust_library( - name = "crossbeam_epoch", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "lazy_static", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crossbeam-epoch", - "manual", - ], - version = "0.8.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - "@rules_rust_proto__lazy_static__1_4_0//:lazy_static", - "@rules_rust_proto__maybe_uninit__2_0_0//:maybe_uninit", - "@rules_rust_proto__memoffset__0_5_4//:memoffset", - "@rules_rust_proto__scopeguard__1_1_0//:scopeguard", - ], -) diff --git a/proto/raze/remote/BUILD.crossbeam-queue-0.2.1.bazel b/proto/raze/remote/BUILD.crossbeam-queue-0.2.1.bazel deleted file mode 100644 index ba6e779525..0000000000 --- a/proto/raze/remote/BUILD.crossbeam-queue-0.2.1.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR (Apache-2.0 AND BSD-2-Clause)" -]) - -# Generated Targets - -rust_library( - name = "crossbeam_queue", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crossbeam-queue", - "manual", - ], - version = "0.2.1", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - ], -) - -# Unsupported target "array_queue" with type "test" omitted - -# Unsupported target "seg_queue" with type "test" omitted diff --git a/proto/raze/remote/BUILD.crossbeam-utils-0.7.2.bazel b/proto/raze/remote/BUILD.crossbeam-utils-0.7.2.bazel deleted file mode 100644 index bbde1b87cb..0000000000 --- a/proto/raze/remote/BUILD.crossbeam-utils-0.7.2.bazel +++ /dev/null @@ -1,75 +0,0 @@ -""" -@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 "//proto/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 "atomic_cell" with type "bench" omitted - -# Unsupported target "build-script-build" with type "custom-build" omitted - -rust_library( - name = "crossbeam_utils", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "lazy_static", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crossbeam-utils", - "manual", - ], - version = "0.7.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - "@rules_rust_proto__lazy_static__1_4_0//:lazy_static", - ], -) - -# Unsupported target "atomic_cell" with type "test" omitted - -# Unsupported target "cache_padded" with type "test" omitted - -# Unsupported target "parker" with type "test" omitted - -# Unsupported target "sharded_lock" with type "test" omitted - -# Unsupported target "thread" with type "test" omitted - -# Unsupported target "wait_group" with type "test" omitted diff --git a/proto/raze/remote/BUILD.fnv-1.0.6.bazel b/proto/raze/remote/BUILD.fnv-1.0.6.bazel deleted file mode 100644 index c3651dc70c..0000000000 --- a/proto/raze/remote/BUILD.fnv-1.0.6.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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 "//proto/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 - -rust_library( - name = "fnv", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=fnv", - "manual", - ], - version = "1.0.6", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel b/proto/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel deleted file mode 100644 index 6107ce1a46..0000000000 --- a/proto/raze/remote/BUILD.fuchsia-zircon-0.3.3.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # BSD-3-Clause from expression "BSD-3-Clause" -]) - -# Generated Targets - -rust_library( - name = "fuchsia_zircon", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=fuchsia-zircon", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bitflags__1_2_1//:bitflags", - "@rules_rust_proto__fuchsia_zircon_sys__0_3_3//:fuchsia_zircon_sys", - ], -) diff --git a/proto/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel b/proto/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel deleted file mode 100644 index 834ea8bd4d..0000000000 --- a/proto/raze/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # BSD-3-Clause from expression "BSD-3-Clause" -]) - -# Generated Targets - -# Unsupported target "hello" with type "example" omitted - -rust_library( - name = "fuchsia_zircon_sys", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=fuchsia-zircon-sys", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.futures-0.1.29.bazel b/proto/raze/remote/BUILD.futures-0.1.29.bazel deleted file mode 100644 index 9f38be3c66..0000000000 --- a/proto/raze/remote/BUILD.futures-0.1.29.bazel +++ /dev/null @@ -1,119 +0,0 @@ -""" -@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 "//proto/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 "bilock" with type "bench" omitted - -# Unsupported target "futures_unordered" with type "bench" omitted - -# Unsupported target "poll" with type "bench" omitted - -# Unsupported target "sync_mpsc" with type "bench" omitted - -# Unsupported target "thread_notify" with type "bench" omitted - -rust_library( - name = "futures", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "use_std", - "with-deprecated", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=futures", - "manual", - ], - version = "0.1.29", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "all" with type "test" omitted - -# Unsupported target "bilock" with type "test" omitted - -# Unsupported target "buffer_unordered" with type "test" omitted - -# Unsupported target "channel" with type "test" omitted - -# Unsupported target "eager_drop" with type "test" omitted - -# Unsupported target "eventual" with type "test" omitted - -# Unsupported target "fuse" with type "test" omitted - -# Unsupported target "future_flatten_stream" with type "test" omitted - -# Unsupported target "futures_ordered" with type "test" omitted - -# Unsupported target "futures_unordered" with type "test" omitted - -# Unsupported target "inspect" with type "test" omitted - -# Unsupported target "mpsc" with type "test" omitted - -# Unsupported target "mpsc-close" with type "test" omitted - -# Unsupported target "oneshot" with type "test" omitted - -# Unsupported target "ready_queue" with type "test" omitted - -# Unsupported target "recurse" with type "test" omitted - -# Unsupported target "select_all" with type "test" omitted - -# Unsupported target "select_ok" with type "test" omitted - -# Unsupported target "shared" with type "test" omitted - -# Unsupported target "sink" with type "test" omitted - -# Unsupported target "split" with type "test" omitted - -# Unsupported target "stream" with type "test" omitted - -# Unsupported target "stream_catch_unwind" with type "test" omitted - -# Unsupported target "unfold" with type "test" omitted - -# Unsupported target "unsync" with type "test" omitted - -# Unsupported target "unsync-oneshot" with type "test" omitted diff --git a/proto/raze/remote/BUILD.futures-cpupool-0.1.8.bazel b/proto/raze/remote/BUILD.futures-cpupool-0.1.8.bazel deleted file mode 100644 index adffc2fbb0..0000000000 --- a/proto/raze/remote/BUILD.futures-cpupool-0.1.8.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@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 "//proto/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 = "futures_cpupool", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "with-deprecated", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=futures-cpupool", - "manual", - ], - version = "0.1.8", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__num_cpus__1_13_0//:num_cpus", - ], -) - -# Unsupported target "smoke" with type "test" omitted diff --git a/proto/raze/remote/BUILD.grpc-0.6.2.bazel b/proto/raze/remote/BUILD.grpc-0.6.2.bazel deleted file mode 100644 index f440d661bc..0000000000 --- a/proto/raze/remote/BUILD.grpc-0.6.2.bazel +++ /dev/null @@ -1,72 +0,0 @@ -""" -@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 "//proto/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 = "grpc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=grpc", - "manual", - ], - version = "0.6.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__base64__0_9_3//:base64", - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__futures_cpupool__0_1_8//:futures_cpupool", - "@rules_rust_proto__httpbis__0_7_0//:httpbis", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__protobuf__2_8_2//:protobuf", - "@rules_rust_proto__tls_api__0_1_22//:tls_api", - "@rules_rust_proto__tls_api_stub__0_1_22//:tls_api_stub", - "@rules_rust_proto__tokio_core__0_1_17//:tokio_core", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_tls_api__0_1_22//:tokio_tls_api", - ], -) - -# Unsupported target "client" with type "test" omitted - -# Unsupported target "server" with type "test" omitted - -# Unsupported target "simple" with type "test" omitted diff --git a/proto/raze/remote/BUILD.grpc-compiler-0.6.2.bazel b/proto/raze/remote/BUILD.grpc-compiler-0.6.2.bazel deleted file mode 100644 index 81d7e7f909..0000000000 --- a/proto/raze/remote/BUILD.grpc-compiler-0.6.2.bazel +++ /dev/null @@ -1,83 +0,0 @@ -""" -@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 "//proto/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_protoc_gen_rust_grpc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/protoc-gen-rust-grpc.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=protoc-gen-rust-grpc", - "manual", - ], - version = "0.6.2", - # buildifier: leave-alone - deps = [ - ":grpc_compiler", - "@rules_rust_proto__protobuf__2_8_2//:protobuf", - "@rules_rust_proto__protobuf_codegen__2_8_2//:protobuf_codegen", - ], -) - -rust_library( - name = "grpc_compiler", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=grpc-compiler", - "manual", - ], - version = "0.6.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__protobuf__2_8_2//:protobuf", - "@rules_rust_proto__protobuf_codegen__2_8_2//:protobuf_codegen", - ], -) diff --git a/proto/raze/remote/BUILD.hermit-abi-0.1.11.bazel b/proto/raze/remote/BUILD.hermit-abi-0.1.11.bazel deleted file mode 100644 index 8585a8f50c..0000000000 --- a/proto/raze/remote/BUILD.hermit-abi-0.1.11.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 = "hermit_abi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=hermit-abi", - "manual", - ], - version = "0.1.11", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__libc__0_2_69//:libc", - ], -) diff --git a/proto/raze/remote/BUILD.httpbis-0.7.0.bazel b/proto/raze/remote/BUILD.httpbis-0.7.0.bazel deleted file mode 100644 index 39b0052964..0000000000 --- a/proto/raze/remote/BUILD.httpbis-0.7.0.bazel +++ /dev/null @@ -1,100 +0,0 @@ -""" -@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 "//proto/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 "client_server" with type "bench" omitted - -# Unsupported target "build-script-build" with type "custom-build" omitted - -# Unsupported target "client" with type "example" omitted - -# Unsupported target "server" with type "example" omitted - -rust_library( - name = "httpbis", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=httpbis", - "manual", - ], - version = "0.7.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__futures_cpupool__0_1_8//:futures_cpupool", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__net2__0_2_33//:net2", - "@rules_rust_proto__tls_api__0_1_22//:tls_api", - "@rules_rust_proto__tls_api_stub__0_1_22//:tls_api_stub", - "@rules_rust_proto__tokio_core__0_1_17//:tokio_core", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_timer__0_1_2//:tokio_timer", - "@rules_rust_proto__tokio_tls_api__0_1_22//:tokio_tls_api", - "@rules_rust_proto__void__1_0_2//:void", - ] + 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", - ): [ - "@rules_rust_proto__tokio_uds__0_1_7//:tokio_uds", - "@rules_rust_proto__unix_socket__0_5_0//:unix_socket", - ], - "//conditions:default": [], - }), -) diff --git a/proto/raze/remote/BUILD.iovec-0.1.4.bazel b/proto/raze/remote/BUILD.iovec-0.1.4.bazel deleted file mode 100644 index 3f47ec0b62..0000000000 --- a/proto/raze/remote/BUILD.iovec-0.1.4.bazel +++ /dev/null @@ -1,79 +0,0 @@ -""" -@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 "//proto/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 = "iovec", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=iovec", - "manual", - ], - version = "0.1.4", - # 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", - ): [ - "@rules_rust_proto__libc__0_2_69//:libc", - ], - "//conditions:default": [], - }), -) diff --git a/proto/raze/remote/BUILD.kernel32-sys-0.2.2.bazel b/proto/raze/remote/BUILD.kernel32-sys-0.2.2.bazel deleted file mode 100644 index 9c97df93b0..0000000000 --- a/proto/raze/remote/BUILD.kernel32-sys-0.2.2.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "build-script-build" with type "custom-build" omitted - -alias( - name = "kernel32_sys", - actual = ":kernel32", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "kernel32", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=kernel32", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__winapi__0_2_8//:winapi", - ], -) diff --git a/proto/raze/remote/BUILD.lazy_static-1.4.0.bazel b/proto/raze/remote/BUILD.lazy_static-1.4.0.bazel deleted file mode 100644 index 8ca830a2de..0000000000 --- a/proto/raze/remote/BUILD.lazy_static-1.4.0.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@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 "//proto/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", - "--cfg=lazy_static_heap_impl", - ], - tags = [ - "cargo-raze", - "crate-name=lazy_static", - "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/proto/raze/remote/BUILD.libc-0.2.69.bazel b/proto/raze/remote/BUILD.libc-0.2.69.bazel deleted file mode 100644 index be5843ae14..0000000000 --- a/proto/raze/remote/BUILD.libc-0.2.69.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@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 "//proto/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", - "crate-name=libc", - "manual", - ], - version = "0.2.69", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "const_fn" with type "test" omitted diff --git a/proto/raze/remote/BUILD.lock_api-0.3.4.bazel b/proto/raze/remote/BUILD.lock_api-0.3.4.bazel deleted file mode 100644 index 92c352123a..0000000000 --- a/proto/raze/remote/BUILD.lock_api-0.3.4.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@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 "//proto/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 - -rust_library( - name = "lock_api", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=lock_api", - "manual", - ], - version = "0.3.4", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__scopeguard__1_1_0//:scopeguard", - ], -) diff --git a/proto/raze/remote/BUILD.log-0.3.9.bazel b/proto/raze/remote/BUILD.log-0.3.9.bazel deleted file mode 100644 index c50efa7343..0000000000 --- a/proto/raze/remote/BUILD.log-0.3.9.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//proto/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 = "log", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "use_std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=log", - "manual", - ], - version = "0.3.9", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__log__0_4_6//:log", - ], -) diff --git a/proto/raze/remote/BUILD.log-0.4.6.bazel b/proto/raze/remote/BUILD.log-0.4.6.bazel deleted file mode 100644 index 0105df1068..0000000000 --- a/proto/raze/remote/BUILD.log-0.4.6.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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 "//proto/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 = "log", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=log", - "manual", - ], - version = "0.4.6", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - ], -) - -# Unsupported target "filters" with type "test" omitted diff --git a/proto/raze/remote/BUILD.maybe-uninit-2.0.0.bazel b/proto/raze/remote/BUILD.maybe-uninit-2.0.0.bazel deleted file mode 100644 index d10bb6a98c..0000000000 --- a/proto/raze/remote/BUILD.maybe-uninit-2.0.0.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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 "//proto/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 "build-script-build" with type "custom-build" omitted - -rust_library( - name = "maybe_uninit", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=maybe-uninit", - "manual", - ], - version = "2.0.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "doesnt_drop" with type "test" omitted diff --git a/proto/raze/remote/BUILD.memoffset-0.5.4.bazel b/proto/raze/remote/BUILD.memoffset-0.5.4.bazel deleted file mode 100644 index 82f4a1ec4a..0000000000 --- a/proto/raze/remote/BUILD.memoffset-0.5.4.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "build-script-build" with type "custom-build" omitted - -rust_library( - name = "memoffset", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=memoffset", - "manual", - ], - version = "0.5.4", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.mio-0.6.21.bazel b/proto/raze/remote/BUILD.mio-0.6.21.bazel deleted file mode 100644 index 1279eb2ab1..0000000000 --- a/proto/raze/remote/BUILD.mio-0.6.21.bazel +++ /dev/null @@ -1,101 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "bench_poll" with type "bench" omitted - -rust_library( - name = "mio", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "with-deprecated", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=mio", - "manual", - ], - version = "0.6.21", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - "@rules_rust_proto__iovec__0_1_4//:iovec", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__net2__0_2_33//:net2", - "@rules_rust_proto__slab__0_4_2//:slab", - ] + 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", - ): [ - "@rules_rust_proto__libc__0_2_69//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_proto__kernel32_sys__0_2_2//:kernel32_sys", - "@rules_rust_proto__miow__0_2_1//:miow", - "@rules_rust_proto__winapi__0_2_8//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "test" with type "test" omitted diff --git a/proto/raze/remote/BUILD.mio-uds-0.6.7.bazel b/proto/raze/remote/BUILD.mio-uds-0.6.7.bazel deleted file mode 100644 index 42b9b0b891..0000000000 --- a/proto/raze/remote/BUILD.mio-uds-0.6.7.bazel +++ /dev/null @@ -1,85 +0,0 @@ -""" -@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 "//proto/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 = "mio_uds", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=mio-uds", - "manual", - ], - version = "0.6.7", - # 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", - ): [ - "@rules_rust_proto__iovec__0_1_4//:iovec", - "@rules_rust_proto__libc__0_2_69//:libc", - "@rules_rust_proto__mio__0_6_21//:mio", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "echo" with type "test" omitted - -# Unsupported target "smoke" with type "test" omitted diff --git a/proto/raze/remote/BUILD.miow-0.2.1.bazel b/proto/raze/remote/BUILD.miow-0.2.1.bazel deleted file mode 100644 index e29645e124..0000000000 --- a/proto/raze/remote/BUILD.miow-0.2.1.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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 "//proto/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 = "miow", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=miow", - "manual", - ], - version = "0.2.1", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__kernel32_sys__0_2_2//:kernel32_sys", - "@rules_rust_proto__net2__0_2_33//:net2", - "@rules_rust_proto__winapi__0_2_8//:winapi", - "@rules_rust_proto__ws2_32_sys__0_2_1//:ws2_32_sys", - ], -) diff --git a/proto/raze/remote/BUILD.net2-0.2.33.bazel b/proto/raze/remote/BUILD.net2-0.2.33.bazel deleted file mode 100644 index fda0b63c94..0000000000 --- a/proto/raze/remote/BUILD.net2-0.2.33.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@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 "//proto/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 = "net2", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "duration", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=net2", - "manual", - ], - version = "0.2.33", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - ] + selects.with_or({ - # cfg(any(target_os = "redox", 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", - ): [ - "@rules_rust_proto__libc__0_2_69//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_proto__winapi__0_3_8//:winapi", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "all" with type "test" omitted diff --git a/proto/raze/remote/BUILD.num_cpus-1.13.0.bazel b/proto/raze/remote/BUILD.num_cpus-1.13.0.bazel deleted file mode 100644 index 87f9029f0a..0000000000 --- a/proto/raze/remote/BUILD.num_cpus-1.13.0.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//proto/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 "values" with type "example" omitted - -rust_library( - name = "num_cpus", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=num_cpus", - "manual", - ], - version = "1.13.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__libc__0_2_69//:libc", - ], -) diff --git a/proto/raze/remote/BUILD.parking_lot-0.9.0.bazel b/proto/raze/remote/BUILD.parking_lot-0.9.0.bazel deleted file mode 100644 index de0873a2e4..0000000000 --- a/proto/raze/remote/BUILD.parking_lot-0.9.0.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@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 "//proto/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 "build-script-build" with type "custom-build" omitted - -rust_library( - name = "parking_lot", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=parking_lot", - "manual", - ], - version = "0.9.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__lock_api__0_3_4//:lock_api", - "@rules_rust_proto__parking_lot_core__0_6_2//:parking_lot_core", - ], -) diff --git a/proto/raze/remote/BUILD.parking_lot_core-0.6.2.bazel b/proto/raze/remote/BUILD.parking_lot_core-0.6.2.bazel deleted file mode 100644 index 71c073e9fc..0000000000 --- a/proto/raze/remote/BUILD.parking_lot_core-0.6.2.bazel +++ /dev/null @@ -1,92 +0,0 @@ -""" -@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 "//proto/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 "build-script-build" with type "custom-build" omitted - -rust_library( - name = "parking_lot_core", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=parking_lot_core", - "manual", - ], - version = "0.6.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - "@rules_rust_proto__smallvec__0_6_13//:smallvec", - ] + 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", - ): [ - "@rules_rust_proto__libc__0_2_69//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_proto__winapi__0_3_8//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/proto/raze/remote/BUILD.protobuf-2.8.2.bazel b/proto/raze/remote/BUILD.protobuf-2.8.2.bazel deleted file mode 100644 index a986e910c5..0000000000 --- a/proto/raze/remote/BUILD.protobuf-2.8.2.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "coded_input_stream" with type "bench" omitted - -# Unsupported target "coded_output_stream" with type "bench" omitted - -# Unsupported target "build-script-build" with type "custom-build" omitted - -rust_library( - name = "protobuf", - srcs = glob(["**/*.rs"]), - crate_features = [ - "bytes", - "with-bytes", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=protobuf", - "manual", - ], - version = "2.8.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - ], -) diff --git a/proto/raze/remote/BUILD.protobuf-codegen-2.8.2.bazel b/proto/raze/remote/BUILD.protobuf-codegen-2.8.2.bazel deleted file mode 100644 index a087c0201a..0000000000 --- a/proto/raze/remote/BUILD.protobuf-codegen-2.8.2.bazel +++ /dev/null @@ -1,107 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# 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_protobuf_bin_gen_rust_do_not_use", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/protobuf-bin-gen-rust-do-not-use.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=protobuf-bin-gen-rust-do-not-use", - "manual", - ], - version = "2.8.2", - # buildifier: leave-alone - deps = [ - ":protobuf_codegen", - "@rules_rust_proto__protobuf__2_8_2//:protobuf", - ], -) - -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_protoc_gen_rust", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/protoc-gen-rust.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=protoc-gen-rust", - "manual", - ], - version = "2.8.2", - # buildifier: leave-alone - deps = [ - ":protobuf_codegen", - "@rules_rust_proto__protobuf__2_8_2//:protobuf", - ], -) - -rust_library( - name = "protobuf_codegen", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=protobuf-codegen", - "manual", - ], - version = "2.8.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__protobuf__2_8_2//:protobuf", - ], -) diff --git a/proto/raze/remote/BUILD.redox_syscall-0.1.56.bazel b/proto/raze/remote/BUILD.redox_syscall-0.1.56.bazel deleted file mode 100644 index 4e8046d331..0000000000 --- a/proto/raze/remote/BUILD.redox_syscall-0.1.56.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -alias( - name = "redox_syscall", - actual = ":syscall", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "syscall", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=syscall", - "manual", - ], - version = "0.1.56", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.rustc_version-0.2.3.bazel b/proto/raze/remote/BUILD.rustc_version-0.2.3.bazel deleted file mode 100644 index 3ccc8297a1..0000000000 --- a/proto/raze/remote/BUILD.rustc_version-0.2.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@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 "//proto/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 = "rustc_version", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rustc_version", - "manual", - ], - version = "0.2.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__semver__0_9_0//:semver", - ], -) diff --git a/proto/raze/remote/BUILD.safemem-0.3.3.bazel b/proto/raze/remote/BUILD.safemem-0.3.3.bazel deleted file mode 100644 index c83b554bda..0000000000 --- a/proto/raze/remote/BUILD.safemem-0.3.3.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 = "safemem", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=safemem", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.scoped-tls-0.1.2.bazel b/proto/raze/remote/BUILD.scoped-tls-0.1.2.bazel deleted file mode 100644 index a209ba2799..0000000000 --- a/proto/raze/remote/BUILD.scoped-tls-0.1.2.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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 "//proto/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 = "scoped_tls", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=scoped-tls", - "manual", - ], - version = "0.1.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.scopeguard-1.1.0.bazel b/proto/raze/remote/BUILD.scopeguard-1.1.0.bazel deleted file mode 100644 index eda9312184..0000000000 --- a/proto/raze/remote/BUILD.scopeguard-1.1.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 "readme" with type "example" omitted - -rust_library( - name = "scopeguard", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=scopeguard", - "manual", - ], - version = "1.1.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.semver-0.9.0.bazel b/proto/raze/remote/BUILD.semver-0.9.0.bazel deleted file mode 100644 index c4223cf8f3..0000000000 --- a/proto/raze/remote/BUILD.semver-0.9.0.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@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 "//proto/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 = "semver", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=semver", - "manual", - ], - version = "0.9.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__semver_parser__0_7_0//:semver_parser", - ], -) - -# Unsupported target "deprecation" with type "test" omitted - -# Unsupported target "regression" with type "test" omitted - -# Unsupported target "serde" with type "test" omitted diff --git a/proto/raze/remote/BUILD.semver-parser-0.7.0.bazel b/proto/raze/remote/BUILD.semver-parser-0.7.0.bazel deleted file mode 100644 index d6c48333e4..0000000000 --- a/proto/raze/remote/BUILD.semver-parser-0.7.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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 "//proto/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 = "semver_parser", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=semver-parser", - "manual", - ], - version = "0.7.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.slab-0.3.0.bazel b/proto/raze/remote/BUILD.slab-0.3.0.bazel deleted file mode 100644 index 5cab0ab005..0000000000 --- a/proto/raze/remote/BUILD.slab-0.3.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "slab", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=slab", - "manual", - ], - version = "0.3.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.slab-0.4.2.bazel b/proto/raze/remote/BUILD.slab-0.4.2.bazel deleted file mode 100644 index 1cfaa933ca..0000000000 --- a/proto/raze/remote/BUILD.slab-0.4.2.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "slab", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=slab", - "manual", - ], - version = "0.4.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "slab" with type "test" omitted diff --git a/proto/raze/remote/BUILD.smallvec-0.6.13.bazel b/proto/raze/remote/BUILD.smallvec-0.6.13.bazel deleted file mode 100644 index 0118109bf2..0000000000 --- a/proto/raze/remote/BUILD.smallvec-0.6.13.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@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 "//proto/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 = "smallvec", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=smallvec", - "manual", - ], - version = "0.6.13", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__maybe_uninit__2_0_0//:maybe_uninit", - ], -) diff --git a/proto/raze/remote/BUILD.tls-api-0.1.22.bazel b/proto/raze/remote/BUILD.tls-api-0.1.22.bazel deleted file mode 100644 index 51f3d9832c..0000000000 --- a/proto/raze/remote/BUILD.tls-api-0.1.22.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@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 "//proto/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 = "tls_api", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tls-api", - "manual", - ], - version = "0.1.22", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__log__0_4_6//:log", - ], -) diff --git a/proto/raze/remote/BUILD.tls-api-stub-0.1.22.bazel b/proto/raze/remote/BUILD.tls-api-stub-0.1.22.bazel deleted file mode 100644 index 74bc1cf655..0000000000 --- a/proto/raze/remote/BUILD.tls-api-stub-0.1.22.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 = "tls_api_stub", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tls-api-stub", - "manual", - ], - version = "0.1.22", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__tls_api__0_1_22//:tls_api", - "@rules_rust_proto__void__1_0_2//:void", - ], -) diff --git a/proto/raze/remote/BUILD.tokio-0.1.22.bazel b/proto/raze/remote/BUILD.tokio-0.1.22.bazel deleted file mode 100644 index e73a2992ea..0000000000 --- a/proto/raze/remote/BUILD.tokio-0.1.22.bazel +++ /dev/null @@ -1,172 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "blocking" with type "example" omitted - -# Unsupported target "chat" with type "example" omitted - -# Unsupported target "chat-combinator" with type "example" omitted - -# Unsupported target "chat-combinator-current-thread" with type "example" omitted - -# Unsupported target "connect" with type "example" omitted - -# Unsupported target "echo" with type "example" omitted - -# Unsupported target "echo-udp" with type "example" omitted - -# Unsupported target "hello_world" with type "example" omitted - -# Unsupported target "manual-runtime" with type "example" omitted - -# Unsupported target "print_each_packet" with type "example" omitted - -# Unsupported target "proxy" with type "example" omitted - -# Unsupported target "tinydb" with type "example" omitted - -# Unsupported target "tinyhttp" with type "example" omitted - -# Unsupported target "udp-client" with type "example" omitted - -# Unsupported target "udp-codec" with type "example" omitted - -rust_library( - name = "tokio", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "bytes", - "codec", - "default", - "fs", - "io", - "mio", - "num_cpus", - "reactor", - "rt-full", - "sync", - "tcp", - "timer", - "tokio-codec", - "tokio-current-thread", - "tokio-executor", - "tokio-fs", - "tokio-io", - "tokio-reactor", - "tokio-sync", - "tokio-tcp", - "tokio-threadpool", - "tokio-timer", - "tokio-udp", - "tokio-uds", - "udp", - "uds", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio", - "manual", - ], - version = "0.1.22", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__num_cpus__1_13_0//:num_cpus", - "@rules_rust_proto__tokio_codec__0_1_2//:tokio_codec", - "@rules_rust_proto__tokio_current_thread__0_1_7//:tokio_current_thread", - "@rules_rust_proto__tokio_executor__0_1_10//:tokio_executor", - "@rules_rust_proto__tokio_fs__0_1_7//:tokio_fs", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_reactor__0_1_12//:tokio_reactor", - "@rules_rust_proto__tokio_sync__0_1_8//:tokio_sync", - "@rules_rust_proto__tokio_tcp__0_1_4//:tokio_tcp", - "@rules_rust_proto__tokio_threadpool__0_1_18//:tokio_threadpool", - "@rules_rust_proto__tokio_timer__0_2_13//:tokio_timer", - "@rules_rust_proto__tokio_udp__0_1_6//:tokio_udp", - ] + 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", - ): [ - "@rules_rust_proto__tokio_uds__0_2_6//:tokio_uds", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "buffered" with type "test" omitted - -# Unsupported target "clock" with type "test" omitted - -# Unsupported target "drop-core" with type "test" omitted - -# Unsupported target "enumerate" with type "test" omitted - -# Unsupported target "global" with type "test" omitted - -# Unsupported target "length_delimited" with type "test" omitted - -# Unsupported target "line-frames" with type "test" omitted - -# Unsupported target "pipe-hup" with type "test" omitted - -# Unsupported target "reactor" with type "test" omitted - -# Unsupported target "runtime" with type "test" omitted - -# Unsupported target "timer" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-codec-0.1.2.bazel b/proto/raze/remote/BUILD.tokio-codec-0.1.2.bazel deleted file mode 100644 index 9e14f6e59a..0000000000 --- a/proto/raze/remote/BUILD.tokio-codec-0.1.2.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_codec", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-codec", - "manual", - ], - version = "0.1.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - ], -) - -# Unsupported target "codecs" with type "test" omitted - -# Unsupported target "framed" with type "test" omitted - -# Unsupported target "framed_read" with type "test" omitted - -# Unsupported target "framed_write" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-core-0.1.17.bazel b/proto/raze/remote/BUILD.tokio-core-0.1.17.bazel deleted file mode 100644 index 5ba8d66332..0000000000 --- a/proto/raze/remote/BUILD.tokio-core-0.1.17.bazel +++ /dev/null @@ -1,119 +0,0 @@ -""" -@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 "//proto/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 "latency" with type "bench" omitted - -# Unsupported target "mio-ops" with type "bench" omitted - -# Unsupported target "tcp" with type "bench" omitted - -# Unsupported target "chat" with type "example" omitted - -# Unsupported target "compress" with type "example" omitted - -# Unsupported target "connect" with type "example" omitted - -# Unsupported target "echo" with type "example" omitted - -# Unsupported target "echo-threads" with type "example" omitted - -# Unsupported target "echo-udp" with type "example" omitted - -# Unsupported target "hello" with type "example" omitted - -# Unsupported target "proxy" with type "example" omitted - -# Unsupported target "sink" with type "example" omitted - -# Unsupported target "tinydb" with type "example" omitted - -# Unsupported target "tinyhttp" with type "example" omitted - -# Unsupported target "udp-codec" with type "example" omitted - -rust_library( - name = "tokio_core", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-core", - "manual", - ], - version = "0.1.17", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__iovec__0_1_4//:iovec", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__scoped_tls__0_1_2//:scoped_tls", - "@rules_rust_proto__tokio__0_1_22//:tokio", - "@rules_rust_proto__tokio_executor__0_1_10//:tokio_executor", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_reactor__0_1_12//:tokio_reactor", - "@rules_rust_proto__tokio_timer__0_2_13//:tokio_timer", - ], -) - -# Unsupported target "buffered" with type "test" omitted - -# Unsupported target "chain" with type "test" omitted - -# Unsupported target "echo" with type "test" omitted - -# Unsupported target "interval" with type "test" omitted - -# Unsupported target "limit" with type "test" omitted - -# Unsupported target "line-frames" with type "test" omitted - -# Unsupported target "pipe-hup" with type "test" omitted - -# Unsupported target "spawn" with type "test" omitted - -# Unsupported target "stream-buffered" with type "test" omitted - -# Unsupported target "tcp" with type "test" omitted - -# Unsupported target "timeout" with type "test" omitted - -# Unsupported target "udp" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-current-thread-0.1.7.bazel b/proto/raze/remote/BUILD.tokio-current-thread-0.1.7.bazel deleted file mode 100644 index 9e92a85925..0000000000 --- a/proto/raze/remote/BUILD.tokio-current-thread-0.1.7.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_current_thread", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-current-thread", - "manual", - ], - version = "0.1.7", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__tokio_executor__0_1_10//:tokio_executor", - ], -) - -# Unsupported target "current_thread" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-executor-0.1.10.bazel b/proto/raze/remote/BUILD.tokio-executor-0.1.10.bazel deleted file mode 100644 index 1cd5a4dcf7..0000000000 --- a/proto/raze/remote/BUILD.tokio-executor-0.1.10.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_executor", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-executor", - "manual", - ], - version = "0.1.10", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - "@rules_rust_proto__futures__0_1_29//:futures", - ], -) - -# Unsupported target "executor" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-fs-0.1.7.bazel b/proto/raze/remote/BUILD.tokio-fs-0.1.7.bazel deleted file mode 100644 index 7b6c45b257..0000000000 --- a/proto/raze/remote/BUILD.tokio-fs-0.1.7.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "std-echo" with type "example" omitted - -rust_library( - name = "tokio_fs", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-fs", - "manual", - ], - version = "0.1.7", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_threadpool__0_1_18//:tokio_threadpool", - ], -) - -# Unsupported target "dir" with type "test" omitted - -# Unsupported target "file" with type "test" omitted - -# Unsupported target "link" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-io-0.1.13.bazel b/proto/raze/remote/BUILD.tokio-io-0.1.13.bazel deleted file mode 100644 index f407dc1406..0000000000 --- a/proto/raze/remote/BUILD.tokio-io-0.1.13.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_io", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-io", - "manual", - ], - version = "0.1.13", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__log__0_4_6//:log", - ], -) - -# Unsupported target "async_read" with type "test" omitted - -# Unsupported target "length_delimited" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-reactor-0.1.12.bazel b/proto/raze/remote/BUILD.tokio-reactor-0.1.12.bazel deleted file mode 100644 index 9a371f2768..0000000000 --- a/proto/raze/remote/BUILD.tokio-reactor-0.1.12.bazel +++ /dev/null @@ -1,67 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "basic" with type "bench" omitted - -rust_library( - name = "tokio_reactor", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-reactor", - "manual", - ], - version = "0.1.12", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__lazy_static__1_4_0//:lazy_static", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__num_cpus__1_13_0//:num_cpus", - "@rules_rust_proto__parking_lot__0_9_0//:parking_lot", - "@rules_rust_proto__slab__0_4_2//:slab", - "@rules_rust_proto__tokio_executor__0_1_10//:tokio_executor", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_sync__0_1_8//:tokio_sync", - ], -) diff --git a/proto/raze/remote/BUILD.tokio-sync-0.1.8.bazel b/proto/raze/remote/BUILD.tokio-sync-0.1.8.bazel deleted file mode 100644 index d5a752d89d..0000000000 --- a/proto/raze/remote/BUILD.tokio-sync-0.1.8.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "mpsc" with type "bench" omitted - -# Unsupported target "oneshot" with type "bench" omitted - -rust_library( - name = "tokio_sync", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-sync", - "manual", - ], - version = "0.1.8", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__fnv__1_0_6//:fnv", - "@rules_rust_proto__futures__0_1_29//:futures", - ], -) - -# Unsupported target "atomic_task" with type "test" omitted - -# Unsupported target "errors" with type "test" omitted - -# Unsupported target "fuzz_atomic_task" with type "test" omitted - -# Unsupported target "fuzz_list" with type "test" omitted - -# Unsupported target "fuzz_mpsc" with type "test" omitted - -# Unsupported target "fuzz_oneshot" with type "test" omitted - -# Unsupported target "fuzz_semaphore" with type "test" omitted - -# Unsupported target "lock" with type "test" omitted - -# Unsupported target "mpsc" with type "test" omitted - -# Unsupported target "oneshot" with type "test" omitted - -# Unsupported target "semaphore" with type "test" omitted - -# Unsupported target "watch" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-tcp-0.1.4.bazel b/proto/raze/remote/BUILD.tokio-tcp-0.1.4.bazel deleted file mode 100644 index 6475b0653c..0000000000 --- a/proto/raze/remote/BUILD.tokio-tcp-0.1.4.bazel +++ /dev/null @@ -1,70 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_tcp", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-tcp", - "manual", - ], - version = "0.1.4", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__iovec__0_1_4//:iovec", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_reactor__0_1_12//:tokio_reactor", - ], -) - -# Unsupported target "chain" with type "test" omitted - -# Unsupported target "echo" with type "test" omitted - -# Unsupported target "limit" with type "test" omitted - -# Unsupported target "stream-buffered" with type "test" omitted - -# Unsupported target "tcp" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-threadpool-0.1.18.bazel b/proto/raze/remote/BUILD.tokio-threadpool-0.1.18.bazel deleted file mode 100644 index b0abdeed7d..0000000000 --- a/proto/raze/remote/BUILD.tokio-threadpool-0.1.18.bazel +++ /dev/null @@ -1,79 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "basic" with type "bench" omitted - -# Unsupported target "blocking" with type "bench" omitted - -# Unsupported target "depth" with type "bench" omitted - -# Unsupported target "depth" with type "example" omitted - -# Unsupported target "hello" with type "example" omitted - -rust_library( - name = "tokio_threadpool", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-threadpool", - "manual", - ], - version = "0.1.18", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__crossbeam_deque__0_7_3//:crossbeam_deque", - "@rules_rust_proto__crossbeam_queue__0_2_1//:crossbeam_queue", - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__lazy_static__1_4_0//:lazy_static", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__num_cpus__1_13_0//:num_cpus", - "@rules_rust_proto__slab__0_4_2//:slab", - "@rules_rust_proto__tokio_executor__0_1_10//:tokio_executor", - ], -) - -# Unsupported target "blocking" with type "test" omitted - -# Unsupported target "hammer" with type "test" omitted - -# Unsupported target "threadpool" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-timer-0.1.2.bazel b/proto/raze/remote/BUILD.tokio-timer-0.1.2.bazel deleted file mode 100644 index e287faf980..0000000000 --- a/proto/raze/remote/BUILD.tokio-timer-0.1.2.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@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 "//proto/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 = "tokio_timer", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-timer", - "manual", - ], - version = "0.1.2", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__slab__0_3_0//:slab", - ], -) - -# Unsupported target "support" with type "test" omitted - -# Unsupported target "test_timer" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-timer-0.2.13.bazel b/proto/raze/remote/BUILD.tokio-timer-0.2.13.bazel deleted file mode 100644 index 3a0b46e62c..0000000000 --- a/proto/raze/remote/BUILD.tokio-timer-0.2.13.bazel +++ /dev/null @@ -1,74 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_timer", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-timer", - "manual", - ], - version = "0.2.13", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__crossbeam_utils__0_7_2//:crossbeam_utils", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__slab__0_4_2//:slab", - "@rules_rust_proto__tokio_executor__0_1_10//:tokio_executor", - ], -) - -# Unsupported target "clock" with type "test" omitted - -# Unsupported target "deadline" with type "test" omitted - -# Unsupported target "delay" with type "test" omitted - -# Unsupported target "hammer" with type "test" omitted - -# Unsupported target "interval" with type "test" omitted - -# Unsupported target "queue" with type "test" omitted - -# Unsupported target "throttle" with type "test" omitted - -# Unsupported target "timeout" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-tls-api-0.1.22.bazel b/proto/raze/remote/BUILD.tokio-tls-api-0.1.22.bazel deleted file mode 100644 index ad4429a947..0000000000 --- a/proto/raze/remote/BUILD.tokio-tls-api-0.1.22.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@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 "//proto/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 = "tokio_tls_api", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-tls-api", - "manual", - ], - version = "0.1.22", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__tls_api__0_1_22//:tls_api", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - ], -) - -# Unsupported target "bad" with type "test" omitted - -# Unsupported target "smoke" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-udp-0.1.6.bazel b/proto/raze/remote/BUILD.tokio-udp-0.1.6.bazel deleted file mode 100644 index 469f564ef9..0000000000 --- a/proto/raze/remote/BUILD.tokio-udp-0.1.6.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_udp", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-udp", - "manual", - ], - version = "0.1.6", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__tokio_codec__0_1_2//:tokio_codec", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_reactor__0_1_12//:tokio_reactor", - ], -) - -# Unsupported target "udp" with type "test" omitted diff --git a/proto/raze/remote/BUILD.tokio-uds-0.1.7.bazel b/proto/raze/remote/BUILD.tokio-uds-0.1.7.bazel deleted file mode 100644 index 3428469be6..0000000000 --- a/proto/raze/remote/BUILD.tokio-uds-0.1.7.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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 "//proto/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 = "tokio_uds", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-uds", - "manual", - ], - version = "0.1.7", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__iovec__0_1_4//:iovec", - "@rules_rust_proto__libc__0_2_69//:libc", - "@rules_rust_proto__log__0_3_9//:log", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__mio_uds__0_6_7//:mio_uds", - "@rules_rust_proto__tokio_core__0_1_17//:tokio_core", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - ], -) diff --git a/proto/raze/remote/BUILD.tokio-uds-0.2.6.bazel b/proto/raze/remote/BUILD.tokio-uds-0.2.6.bazel deleted file mode 100644 index 80e4f8464a..0000000000 --- a/proto/raze/remote/BUILD.tokio-uds-0.2.6.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "tokio_uds", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tokio-uds", - "manual", - ], - version = "0.2.6", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__bytes__0_4_12//:bytes", - "@rules_rust_proto__futures__0_1_29//:futures", - "@rules_rust_proto__iovec__0_1_4//:iovec", - "@rules_rust_proto__libc__0_2_69//:libc", - "@rules_rust_proto__log__0_4_6//:log", - "@rules_rust_proto__mio__0_6_21//:mio", - "@rules_rust_proto__mio_uds__0_6_7//:mio_uds", - "@rules_rust_proto__tokio_codec__0_1_2//:tokio_codec", - "@rules_rust_proto__tokio_io__0_1_13//:tokio_io", - "@rules_rust_proto__tokio_reactor__0_1_12//:tokio_reactor", - ], -) - -# Unsupported target "datagram" with type "test" omitted - -# Unsupported target "stream" with type "test" omitted diff --git a/proto/raze/remote/BUILD.unix_socket-0.5.0.bazel b/proto/raze/remote/BUILD.unix_socket-0.5.0.bazel deleted file mode 100644 index c50e21e8cf..0000000000 --- a/proto/raze/remote/BUILD.unix_socket-0.5.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 = "unix_socket", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unix_socket", - "manual", - ], - version = "0.5.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__cfg_if__0_1_10//:cfg_if", - "@rules_rust_proto__libc__0_2_69//:libc", - ], -) diff --git a/proto/raze/remote/BUILD.void-1.0.2.bazel b/proto/raze/remote/BUILD.void-1.0.2.bazel deleted file mode 100644 index 1ac45cd805..0000000000 --- a/proto/raze/remote/BUILD.void-1.0.2.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "void", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=void", - "manual", - ], - version = "1.0.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.winapi-0.2.8.bazel b/proto/raze/remote/BUILD.winapi-0.2.8.bazel deleted file mode 100644 index c71906f921..0000000000 --- a/proto/raze/remote/BUILD.winapi-0.2.8.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "winapi", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi", - "manual", - ], - version = "0.2.8", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.winapi-0.3.8.bazel b/proto/raze/remote/BUILD.winapi-0.3.8.bazel deleted file mode 100644 index 6901ac3f69..0000000000 --- a/proto/raze/remote/BUILD.winapi-0.3.8.bazel +++ /dev/null @@ -1,67 +0,0 @@ -""" -@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 "//proto/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 = "winapi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "errhandlingapi", - "handleapi", - "minwindef", - "ntstatus", - "winbase", - "winerror", - "winnt", - "winsock2", - "ws2def", - "ws2ipdef", - "ws2tcpip", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi", - "manual", - ], - version = "0.3.8", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.winapi-build-0.1.1.bazel b/proto/raze/remote/BUILD.winapi-build-0.1.1.bazel deleted file mode 100644 index 605b46164b..0000000000 --- a/proto/raze/remote/BUILD.winapi-build-0.1.1.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -alias( - name = "winapi_build", - actual = ":build", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "build", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=build", - "manual", - ], - version = "0.1.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/proto/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index fd675d5d8b..0000000000 --- a/proto/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 = "winapi_i686_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-i686-pc-windows-gnu", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/proto/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index 7adb7a7dd3..0000000000 --- a/proto/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//proto/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 = "winapi_x86_64_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-x86_64-pc-windows-gnu", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/proto/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel b/proto/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel deleted file mode 100644 index c569cae663..0000000000 --- a/proto/raze/remote/BUILD.ws2_32-sys-0.2.1.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@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 "//proto/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "build-script-build" with type "custom-build" omitted - -alias( - name = "ws2_32_sys", - actual = ":ws2_32", - tags = [ - "cargo-raze", - "manual", - ], -) - -rust_library( - name = "ws2_32", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=ws2_32", - "manual", - ], - version = "0.2.1", - # buildifier: leave-alone - deps = [ - "@rules_rust_proto__winapi__0_2_8//:winapi", - ], -) diff --git a/proto/repositories.bzl b/proto/repositories.bzl index af230336d6..159161394c 100644 --- a/proto/repositories.bzl +++ b/proto/repositories.bzl @@ -15,7 +15,7 @@ # buildifier: disable=module-docstring load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") -load("//proto/raze:crates.bzl", "rules_rust_proto_fetch_remote_crates") +load("//proto/3rdparty/crates:defs.bzl", "crate_repositories") # buildifier: disable=unnamed-macro def rust_proto_repositories(register_default_toolchain = True): @@ -48,11 +48,11 @@ def rust_proto_repositories(register_default_toolchain = True): ], patch_args = ["-p1"], patches = [ - Label("//proto/patches:com_google_protobuf-v3.10.0-bzl_visibility.patch"), + Label("//proto/3rdparty/patches:com_google_protobuf-v3.10.0-bzl_visibility.patch"), ], ) - rules_rust_proto_fetch_remote_crates() + crate_repositories() # Register toolchains if register_default_toolchain: diff --git a/proto/toolchain.bzl b/proto/toolchain.bzl index 80c5cccd50..7225d0d187 100644 --- a/proto/toolchain.bzl +++ b/proto/toolchain.bzl @@ -129,14 +129,14 @@ def _rust_proto_toolchain_impl(ctx): # Default dependencies needed to compile protobuf stubs. PROTO_COMPILE_DEPS = [ - Label("//proto/raze:protobuf"), + Label("//proto/3rdparty/crates:protobuf"), ] # Default dependencies needed to compile gRPC stubs. GRPC_COMPILE_DEPS = PROTO_COMPILE_DEPS + [ - Label("//proto/raze:grpc"), - Label("//proto/raze:tls_api"), - Label("//proto/raze:tls_api_stub"), + Label("//proto/3rdparty/crates:grpc"), + Label("//proto/3rdparty/crates:tls-api"), + Label("//proto/3rdparty/crates:tls-api-stub"), ] rust_proto_toolchain = rule( From 0ffde973e8ae048c641b8f78d8a3633616af920f Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Tue, 2 Aug 2022 06:16:10 -0700 Subject: [PATCH 05/26] Updated `//util/import` to use crate_universe (#1492) * Updated `//util/import` to use crate_universe * Regenerated dependencies --- util/import/3rdparty/BUILD.bazel | 52 ++ .../Cargo.Bazel.lock} | 38 +- .../crates/BUILD.aho-corasick-0.7.15.bazel | 93 +++ util/import/3rdparty/crates/BUILD.bazel | 66 +++ .../3rdparty/crates/BUILD.cfg-if-1.0.0.bazel | 90 +++ .../crates/BUILD.env_logger-0.8.4.bazel | 93 +++ .../crates/BUILD.getrandom-0.2.7.bazel | 129 +++++ .../crates/BUILD.lazy_static-1.4.0.bazel | 90 +++ .../3rdparty/crates/BUILD.libc-0.2.126.bazel | 174 ++++++ .../3rdparty/crates/BUILD.log-0.4.17.bazel | 177 ++++++ .../3rdparty/crates/BUILD.memchr-2.5.0.bazel | 180 ++++++ .../crates/BUILD.proc-macro2-1.0.33.bazel | 179 ++++++ .../crates/BUILD.quickcheck-1.0.3.bazel | 98 ++++ .../3rdparty/crates/BUILD.quote-1.0.10.bazel | 93 +++ .../3rdparty/crates/BUILD.rand-0.8.5.bazel | 93 +++ .../crates/BUILD.rand_core-0.6.3.bazel | 92 +++ .../3rdparty/crates/BUILD.regex-1.4.6.bazel | 101 ++++ .../crates/BUILD.regex-syntax-0.6.27.bazel | 90 +++ .../3rdparty/crates/BUILD.syn-1.0.82.bazel | 191 ++++++ .../crates/BUILD.unicode-xid-0.2.3.bazel | 91 +++ ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 92 +++ util/import/3rdparty/crates/crates.bzl | 25 + util/import/3rdparty/crates/defs.bzl | 548 ++++++++++++++++++ util/import/BUILD.bazel | 17 +- util/import/deps.bzl | 4 +- util/import/raze/BUILD.bazel | 85 --- util/import/raze/Cargo.toml | 25 - util/import/raze/crates.bzl | 192 ------ .../remote/BUILD.aho-corasick-0.7.15.bazel | 57 -- util/import/raze/remote/BUILD.bazel | 17 - .../raze/remote/BUILD.cfg-if-1.0.0.bazel | 56 -- .../raze/remote/BUILD.env_logger-0.8.4.bazel | 65 --- .../raze/remote/BUILD.getrandom-0.2.3.bazel | 96 --- .../raze/remote/BUILD.lazy_static-1.4.0.bazel | 58 -- .../raze/remote/BUILD.libc-0.2.112.bazel | 86 --- .../import/raze/remote/BUILD.log-0.4.14.bazel | 93 --- .../raze/remote/BUILD.memchr-2.4.1.bazel | 90 --- .../remote/BUILD.proc-macro2-1.0.33.bazel | 99 ---- .../raze/remote/BUILD.quickcheck-1.0.3.bazel | 74 --- .../raze/remote/BUILD.quote-1.0.10.bazel | 63 -- .../import/raze/remote/BUILD.rand-0.8.4.bazel | 57 -- .../raze/remote/BUILD.rand_core-0.6.3.bazel | 56 -- .../raze/remote/BUILD.regex-1.4.6.bazel | 95 --- .../remote/BUILD.regex-syntax-0.6.25.bazel | 56 -- .../import/raze/remote/BUILD.syn-1.0.82.bazel | 157 ----- .../raze/remote/BUILD.unicode-xid-0.2.2.bazel | 59 -- ...D.wasi-0.10.2+wasi-snapshot-preview1.bazel | 56 -- 47 files changed, 2867 insertions(+), 1721 deletions(-) create mode 100644 util/import/3rdparty/BUILD.bazel rename util/import/{raze/Cargo.raze.lock => 3rdparty/Cargo.Bazel.lock} (79%) create mode 100644 util/import/3rdparty/crates/BUILD.aho-corasick-0.7.15.bazel create mode 100644 util/import/3rdparty/crates/BUILD.bazel create mode 100644 util/import/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel create mode 100644 util/import/3rdparty/crates/BUILD.env_logger-0.8.4.bazel create mode 100644 util/import/3rdparty/crates/BUILD.getrandom-0.2.7.bazel create mode 100644 util/import/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel create mode 100644 util/import/3rdparty/crates/BUILD.libc-0.2.126.bazel create mode 100644 util/import/3rdparty/crates/BUILD.log-0.4.17.bazel create mode 100644 util/import/3rdparty/crates/BUILD.memchr-2.5.0.bazel create mode 100644 util/import/3rdparty/crates/BUILD.proc-macro2-1.0.33.bazel create mode 100644 util/import/3rdparty/crates/BUILD.quickcheck-1.0.3.bazel create mode 100644 util/import/3rdparty/crates/BUILD.quote-1.0.10.bazel create mode 100644 util/import/3rdparty/crates/BUILD.rand-0.8.5.bazel create mode 100644 util/import/3rdparty/crates/BUILD.rand_core-0.6.3.bazel create mode 100644 util/import/3rdparty/crates/BUILD.regex-1.4.6.bazel create mode 100644 util/import/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel create mode 100644 util/import/3rdparty/crates/BUILD.syn-1.0.82.bazel create mode 100644 util/import/3rdparty/crates/BUILD.unicode-xid-0.2.3.bazel create mode 100644 util/import/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel create mode 100644 util/import/3rdparty/crates/crates.bzl create mode 100644 util/import/3rdparty/crates/defs.bzl delete mode 100644 util/import/raze/BUILD.bazel delete mode 100644 util/import/raze/Cargo.toml delete mode 100644 util/import/raze/crates.bzl delete mode 100644 util/import/raze/remote/BUILD.aho-corasick-0.7.15.bazel delete mode 100644 util/import/raze/remote/BUILD.bazel delete mode 100644 util/import/raze/remote/BUILD.cfg-if-1.0.0.bazel delete mode 100644 util/import/raze/remote/BUILD.env_logger-0.8.4.bazel delete mode 100644 util/import/raze/remote/BUILD.getrandom-0.2.3.bazel delete mode 100644 util/import/raze/remote/BUILD.lazy_static-1.4.0.bazel delete mode 100644 util/import/raze/remote/BUILD.libc-0.2.112.bazel delete mode 100644 util/import/raze/remote/BUILD.log-0.4.14.bazel delete mode 100644 util/import/raze/remote/BUILD.memchr-2.4.1.bazel delete mode 100644 util/import/raze/remote/BUILD.proc-macro2-1.0.33.bazel delete mode 100644 util/import/raze/remote/BUILD.quickcheck-1.0.3.bazel delete mode 100644 util/import/raze/remote/BUILD.quote-1.0.10.bazel delete mode 100644 util/import/raze/remote/BUILD.rand-0.8.4.bazel delete mode 100644 util/import/raze/remote/BUILD.rand_core-0.6.3.bazel delete mode 100644 util/import/raze/remote/BUILD.regex-1.4.6.bazel delete mode 100644 util/import/raze/remote/BUILD.regex-syntax-0.6.25.bazel delete mode 100644 util/import/raze/remote/BUILD.syn-1.0.82.bazel delete mode 100644 util/import/raze/remote/BUILD.unicode-xid-0.2.2.bazel delete mode 100644 util/import/raze/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel diff --git a/util/import/3rdparty/BUILD.bazel b/util/import/3rdparty/BUILD.bazel new file mode 100644 index 0000000000..1a41d86e15 --- /dev/null +++ b/util/import/3rdparty/BUILD.bazel @@ -0,0 +1,52 @@ +load("@bazel_skylib//:bzl_library.bzl", "bzl_library") +load("//crate_universe:defs.bzl", "crate", "crates_vendor") + +crates_vendor( + name = "crates_vendor", + cargo_lockfile = "Cargo.Bazel.lock", + generate_build_scripts = True, + mode = "remote", + packages = { + "aho-corasick": crate.spec( + version = "=0.7.15", + ), + "lazy_static": crate.spec( + version = "=1.4.0", + ), + "proc-macro2": crate.spec( + version = "=1.0.33", + ), + "quickcheck": crate.spec( + version = "=1.0.3", + ), + "quote": crate.spec( + version = "=1.0.10", + ), + "syn": crate.spec( + version = "=1.0.82", + ), + }, + repository_name = "rules_rust_util_import", + tags = ["manual"], +) + +bzl_library( + name = "bzl_lib", + srcs = glob(["**/*.bzl"]) + [ + "//util/import/3rdparty/crates:defs.bzl", + "//util/import/3rdparty/crates:crates.bzl", + ], + visibility = ["//util/import:__pkg__"], +) + +filegroup( + name = "distro", + srcs = glob([ + "*.bzl", + "*.bazel", + ]) + [ + "//util/import/3rdparty/crates:srcs", + "Cargo.Bazel.lock", + ], + visibility = ["//util/import:__pkg__"], +) diff --git a/util/import/raze/Cargo.raze.lock b/util/import/3rdparty/Cargo.Bazel.lock similarity index 79% rename from util/import/raze/Cargo.raze.lock rename to util/import/3rdparty/Cargo.Bazel.lock index 72b143bd66..102e136648 100644 --- a/util/import/raze/Cargo.raze.lock +++ b/util/import/3rdparty/Cargo.Bazel.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "aho-corasick" version = "0.7.15" @@ -16,8 +18,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] -name = "compile_with_bazel" -version = "0.0.0" +name = "direct-cargo-bazel-deps" +version = "0.0.1" dependencies = [ "aho-corasick", "lazy_static", @@ -39,9 +41,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.3" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" +checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" dependencies = [ "cfg-if", "libc", @@ -56,24 +58,24 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.112" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "log" -version = "0.4.14" +version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] [[package]] name = "memchr" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "proc-macro2" @@ -106,9 +108,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "rand_core", ] @@ -135,9 +137,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.25" +version = "0.6.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" [[package]] name = "syn" @@ -152,12 +154,12 @@ dependencies = [ [[package]] name = "unicode-xid" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +checksum = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04" [[package]] name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" diff --git a/util/import/3rdparty/crates/BUILD.aho-corasick-0.7.15.bazel b/util/import/3rdparty/crates/BUILD.aho-corasick-0.7.15.bazel new file mode 100644 index 0000000000..e502cdebde --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.aho-corasick-0.7.15.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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", # Unlicense/MIT +# ]) + +rust_library( + name = "aho_corasick", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.15", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__memchr-2.5.0//:memchr", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.bazel b/util/import/3rdparty/crates/BUILD.bazel new file mode 100644 index 0000000000..4674880652 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.bazel @@ -0,0 +1,66 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "aho-corasick", + actual = "@rules_rust_util_import__aho-corasick-0.7.15//:aho_corasick", + tags = ["manual"], +) + +alias( + name = "lazy_static", + actual = "@rules_rust_util_import__lazy_static-1.4.0//:lazy_static", + tags = ["manual"], +) + +alias( + name = "proc-macro2", + actual = "@rules_rust_util_import__proc-macro2-1.0.33//:proc_macro2", + tags = ["manual"], +) + +alias( + name = "quickcheck", + actual = "@rules_rust_util_import__quickcheck-1.0.3//:quickcheck", + tags = ["manual"], +) + +alias( + name = "quote", + actual = "@rules_rust_util_import__quote-1.0.10//:quote", + tags = ["manual"], +) + +alias( + name = "syn", + actual = "@rules_rust_util_import__syn-1.0.82//:syn", + tags = ["manual"], +) + +# Binaries diff --git a/util/import/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel b/util/import/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 0000000000..33352ad66e --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.env_logger-0.8.4.bazel b/util/import/3rdparty/crates/BUILD.env_logger-0.8.4.bazel new file mode 100644 index 0000000000..4bab83fafc --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.env_logger-0.8.4.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "env_logger", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "regex", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__log-0.4.17//:log", + "@rules_rust_util_import__regex-1.4.6//:regex", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.getrandom-0.2.7.bazel b/util/import/3rdparty/crates/BUILD.getrandom-0.2.7.bazel new file mode 100644 index 0000000000..533dc8ca82 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.getrandom-0.2.7.bazel @@ -0,0 +1,129 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "getrandom", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.7", + deps = [ + ] + select_with_or({ + # cfg(target_os = "wasi") + ( + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + # Target Deps + "@rules_rust_util_import__wasi-0.11.0-wasi-snapshot-preview1//:wasi", + + # Common Deps + "@rules_rust_util_import__cfg-if-1.0.0//:cfg_if", + ], + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@rules_rust_util_import__libc-0.2.126//:libc", + + # Common Deps + "@rules_rust_util_import__cfg-if-1.0.0//:cfg_if", + ], + "//conditions:default": [ + "@rules_rust_util_import__cfg-if-1.0.0//:cfg_if", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel b/util/import/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 0000000000..9c7761eed4 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.libc-0.2.126.bazel b/util/import/3rdparty/crates/BUILD.libc-0.2.126.bazel new file mode 100644 index 0000000000..723908efca --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.libc-0.2.126.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.126", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__libc-0.2.126//: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 = [ + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.2.126", + 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/util/import/3rdparty/crates/BUILD.log-0.4.17.bazel b/util/import/3rdparty/crates/BUILD.log-0.4.17.bazel new file mode 100644 index 0000000000..a9f2f724a6 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.log-0.4.17.bazel @@ -0,0 +1,177 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.17", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__cfg-if-1.0.0//:cfg_if", + "@rules_rust_util_import__log-0.4.17//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.17", + 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/util/import/3rdparty/crates/BUILD.memchr-2.5.0.bazel b/util/import/3rdparty/crates/BUILD.memchr-2.5.0.bazel new file mode 100644 index 0000000000..48802896d9 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.memchr-2.5.0.bazel @@ -0,0 +1,180 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + "use_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.5.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__memchr-2.5.0//: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", + "use_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "2.5.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 = "memchr_build_script", + tags = [ + "manual", + ], +) diff --git a/util/import/3rdparty/crates/BUILD.proc-macro2-1.0.33.bazel b/util/import/3rdparty/crates/BUILD.proc-macro2-1.0.33.bazel new file mode 100644 index 0000000000..85ab9a4b24 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.proc-macro2-1.0.33.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.33", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__proc-macro2-1.0.33//:build_script_build", + "@rules_rust_util_import__unicode-xid-0.2.3//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.33", + 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/util/import/3rdparty/crates/BUILD.quickcheck-1.0.3.bazel b/util/import/3rdparty/crates/BUILD.quickcheck-1.0.3.bazel new file mode 100644 index 0000000000..d516d6045d --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.quickcheck-1.0.3.bazel @@ -0,0 +1,98 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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", # Unlicense/MIT +# ]) + +rust_library( + name = "quickcheck", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "env_logger", + "log", + "regex", + "use_logging", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__env_logger-0.8.4//:env_logger", + "@rules_rust_util_import__log-0.4.17//:log", + "@rules_rust_util_import__rand-0.8.5//:rand", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.quote-1.0.10.bazel b/util/import/3rdparty/crates/BUILD.quote-1.0.10.bazel new file mode 100644 index 0000000000..c94b5b576d --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.quote-1.0.10.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.10", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__proc-macro2-1.0.33//:proc_macro2", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.rand-0.8.5.bazel b/util/import/3rdparty/crates/BUILD.rand-0.8.5.bazel new file mode 100644 index 0000000000..890cfd6045 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.rand-0.8.5.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "rand", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "getrandom", + "small_rng", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.5", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__rand_core-0.6.3//:rand_core", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.rand_core-0.6.3.bazel b/util/import/3rdparty/crates/BUILD.rand_core-0.6.3.bazel new file mode 100644 index 0000000000..6376096742 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.rand_core-0.6.3.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "rand_core", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "getrandom", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__getrandom-0.2.7//:getrandom", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.regex-1.4.6.bazel b/util/import/3rdparty/crates/BUILD.regex-1.4.6.bazel new file mode 100644 index 0000000000..496800258e --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.regex-1.4.6.bazel @@ -0,0 +1,101 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "regex", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "aho-corasick", + "memchr", + "perf", + "perf-cache", + "perf-dfa", + "perf-inline", + "perf-literal", + "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.6", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__aho-corasick-0.7.15//:aho_corasick", + "@rules_rust_util_import__memchr-2.5.0//:memchr", + "@rules_rust_util_import__regex-syntax-0.6.27//:regex_syntax", + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel b/util/import/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel new file mode 100644 index 0000000000..cadf7fe38f --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 = "regex_syntax", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.27", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.syn-1.0.82.bazel b/util/import/3rdparty/crates/BUILD.syn-1.0.82.bazel new file mode 100644 index 0000000000..c2cc5c87c0 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.syn-1.0.82.bazel @@ -0,0 +1,191 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + "quote", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.82", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_util_import__proc-macro2-1.0.33//:proc_macro2", + "@rules_rust_util_import__quote-1.0.10//:quote", + "@rules_rust_util_import__syn-1.0.82//:build_script_build", + "@rules_rust_util_import__unicode-xid-0.2.3//: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", + "parsing", + "printing", + "proc-macro", + "quote", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.82", + 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/util/import/3rdparty/crates/BUILD.unicode-xid-0.2.3.bazel b/util/import/3rdparty/crates/BUILD.unicode-xid-0.2.3.bazel new file mode 100644 index 0000000000..5405857948 --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.unicode-xid-0.2.3.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/util/import/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/util/import/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel new file mode 100644 index 0000000000..02de9462cb --- /dev/null +++ b/util/import/3rdparty/crates/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### + +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 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "wasi", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.11.0+wasi-snapshot-preview1", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/util/import/3rdparty/crates/crates.bzl b/util/import/3rdparty/crates/crates.bzl new file mode 100644 index 0000000000..fc608af7af --- /dev/null +++ b/util/import/3rdparty/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("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") + +# buildifier: disable=bzl-visibility +load("@rules_rust//util/import/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") + +def crate_repositories(): + maybe( + crates_vendor_remote_repository, + name = "rules_rust_util_import", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust//util/import/3rdparty/crates:defs.bzl"), + ) + + _crate_repositories() diff --git a/util/import/3rdparty/crates/defs.bzl b/util/import/3rdparty/crates/defs.bzl new file mode 100644 index 0000000000..8bf2778ca8 --- /dev/null +++ b/util/import/3rdparty/crates/defs.bzl @@ -0,0 +1,548 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //util/import/3rdparty:crates_vendor +############################################################################### +""" +# `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: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + 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: { + "aho-corasick": "@rules_rust_util_import__aho-corasick-0.7.15//:aho_corasick", + "lazy_static": "@rules_rust_util_import__lazy_static-1.4.0//:lazy_static", + "proc-macro2": "@rules_rust_util_import__proc-macro2-1.0.33//:proc_macro2", + "quickcheck": "@rules_rust_util_import__quickcheck-1.0.3//:quickcheck", + "quote": "@rules_rust_util_import__quote-1.0.10//:quote", + "syn": "@rules_rust_util_import__syn-1.0.82//:syn", + }, + }, +} + +_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(target_os = \"wasi\")": ["wasm32-wasi"], + "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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"], +} + +############################################################################### + +def crate_repositories(): + """A macro for defining repositories for all generated crates""" + maybe( + http_archive, + name = "rules_rust_util_import__aho-corasick-0.7.15", + sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/aho-corasick/0.7.15/download"], + strip_prefix = "aho-corasick-0.7.15", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.aho-corasick-0.7.15.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__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("@rules_rust//util/import/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__env_logger-0.8.4", + sha256 = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/env_logger/0.8.4/download"], + strip_prefix = "env_logger-0.8.4", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.env_logger-0.8.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__getrandom-0.2.7", + sha256 = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/getrandom/0.2.7/download"], + strip_prefix = "getrandom-0.2.7", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.getrandom-0.2.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__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("@rules_rust//util/import/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__libc-0.2.126", + sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"], + strip_prefix = "libc-0.2.126", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.libc-0.2.126.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__log-0.4.17", + sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"], + strip_prefix = "log-0.4.17", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.log-0.4.17.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__memchr-2.5.0", + sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/memchr/2.5.0/download"], + strip_prefix = "memchr-2.5.0", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.memchr-2.5.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__proc-macro2-1.0.33", + sha256 = "fb37d2df5df740e582f28f8560cf425f52bb267d872fe58358eadb554909f07a", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.33/download"], + strip_prefix = "proc-macro2-1.0.33", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.proc-macro2-1.0.33.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__quickcheck-1.0.3", + sha256 = "588f6378e4dd99458b60ec275b4477add41ce4fa9f64dcba6f15adccb19b50d6", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/quickcheck/1.0.3/download"], + strip_prefix = "quickcheck-1.0.3", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.quickcheck-1.0.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__quote-1.0.10", + sha256 = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/quote/1.0.10/download"], + strip_prefix = "quote-1.0.10", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.quote-1.0.10.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__rand-0.8.5", + sha256 = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/rand/0.8.5/download"], + strip_prefix = "rand-0.8.5", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.rand-0.8.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__rand_core-0.6.3", + sha256 = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/rand_core/0.6.3/download"], + strip_prefix = "rand_core-0.6.3", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.rand_core-0.6.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__regex-1.4.6", + sha256 = "2a26af418b574bd56588335b3a3659a65725d4e636eb1016c2f9e3b38c7cc759", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/regex/1.4.6/download"], + strip_prefix = "regex-1.4.6", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.regex-1.4.6.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__regex-syntax-0.6.27", + sha256 = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/regex-syntax/0.6.27/download"], + strip_prefix = "regex-syntax-0.6.27", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.regex-syntax-0.6.27.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__syn-1.0.82", + sha256 = "8daf5dd0bb60cbd4137b1b587d2fc0ae729bc07cf01cd70b36a1ed5ade3b9d59", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/syn/1.0.82/download"], + strip_prefix = "syn-1.0.82", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.syn-1.0.82.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__unicode-xid-0.2.3", + sha256 = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unicode-xid/0.2.3/download"], + strip_prefix = "unicode-xid-0.2.3", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.unicode-xid-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_util_import__wasi-0.11.0-wasi-snapshot-preview1", + sha256 = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/wasi/0.11.0+wasi-snapshot-preview1/download"], + strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", + build_file = Label("@rules_rust//util/import/3rdparty/crates:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), + ) diff --git a/util/import/BUILD.bazel b/util/import/BUILD.bazel index 01a05dfa2e..d2290bc773 100644 --- a/util/import/BUILD.bazel +++ b/util/import/BUILD.bazel @@ -18,7 +18,7 @@ rust_proc_macro( edition = "2018", deps = [ ":import_internal", - "//util/import/raze:syn", + "//util/import/3rdparty/crates:syn", ], ) @@ -29,11 +29,11 @@ rust_library( ], edition = "2018", deps = [ - "//util/import/raze:aho_corasick", - "//util/import/raze:lazy_static", - "//util/import/raze:proc_macro2", - "//util/import/raze:quote", - "//util/import/raze:syn", + "//util/import/3rdparty/crates:aho-corasick", + "//util/import/3rdparty/crates:lazy_static", + "//util/import/3rdparty/crates:proc-macro2", + "//util/import/3rdparty/crates:quote", + "//util/import/3rdparty/crates:syn", "//util/label", ], ) @@ -43,7 +43,7 @@ rust_test( crate = ":import_internal", edition = "2018", deps = [ - "//util/import/raze:quickcheck", + "//util/import/3rdparty/crates:quickcheck", ], ) @@ -83,8 +83,7 @@ filegroup( "**/*.rs", "**/*.cc", ]) + [ - "//util/import/raze:srcs", - "//util/import/raze/remote:srcs", + "//util/import/3rdparty:distro", "BUILD.bazel", ], visibility = ["//:__subpackages__"], diff --git a/util/import/deps.bzl b/util/import/deps.bzl index be49b067b2..ffce2b3a23 100644 --- a/util/import/deps.bzl +++ b/util/import/deps.bzl @@ -2,10 +2,10 @@ The dependencies for running the gen_rust_project binary. """ -load("//util/import/raze:crates.bzl", "rules_rust_util_import_fetch_remote_crates") +load("//util/import/3rdparty/crates:defs.bzl", "crate_repositories") def import_deps(): - rules_rust_util_import_fetch_remote_crates() + crate_repositories() # For legacy support gen_rust_project_dependencies = import_deps diff --git a/util/import/raze/BUILD.bazel b/util/import/raze/BUILD.bazel deleted file mode 100644 index 3b20a15639..0000000000 --- a/util/import/raze/BUILD.bazel +++ /dev/null @@ -1,85 +0,0 @@ -""" -@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 = "aho_corasick", - actual = "@rules_rust_util_import__aho_corasick__0_7_15//:aho_corasick", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "lazy_static", - actual = "@rules_rust_util_import__lazy_static__1_4_0//:lazy_static", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "proc_macro2", - actual = "@rules_rust_util_import__proc_macro2__1_0_33//:proc_macro2", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "quickcheck", - actual = "@rules_rust_util_import__quickcheck__1_0_3//:quickcheck", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "quote", - actual = "@rules_rust_util_import__quote__1_0_10//:quote", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "syn", - actual = "@rules_rust_util_import__syn__1_0_82//:syn", - tags = [ - "cargo-raze", - "manual", - ], -) - -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/util/import/raze/Cargo.toml b/util/import/raze/Cargo.toml deleted file mode 100644 index b942944bbb..0000000000 --- a/util/import/raze/Cargo.toml +++ /dev/null @@ -1,25 +0,0 @@ -[package] -name = "compile_with_bazel" -version = "0.0.0" - -# Mandatory (or Cargo tooling is unhappy) -[lib] -path = "fake_lib.rs" - -[dependencies] -aho-corasick = "=0.7.15" -lazy_static = "=1.4.0" -proc-macro2 = "=1.0.33" -quote = "=1.0.10" -syn = "=1.0.82" - -[dev-dependencies] -quickcheck = "=1.0.3" - -[package.metadata.raze] -genmode = "Remote" -workspace_path = "//util/import/raze" -gen_workspace_prefix = "rules_rust_util_import" -rust_rules_workspace_name = "rules_rust" -package_aliases_dir = "." -default_gen_buildrs = true \ No newline at end of file diff --git a/util/import/raze/crates.bzl b/util/import/raze/crates.bzl deleted file mode 100644 index 7da9f98f6d..0000000000 --- a/util/import/raze/crates.bzl +++ /dev/null @@ -1,192 +0,0 @@ -""" -@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 rules_rust_util_import_fetch_remote_crates(): - """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "rules_rust_util_import__aho_corasick__0_7_15", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", - type = "tar.gz", - sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", - strip_prefix = "aho-corasick-0.7.15", - build_file = Label("//util/import/raze/remote:BUILD.aho-corasick-0.7.15.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__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("//util/import/raze/remote:BUILD.cfg-if-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__env_logger__0_8_4", - url = "https://crates.io/api/v1/crates/env_logger/0.8.4/download", - type = "tar.gz", - sha256 = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3", - strip_prefix = "env_logger-0.8.4", - build_file = Label("//util/import/raze/remote:BUILD.env_logger-0.8.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__getrandom__0_2_3", - url = "https://crates.io/api/v1/crates/getrandom/0.2.3/download", - type = "tar.gz", - sha256 = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753", - strip_prefix = "getrandom-0.2.3", - build_file = Label("//util/import/raze/remote:BUILD.getrandom-0.2.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__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("//util/import/raze/remote:BUILD.lazy_static-1.4.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__libc__0_2_112", - url = "https://crates.io/api/v1/crates/libc/0.2.112/download", - type = "tar.gz", - sha256 = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125", - strip_prefix = "libc-0.2.112", - build_file = Label("//util/import/raze/remote:BUILD.libc-0.2.112.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__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("//util/import/raze/remote:BUILD.log-0.4.14.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__memchr__2_4_1", - url = "https://crates.io/api/v1/crates/memchr/2.4.1/download", - type = "tar.gz", - sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a", - strip_prefix = "memchr-2.4.1", - build_file = Label("//util/import/raze/remote:BUILD.memchr-2.4.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__proc_macro2__1_0_33", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.33/download", - type = "tar.gz", - sha256 = "fb37d2df5df740e582f28f8560cf425f52bb267d872fe58358eadb554909f07a", - strip_prefix = "proc-macro2-1.0.33", - build_file = Label("//util/import/raze/remote:BUILD.proc-macro2-1.0.33.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__quickcheck__1_0_3", - url = "https://crates.io/api/v1/crates/quickcheck/1.0.3/download", - type = "tar.gz", - sha256 = "588f6378e4dd99458b60ec275b4477add41ce4fa9f64dcba6f15adccb19b50d6", - strip_prefix = "quickcheck-1.0.3", - build_file = Label("//util/import/raze/remote:BUILD.quickcheck-1.0.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__quote__1_0_10", - url = "https://crates.io/api/v1/crates/quote/1.0.10/download", - type = "tar.gz", - sha256 = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05", - strip_prefix = "quote-1.0.10", - build_file = Label("//util/import/raze/remote:BUILD.quote-1.0.10.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__rand__0_8_4", - url = "https://crates.io/api/v1/crates/rand/0.8.4/download", - type = "tar.gz", - sha256 = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8", - strip_prefix = "rand-0.8.4", - build_file = Label("//util/import/raze/remote:BUILD.rand-0.8.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__rand_core__0_6_3", - url = "https://crates.io/api/v1/crates/rand_core/0.6.3/download", - type = "tar.gz", - sha256 = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7", - strip_prefix = "rand_core-0.6.3", - build_file = Label("//util/import/raze/remote:BUILD.rand_core-0.6.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__regex__1_4_6", - url = "https://crates.io/api/v1/crates/regex/1.4.6/download", - type = "tar.gz", - sha256 = "2a26af418b574bd56588335b3a3659a65725d4e636eb1016c2f9e3b38c7cc759", - strip_prefix = "regex-1.4.6", - build_file = Label("//util/import/raze/remote:BUILD.regex-1.4.6.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__regex_syntax__0_6_25", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download", - type = "tar.gz", - sha256 = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b", - strip_prefix = "regex-syntax-0.6.25", - build_file = Label("//util/import/raze/remote:BUILD.regex-syntax-0.6.25.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__syn__1_0_82", - url = "https://crates.io/api/v1/crates/syn/1.0.82/download", - type = "tar.gz", - sha256 = "8daf5dd0bb60cbd4137b1b587d2fc0ae729bc07cf01cd70b36a1ed5ade3b9d59", - strip_prefix = "syn-1.0.82", - build_file = Label("//util/import/raze/remote:BUILD.syn-1.0.82.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__unicode_xid__0_2_2", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", - type = "tar.gz", - sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", - strip_prefix = "unicode-xid-0.2.2", - build_file = Label("//util/import/raze/remote:BUILD.unicode-xid-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_util_import__wasi__0_10_2_wasi_snapshot_preview1", - url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", - type = "tar.gz", - sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", - strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", - build_file = Label("//util/import/raze/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), - ) diff --git a/util/import/raze/remote/BUILD.aho-corasick-0.7.15.bazel b/util/import/raze/remote/BUILD.aho-corasick-0.7.15.bazel deleted file mode 100644 index 4fc8c0dcc3..0000000000 --- a/util/import/raze/remote/BUILD.aho-corasick-0.7.15.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//util/import/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "aho_corasick", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=aho_corasick", - "manual", - ], - version = "0.7.15", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__memchr__2_4_1//:memchr", - ], -) diff --git a/util/import/raze/remote/BUILD.bazel b/util/import/raze/remote/BUILD.bazel deleted file mode 100644 index b49fb68667..0000000000 --- a/util/import/raze/remote/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/util/import/raze/remote/BUILD.cfg-if-1.0.0.bazel b/util/import/raze/remote/BUILD.cfg-if-1.0.0.bazel deleted file mode 100644 index 1a5adcfc20..0000000000 --- a/util/import/raze/remote/BUILD.cfg-if-1.0.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//util/import/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", - "crate-name=cfg-if", - "manual", - ], - version = "1.0.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.env_logger-0.8.4.bazel b/util/import/raze/remote/BUILD.env_logger-0.8.4.bazel deleted file mode 100644 index a04b02c24e..0000000000 --- a/util/import/raze/remote/BUILD.env_logger-0.8.4.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@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 "//util/import/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 = "env_logger", - srcs = glob(["**/*.rs"]), - crate_features = [ - "regex", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=env_logger", - "manual", - ], - version = "0.8.4", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__log__0_4_14//:log", - "@rules_rust_util_import__regex__1_4_6//:regex", - ], -) - -# Unsupported target "init-twice-retains-filter" with type "test" omitted - -# Unsupported target "log-in-log" with type "test" omitted - -# Unsupported target "log_tls_dtors" with type "test" omitted - -# Unsupported target "regexp_filter" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.getrandom-0.2.3.bazel b/util/import/raze/remote/BUILD.getrandom-0.2.3.bazel deleted file mode 100644 index 83337579ba..0000000000 --- a/util/import/raze/remote/BUILD.getrandom-0.2.3.bazel +++ /dev/null @@ -1,96 +0,0 @@ -""" -@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 "//util/import/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 "mod" with type "bench" omitted - -rust_library( - name = "getrandom", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=getrandom", - "manual", - ], - version = "0.2.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__cfg_if__1_0_0//:cfg_if", - ] + selects.with_or({ - # cfg(target_os = "wasi") - ( - "@rules_rust//rust/platform:wasm32-wasi", - ): [ - "@rules_rust_util_import__wasi__0_10_2_wasi_snapshot_preview1//:wasi", - ], - "//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", - ): [ - "@rules_rust_util_import__libc__0_2_112//:libc", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "custom" with type "test" omitted - -# Unsupported target "normal" with type "test" omitted - -# Unsupported target "rdrand" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.lazy_static-1.4.0.bazel b/util/import/raze/remote/BUILD.lazy_static-1.4.0.bazel deleted file mode 100644 index 5542226b1a..0000000000 --- a/util/import/raze/remote/BUILD.lazy_static-1.4.0.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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 "//util/import/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", - "crate-name=lazy_static", - "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/util/import/raze/remote/BUILD.libc-0.2.112.bazel b/util/import/raze/remote/BUILD.libc-0.2.112.bazel deleted file mode 100644 index 2d8a3fe3f2..0000000000 --- a/util/import/raze/remote/BUILD.libc-0.2.112.bazel +++ /dev/null @@ -1,86 +0,0 @@ -""" -@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 "//util/import/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 = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.112", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "libc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=libc", - "manual", - ], - version = "0.2.112", - # buildifier: leave-alone - deps = [ - ":libc_build_script", - ], -) - -# Unsupported target "const_fn" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.log-0.4.14.bazel b/util/import/raze/remote/BUILD.log-0.4.14.bazel deleted file mode 100644 index 02efe53eea..0000000000 --- a/util/import/raze/remote/BUILD.log-0.4.14.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@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 "//util/import/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 = [ - "std", - ], - 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 = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=log", - "manual", - ], - version = "0.4.14", - # buildifier: leave-alone - deps = [ - ":log_build_script", - "@rules_rust_util_import__cfg_if__1_0_0//:cfg_if", - ], -) - -# Unsupported target "filters" with type "test" omitted - -# Unsupported target "macros" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.memchr-2.4.1.bazel b/util/import/raze/remote/BUILD.memchr-2.4.1.bazel deleted file mode 100644 index c8e37c37f0..0000000000 --- a/util/import/raze/remote/BUILD.memchr-2.4.1.bazel +++ /dev/null @@ -1,90 +0,0 @@ -""" -@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 "//util/import/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR 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 = "memchr_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - "use_std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.4.1", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "memchr", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - "use_std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=memchr", - "manual", - ], - version = "2.4.1", - # buildifier: leave-alone - deps = [ - ":memchr_build_script", - ], -) diff --git a/util/import/raze/remote/BUILD.proc-macro2-1.0.33.bazel b/util/import/raze/remote/BUILD.proc-macro2-1.0.33.bazel deleted file mode 100644 index 0e479f265e..0000000000 --- a/util/import/raze/remote/BUILD.proc-macro2-1.0.33.bazel +++ /dev/null @@ -1,99 +0,0 @@ -""" -@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 "//util/import/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 = "proc_macro2_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.33", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "proc_macro2", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=proc-macro2", - "manual", - ], - version = "1.0.33", - # buildifier: leave-alone - deps = [ - ":proc_macro2_build_script", - "@rules_rust_util_import__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "comments" with type "test" omitted - -# Unsupported target "features" with type "test" omitted - -# Unsupported target "marker" with type "test" omitted - -# Unsupported target "test" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.quickcheck-1.0.3.bazel b/util/import/raze/remote/BUILD.quickcheck-1.0.3.bazel deleted file mode 100644 index a9db2b4721..0000000000 --- a/util/import/raze/remote/BUILD.quickcheck-1.0.3.bazel +++ /dev/null @@ -1,74 +0,0 @@ -""" -@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 "//util/import/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -# Unsupported target "btree_set_range" with type "example" omitted - -# Unsupported target "out_of_bounds" with type "example" omitted - -# Unsupported target "reverse" with type "example" omitted - -# Unsupported target "reverse_single" with type "example" omitted - -# Unsupported target "sieve" with type "example" omitted - -# Unsupported target "sort" with type "example" omitted - -rust_library( - name = "quickcheck", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "env_logger", - "log", - "regex", - "use_logging", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=quickcheck", - "manual", - ], - version = "1.0.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__env_logger__0_8_4//:env_logger", - "@rules_rust_util_import__log__0_4_14//:log", - "@rules_rust_util_import__rand__0_8_4//:rand", - ], -) diff --git a/util/import/raze/remote/BUILD.quote-1.0.10.bazel b/util/import/raze/remote/BUILD.quote-1.0.10.bazel deleted file mode 100644 index 040d8cbc9a..0000000000 --- a/util/import/raze/remote/BUILD.quote-1.0.10.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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 "//util/import/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 = "quote", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=quote", - "manual", - ], - version = "1.0.10", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__proc_macro2__1_0_33//:proc_macro2", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.rand-0.8.4.bazel b/util/import/raze/remote/BUILD.rand-0.8.4.bazel deleted file mode 100644 index ebbb9e3724..0000000000 --- a/util/import/raze/remote/BUILD.rand-0.8.4.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@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 "//util/import/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 = "rand", - srcs = glob(["**/*.rs"]), - crate_features = [ - "getrandom", - "small_rng", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rand", - "manual", - ], - version = "0.8.4", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__rand_core__0_6_3//:rand_core", - ], -) diff --git a/util/import/raze/remote/BUILD.rand_core-0.6.3.bazel b/util/import/raze/remote/BUILD.rand_core-0.6.3.bazel deleted file mode 100644 index 1cc93d3d1c..0000000000 --- a/util/import/raze/remote/BUILD.rand_core-0.6.3.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//util/import/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 = "rand_core", - srcs = glob(["**/*.rs"]), - crate_features = [ - "getrandom", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rand_core", - "manual", - ], - version = "0.6.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__getrandom__0_2_3//:getrandom", - ], -) diff --git a/util/import/raze/remote/BUILD.regex-1.4.6.bazel b/util/import/raze/remote/BUILD.regex-1.4.6.bazel deleted file mode 100644 index 0957c94112..0000000000 --- a/util/import/raze/remote/BUILD.regex-1.4.6.bazel +++ /dev/null @@ -1,95 +0,0 @@ -""" -@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 "//util/import/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 "shootout-regex-dna" with type "example" omitted - -# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted - -# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted - -# Unsupported target "shootout-regex-dna-replace" with type "example" omitted - -# Unsupported target "shootout-regex-dna-single" with type "example" omitted - -# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted - -rust_library( - name = "regex", - srcs = glob(["**/*.rs"]), - crate_features = [ - "aho-corasick", - "memchr", - "perf", - "perf-cache", - "perf-dfa", - "perf-inline", - "perf-literal", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=regex", - "manual", - ], - version = "1.4.6", - # buildifier: leave-alone - deps = [ - "@rules_rust_util_import__aho_corasick__0_7_15//:aho_corasick", - "@rules_rust_util_import__memchr__2_4_1//:memchr", - "@rules_rust_util_import__regex_syntax__0_6_25//:regex_syntax", - ], -) - -# Unsupported target "backtrack" with type "test" omitted - -# Unsupported target "backtrack-bytes" with type "test" omitted - -# Unsupported target "backtrack-utf8bytes" with type "test" omitted - -# Unsupported target "crates-regex" with type "test" omitted - -# Unsupported target "default" with type "test" omitted - -# Unsupported target "default-bytes" with type "test" omitted - -# Unsupported target "nfa" with type "test" omitted - -# Unsupported target "nfa-bytes" with type "test" omitted - -# Unsupported target "nfa-utf8bytes" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.regex-syntax-0.6.25.bazel b/util/import/raze/remote/BUILD.regex-syntax-0.6.25.bazel deleted file mode 100644 index 71324e7ea4..0000000000 --- a/util/import/raze/remote/BUILD.regex-syntax-0.6.25.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//util/import/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 = "regex_syntax", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=regex-syntax", - "manual", - ], - version = "0.6.25", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/util/import/raze/remote/BUILD.syn-1.0.82.bazel b/util/import/raze/remote/BUILD.syn-1.0.82.bazel deleted file mode 100644 index 8031e00c6b..0000000000 --- a/util/import/raze/remote/BUILD.syn-1.0.82.bazel +++ /dev/null @@ -1,157 +0,0 @@ -""" -@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 "//util/import/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 = "syn_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "clone-impls", - "default", - "derive", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.82", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "file" with type "bench" omitted - -# Unsupported target "rust" with type "bench" omitted - -rust_library( - name = "syn", - srcs = glob(["**/*.rs"]), - crate_features = [ - "clone-impls", - "default", - "derive", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=syn", - "manual", - ], - version = "1.0.82", - # buildifier: leave-alone - deps = [ - ":syn_build_script", - "@rules_rust_util_import__proc_macro2__1_0_33//:proc_macro2", - "@rules_rust_util_import__quote__1_0_10//:quote", - "@rules_rust_util_import__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "test_asyncness" with type "test" omitted - -# Unsupported target "test_attribute" with type "test" omitted - -# Unsupported target "test_derive_input" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_grouping" with type "test" omitted - -# Unsupported target "test_ident" with type "test" omitted - -# Unsupported target "test_item" with type "test" omitted - -# Unsupported target "test_iterators" with type "test" omitted - -# Unsupported target "test_lit" with type "test" omitted - -# Unsupported target "test_meta" with type "test" omitted - -# Unsupported target "test_parse_buffer" with type "test" omitted - -# Unsupported target "test_parse_stream" with type "test" omitted - -# Unsupported target "test_pat" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_precedence" with type "test" omitted - -# Unsupported target "test_receiver" with type "test" omitted - -# Unsupported target "test_round_trip" with type "test" omitted - -# Unsupported target "test_shebang" with type "test" omitted - -# Unsupported target "test_should_parse" with type "test" omitted - -# Unsupported target "test_size" with type "test" omitted - -# Unsupported target "test_stmt" with type "test" omitted - -# Unsupported target "test_token_trees" with type "test" omitted - -# Unsupported target "test_ty" with type "test" omitted - -# Unsupported target "test_visibility" with type "test" omitted - -# Unsupported target "zzz_stable" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.unicode-xid-0.2.2.bazel b/util/import/raze/remote/BUILD.unicode-xid-0.2.2.bazel deleted file mode 100644 index a62237c028..0000000000 --- a/util/import/raze/remote/BUILD.unicode-xid-0.2.2.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@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 "//util/import/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 "xid" with type "bench" omitted - -rust_library( - name = "unicode_xid", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-xid", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/util/import/raze/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/util/import/raze/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel deleted file mode 100644 index f4229fe662..0000000000 --- a/util/import/raze/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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 "//util/import/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets - -rust_library( - name = "wasi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasi", - "manual", - ], - version = "0.10.2+wasi-snapshot-preview1", - # buildifier: leave-alone - deps = [ - ], -) From 43b42884a785b37cf72c5768727164acfc84c0de Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Tue, 2 Aug 2022 06:21:44 -0700 Subject: [PATCH 06/26] Updated examples to use crate_universe (#1494) * Updated examples to use crate_universe * Regenerated dependencies --- examples/WORKSPACE.bazel | 4 + examples/sys/basic/3rdparty/BUILD.bazel | 20 + .../{Cargo.lock => 3rdparty/Cargo.Bazel.lock} | 32 +- .../sys/basic/3rdparty/crates/BUILD.bazel | 41 ++ .../3rdparty/crates/BUILD.bzip2-0.3.3.bazel | 92 +++ .../crates/BUILD.bzip2-sys-0.1.11+1.0.8.bazel | 178 ++++++ .../3rdparty/crates/BUILD.cc-1.0.73.bazel | 157 +++++ .../3rdparty/crates/BUILD.libc-0.2.126.bazel | 92 +++ .../crates/BUILD.pkg-config-0.3.25.bazel | 90 +++ examples/sys/basic/3rdparty/crates/crates.bzl | 25 + examples/sys/basic/3rdparty/crates/defs.bzl | 411 +++++++++++++ examples/sys/basic/BUILD.bazel | 2 +- examples/sys/basic/Cargo.toml | 21 - examples/sys/basic/raze/BUILD.bazel | 40 -- examples/sys/basic/raze/crates.bzl | 62 -- examples/sys/basic/raze/remote/BUILD.bazel | 17 - .../basic/raze/remote/BUILD.bzip2-0.3.3.bazel | 58 -- .../remote/BUILD.bzip2-sys-0.1.9+1.0.8.bazel | 88 --- .../basic/raze/remote/BUILD.cc-1.0.60.bazel | 87 --- .../basic/raze/remote/BUILD.libc-0.2.77.bazel | 60 -- .../raze/remote/BUILD.pkg-config-0.3.18.bazel | 56 -- examples/sys/complex/3rdparty/BUILD.bazel | 28 + .../{Cargo.lock => 3rdparty/Cargo.Bazel.lock} | 141 +---- .../sys/complex/3rdparty/crates/BUILD.bazel | 41 ++ .../crates/BUILD.bitflags-1.3.2.bazel | 91 +++ .../3rdparty/crates/BUILD.cc-1.0.73.bazel | 163 +++++ .../3rdparty/crates/BUILD.cfg-if-1.0.0.bazel | 90 +++ .../crates/BUILD.form_urlencoded-1.0.1.bazel | 92 +++ .../3rdparty/crates/BUILD.git2-0.14.4.bazel | 95 +++ .../3rdparty/crates/BUILD.idna-0.2.3.bazel | 93 +++ .../crates/BUILD.jobserver-0.1.24.bazel | 117 ++++ .../3rdparty/crates/BUILD.libc-0.2.126.bazel | 178 ++++++ .../BUILD.libgit2-sys-0.13.4+1.4.2.bazel | 93 +++ .../crates/BUILD.libz-sys-1.1.8.bazel | 93 +++ .../3rdparty/crates/BUILD.log-0.4.17.bazel | 175 ++++++ .../3rdparty/crates/BUILD.matches-0.1.9.bazel | 90 +++ .../crates/BUILD.percent-encoding-2.1.0.bazel | 90 +++ .../crates/BUILD.pkg-config-0.3.25.bazel | 90 +++ .../3rdparty/crates/BUILD.tinyvec-1.6.0.bazel | 94 +++ .../crates/BUILD.tinyvec_macros-0.1.0.bazel | 90 +++ .../crates/BUILD.unicode-bidi-0.3.8.bazel | 93 +++ .../BUILD.unicode-normalization-0.1.21.bazel | 93 +++ .../3rdparty/crates/BUILD.url-2.2.2.bazel | 94 +++ .../3rdparty/crates/BUILD.vcpkg-0.2.15.bazel | 90 +++ .../sys/complex/3rdparty/crates/crates.bzl | 25 + examples/sys/complex/3rdparty/crates/defs.bzl | 562 ++++++++++++++++++ examples/sys/complex/BUILD.bazel | 4 +- examples/sys/complex/Cargo.toml | 35 -- examples/sys/complex/raze/BUILD.bazel | 58 -- examples/sys/complex/raze/crates.bzl | 292 --------- .../raze/remote/BUILD.autocfg-1.0.1.bazel | 64 -- examples/sys/complex/raze/remote/BUILD.bazel | 17 - .../raze/remote/BUILD.bitflags-1.2.1.bazel | 86 --- .../complex/raze/remote/BUILD.cc-1.0.69.bazel | 93 --- .../raze/remote/BUILD.cfg-if-1.0.0.bazel | 56 -- .../remote/BUILD.foreign-types-0.3.2.bazel | 55 -- .../BUILD.foreign-types-shared-0.1.1.bazel | 54 -- .../remote/BUILD.form_urlencoded-1.0.1.bazel | 56 -- .../raze/remote/BUILD.git2-0.13.12.bazel | 116 ---- .../raze/remote/BUILD.idna-0.2.3.bazel | 63 -- .../raze/remote/BUILD.jobserver-0.1.23.bazel | 89 --- .../raze/remote/BUILD.lazy_static-1.4.0.bazel | 58 -- .../raze/remote/BUILD.libc-0.2.98.bazel | 90 --- .../BUILD.libgit2-sys-0.12.21+1.1.0.bazel | 150 ----- .../remote/BUILD.libssh2-sys-0.2.21.bazel | 157 ----- .../raze/remote/BUILD.libz-sys-1.1.3.bazel | 109 ---- .../raze/remote/BUILD.log-0.4.14.bazel | 91 --- .../raze/remote/BUILD.matches-0.1.8.bazel | 56 -- .../raze/remote/BUILD.openssl-0.10.32.bazel | 93 --- .../remote/BUILD.openssl-probe-0.1.4.bazel | 54 -- .../remote/BUILD.openssl-sys-0.9.60.bazel | 114 ---- .../remote/BUILD.percent-encoding-2.1.0.bazel | 54 -- .../raze/remote/BUILD.pkg-config-0.3.19.bazel | 56 -- .../raze/remote/BUILD.tinyvec-1.3.1.bazel | 64 -- .../remote/BUILD.tinyvec_macros-0.1.0.bazel | 54 -- .../remote/BUILD.unicode-bidi-0.3.5.bazel | 56 -- .../BUILD.unicode-normalization-0.1.19.bazel | 59 -- .../complex/raze/remote/BUILD.url-2.2.2.bazel | 64 -- .../raze/remote/BUILD.vcpkg-0.2.15.bazel | 54 -- examples/sys/complex/repositories.bzl | 10 - examples/sys/sys_deps.bzl | 20 +- 81 files changed, 3933 insertions(+), 3202 deletions(-) create mode 100644 examples/sys/basic/3rdparty/BUILD.bazel rename examples/sys/basic/{Cargo.lock => 3rdparty/Cargo.Bazel.lock} (64%) create mode 100644 examples/sys/basic/3rdparty/crates/BUILD.bazel create mode 100644 examples/sys/basic/3rdparty/crates/BUILD.bzip2-0.3.3.bazel create mode 100644 examples/sys/basic/3rdparty/crates/BUILD.bzip2-sys-0.1.11+1.0.8.bazel create mode 100644 examples/sys/basic/3rdparty/crates/BUILD.cc-1.0.73.bazel create mode 100644 examples/sys/basic/3rdparty/crates/BUILD.libc-0.2.126.bazel create mode 100644 examples/sys/basic/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel create mode 100644 examples/sys/basic/3rdparty/crates/crates.bzl create mode 100644 examples/sys/basic/3rdparty/crates/defs.bzl delete mode 100644 examples/sys/basic/Cargo.toml delete mode 100644 examples/sys/basic/raze/BUILD.bazel delete mode 100644 examples/sys/basic/raze/crates.bzl delete mode 100644 examples/sys/basic/raze/remote/BUILD.bazel delete mode 100644 examples/sys/basic/raze/remote/BUILD.bzip2-0.3.3.bazel delete mode 100644 examples/sys/basic/raze/remote/BUILD.bzip2-sys-0.1.9+1.0.8.bazel delete mode 100644 examples/sys/basic/raze/remote/BUILD.cc-1.0.60.bazel delete mode 100644 examples/sys/basic/raze/remote/BUILD.libc-0.2.77.bazel delete mode 100644 examples/sys/basic/raze/remote/BUILD.pkg-config-0.3.18.bazel create mode 100644 examples/sys/complex/3rdparty/BUILD.bazel rename examples/sys/complex/{Cargo.lock => 3rdparty/Cargo.Bazel.lock} (50%) create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.bitflags-1.3.2.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.cc-1.0.73.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.git2-0.14.4.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.idna-0.2.3.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.jobserver-0.1.24.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.libc-0.2.126.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.libgit2-sys-0.13.4+1.4.2.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.log-0.4.17.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.matches-0.1.9.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.url-2.2.2.bazel create mode 100644 examples/sys/complex/3rdparty/crates/BUILD.vcpkg-0.2.15.bazel create mode 100644 examples/sys/complex/3rdparty/crates/crates.bzl create mode 100644 examples/sys/complex/3rdparty/crates/defs.bzl delete mode 100644 examples/sys/complex/Cargo.toml delete mode 100644 examples/sys/complex/raze/BUILD.bazel delete mode 100644 examples/sys/complex/raze/crates.bzl delete mode 100644 examples/sys/complex/raze/remote/BUILD.autocfg-1.0.1.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.bitflags-1.2.1.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.cc-1.0.69.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.cfg-if-1.0.0.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.foreign-types-0.3.2.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.foreign-types-shared-0.1.1.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.form_urlencoded-1.0.1.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.git2-0.13.12.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.idna-0.2.3.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.jobserver-0.1.23.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.lazy_static-1.4.0.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.libc-0.2.98.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.libgit2-sys-0.12.21+1.1.0.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.libssh2-sys-0.2.21.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.libz-sys-1.1.3.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.log-0.4.14.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.matches-0.1.8.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.openssl-0.10.32.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.openssl-probe-0.1.4.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.openssl-sys-0.9.60.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.percent-encoding-2.1.0.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.pkg-config-0.3.19.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.tinyvec-1.3.1.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.tinyvec_macros-0.1.0.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.unicode-bidi-0.3.5.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.unicode-normalization-0.1.19.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.url-2.2.2.bazel delete mode 100644 examples/sys/complex/raze/remote/BUILD.vcpkg-0.2.15.bazel delete mode 100644 examples/sys/complex/repositories.bzl diff --git a/examples/WORKSPACE.bazel b/examples/WORKSPACE.bazel index ad29a83a2f..a9ca0808c1 100644 --- a/examples/WORKSPACE.bazel +++ b/examples/WORKSPACE.bazel @@ -16,6 +16,10 @@ rust_register_toolchains( edition = "2018", ) +load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") + +crate_universe_dependencies(bootstrap = True) + load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") rust_analyzer_dependencies() diff --git a/examples/sys/basic/3rdparty/BUILD.bazel b/examples/sys/basic/3rdparty/BUILD.bazel new file mode 100644 index 0000000000..851675513b --- /dev/null +++ b/examples/sys/basic/3rdparty/BUILD.bazel @@ -0,0 +1,20 @@ +load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor") + +crates_vendor( + name = "crates_vendor", + annotations = { + "bzip2-sys": [crate.annotation( + gen_build_script = True, + )], + }, + cargo_lockfile = "Cargo.Bazel.lock", + generate_build_scripts = False, + mode = "remote", + packages = { + "bzip2": crate.spec( + version = "=0.3.3", + ), + }, + repository_name = "basic_sys", + tags = ["manual"], +) diff --git a/examples/sys/basic/Cargo.lock b/examples/sys/basic/3rdparty/Cargo.Bazel.lock similarity index 64% rename from examples/sys/basic/Cargo.lock rename to examples/sys/basic/3rdparty/Cargo.Bazel.lock index 7a14e37889..39f301a51e 100644 --- a/examples/sys/basic/Cargo.lock +++ b/examples/sys/basic/3rdparty/Cargo.Bazel.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "bzip2" version = "0.3.3" @@ -12,9 +14,9 @@ dependencies = [ [[package]] name = "bzip2-sys" -version = "0.1.9+1.0.8" +version = "0.1.11+1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad3b39a260062fca31f7b0b12f207e8f2590a67d32ec7d59c20484b07ea7285e" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" dependencies = [ "cc", "libc", @@ -23,25 +25,25 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.60" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" + +[[package]] +name = "direct-cargo-bazel-deps" +version = "0.0.1" +dependencies = [ + "bzip2", +] [[package]] name = "libc" -version = "0.2.77" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "pkg-config" -version = "0.3.18" +version = "0.3.25" 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", -] +checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" diff --git a/examples/sys/basic/3rdparty/crates/BUILD.bazel b/examples/sys/basic/3rdparty/crates/BUILD.bazel new file mode 100644 index 0000000000..f78524b715 --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/BUILD.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### + +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 = "bzip2", + actual = "@basic_sys__bzip2-0.3.3//:bzip2", + tags = ["manual"], +) + +# Binaries +alias( + name = "cc__gcc-shim", + actual = "@basic_sys__cc-1.0.73//:gcc-shim__bin", + tags = ["manual"], +) diff --git a/examples/sys/basic/3rdparty/crates/BUILD.bzip2-0.3.3.bazel b/examples/sys/basic/3rdparty/crates/BUILD.bzip2-0.3.3.bazel new file mode 100644 index 0000000000..e790651051 --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/BUILD.bzip2-0.3.3.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### + +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 = "bzip2", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@basic_sys__bzip2-sys-0.1.11-1.0.8//:bzip2_sys", + "@basic_sys__libc-0.2.126//:libc", + ], + }), +) diff --git a/examples/sys/basic/3rdparty/crates/BUILD.bzip2-sys-0.1.11+1.0.8.bazel b/examples/sys/basic/3rdparty/crates/BUILD.bzip2-sys-0.1.11+1.0.8.bazel new file mode 100644 index 0000000000..34b0c06d1e --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/BUILD.bzip2-sys-0.1.11+1.0.8.bazel @@ -0,0 +1,178 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### + +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 = "bzip2_sys", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.11+1.0.8", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@basic_sys__bzip2-sys-0.1.11-1.0.8//:build_script_build", + "@basic_sys__libc-0.2.126//:libc", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "bzip2-sys_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", + links = "bzip2", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.1.11+1.0.8", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@basic_sys__cc-1.0.73//:cc", + "@basic_sys__pkg-config-0.3.25//:pkg_config", + ], + }), +) + +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 = "bzip2-sys_build_script", + tags = [ + "manual", + ], +) diff --git a/examples/sys/basic/3rdparty/crates/BUILD.cc-1.0.73.bazel b/examples/sys/basic/3rdparty/crates/BUILD.cc-1.0.73.bazel new file mode 100644 index 0000000000..94dad1f130 --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/BUILD.cc-1.0.73.bazel @@ -0,0 +1,157 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "cc", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.73", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +rust_binary( + name = "gcc-shim__bin", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/bin/gcc-shim.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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.73", + deps = [ + ":cc", + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/basic/3rdparty/crates/BUILD.libc-0.2.126.bazel b/examples/sys/basic/3rdparty/crates/BUILD.libc-0.2.126.bazel new file mode 100644 index 0000000000..84344d1068 --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/BUILD.libc-0.2.126.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### + +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 = "libc", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.126", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/basic/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel b/examples/sys/basic/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel new file mode 100644 index 0000000000..cb28873596 --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### + +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 = "pkg_config", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.25", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/basic/3rdparty/crates/crates.bzl b/examples/sys/basic/3rdparty/crates/crates.bzl new file mode 100644 index 0000000000..ba569c77d0 --- /dev/null +++ b/examples/sys/basic/3rdparty/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//sys/basic/3rdparty/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 = "basic_sys", + build_file = Label("@examples//sys/basic/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@examples//sys/basic/3rdparty/crates:defs.bzl"), + ) + + _crate_repositories() diff --git a/examples/sys/basic/3rdparty/crates/defs.bzl b/examples/sys/basic/3rdparty/crates/defs.bzl new file mode 100644 index 0000000000..3f110a1e29 --- /dev/null +++ b/examples/sys/basic/3rdparty/crates/defs.bzl @@ -0,0 +1,411 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/basic/3rdparty:crates_vendor +############################################################################### +""" +# `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: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + 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: { + "bzip2": "@basic_sys__bzip2-0.3.3//:bzip2", + }, + }, +} + +_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 = { +} + +############################################################################### + +def crate_repositories(): + """A macro for defining repositories for all generated crates""" + maybe( + http_archive, + name = "basic_sys__bzip2-0.3.3", + sha256 = "42b7c3cbf0fa9c1b82308d57191728ca0256cb821220f4e2fd410a72ade26e3b", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/bzip2/0.3.3/download"], + strip_prefix = "bzip2-0.3.3", + build_file = Label("@examples//sys/basic/3rdparty/crates:BUILD.bzip2-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "basic_sys__bzip2-sys-0.1.11-1.0.8", + sha256 = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/bzip2-sys/0.1.11+1.0.8/download"], + strip_prefix = "bzip2-sys-0.1.11+1.0.8", + build_file = Label("@examples//sys/basic/3rdparty/crates:BUILD.bzip2-sys-0.1.11+1.0.8.bazel"), + ) + + maybe( + http_archive, + name = "basic_sys__cc-1.0.73", + sha256 = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/cc/1.0.73/download"], + strip_prefix = "cc-1.0.73", + build_file = Label("@examples//sys/basic/3rdparty/crates:BUILD.cc-1.0.73.bazel"), + ) + + maybe( + http_archive, + name = "basic_sys__libc-0.2.126", + sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"], + strip_prefix = "libc-0.2.126", + build_file = Label("@examples//sys/basic/3rdparty/crates:BUILD.libc-0.2.126.bazel"), + ) + + maybe( + http_archive, + name = "basic_sys__pkg-config-0.3.25", + sha256 = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/pkg-config/0.3.25/download"], + strip_prefix = "pkg-config-0.3.25", + build_file = Label("@examples//sys/basic/3rdparty/crates:BUILD.pkg-config-0.3.25.bazel"), + ) diff --git a/examples/sys/basic/BUILD.bazel b/examples/sys/basic/BUILD.bazel index 142aa89947..8971c66eae 100644 --- a/examples/sys/basic/BUILD.bazel +++ b/examples/sys/basic/BUILD.bazel @@ -22,7 +22,7 @@ rust_binary( 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"], + deps = ["//sys/basic/3rdparty/crates:bzip2"], ) sh_test( diff --git a/examples/sys/basic/Cargo.toml b/examples/sys/basic/Cargo.toml deleted file mode 100644 index 61b97fcfa4..0000000000 --- a/examples/sys/basic/Cargo.toml +++ /dev/null @@ -1,21 +0,0 @@ -[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 deleted file mode 100644 index 5145ab90a3..0000000000 --- a/examples/sys/basic/raze/BUILD.bazel +++ /dev/null @@ -1,40 +0,0 @@ -""" -@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( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/examples/sys/basic/raze/crates.bzl b/examples/sys/basic/raze/crates.bzl deleted file mode 100644 index beacc3e52d..0000000000 --- a/examples/sys/basic/raze/crates.bzl +++ /dev/null @@ -1,62 +0,0 @@ -""" -@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 deleted file mode 100644 index b49fb68667..0000000000 --- a/examples/sys/basic/raze/remote/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) 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 deleted file mode 100644 index e3f47122e8..0000000000 --- a/examples/sys/basic/raze/remote/BUILD.bzip2-0.3.3.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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", - "crate-name=bzip2", - "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 deleted file mode 100644 index 60220128dc..0000000000 --- a/examples/sys/basic/raze/remote/BUILD.bzip2-sys-0.1.9+1.0.8.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@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", - "crate-name=bzip2_sys", - "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 deleted file mode 100644 index a17280e7e2..0000000000 --- a/examples/sys/basic/raze/remote/BUILD.cc-1.0.60.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@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", - "crate-name=gcc-shim", - "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", - "crate-name=cc", - "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 deleted file mode 100644 index 5627fe42e0..0000000000 --- a/examples/sys/basic/raze/remote/BUILD.libc-0.2.77.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@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", - "crate-name=libc", - "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 deleted file mode 100644 index cd43f481ad..0000000000 --- a/examples/sys/basic/raze/remote/BUILD.pkg-config-0.3.18.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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", - "crate-name=pkg-config", - "manual", - ], - version = "0.3.18", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "test" with type "test" omitted diff --git a/examples/sys/complex/3rdparty/BUILD.bazel b/examples/sys/complex/3rdparty/BUILD.bazel new file mode 100644 index 0000000000..9046d78f85 --- /dev/null +++ b/examples/sys/complex/3rdparty/BUILD.bazel @@ -0,0 +1,28 @@ +load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor") + +crates_vendor( + name = "crates_vendor", + annotations = { + "libgit2-sys": [crate.annotation( + gen_build_script = False, + # libgit2 comes from @rules_rust//crate_universe/3rdparty:third_party_deps.bzl + deps = ["@libgit2"], + )], + "libz-sys": [crate.annotation( + gen_build_script = False, + # zlib comes from @rules_rust//crate_universe/3rdparty:third_party_deps.bzl + deps = ["@zlib"], + )], + }, + cargo_lockfile = "Cargo.Bazel.lock", + generate_build_scripts = True, + mode = "remote", + packages = { + "git2": crate.spec( + default_features = False, + version = "=0.14.4", + ), + }, + repository_name = "complex_sys", + tags = ["manual"], +) diff --git a/examples/sys/complex/Cargo.lock b/examples/sys/complex/3rdparty/Cargo.Bazel.lock similarity index 50% rename from examples/sys/complex/Cargo.lock rename to examples/sys/complex/3rdparty/Cargo.Bazel.lock index a2676c774e..e8bdcd038f 100644 --- a/examples/sys/complex/Cargo.lock +++ b/examples/sys/complex/3rdparty/Cargo.Bazel.lock @@ -1,22 +1,18 @@ # 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" +version = 3 [[package]] name = "bitflags" -version = "1.2.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "cc" -version = "1.0.69" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" dependencies = [ "jobserver", ] @@ -28,20 +24,12 @@ 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" +name = "direct-cargo-bazel-deps" +version = "0.0.1" dependencies = [ - "foreign-types-shared", + "git2", ] -[[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" @@ -54,16 +42,14 @@ dependencies = [ [[package]] name = "git2" -version = "0.13.12" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6f1a0238d7f8f8fd5ee642f4ebac4dbc03e03d1f78fbe7a3ede35dcf7e2224" +checksum = "d0155506aab710a86160ddb504a480d2964d7ab5b9e62419be69e0032bc5931c" dependencies = [ "bitflags", "libc", "libgit2-sys", "log", - "openssl-probe", - "openssl-sys", "url", ] @@ -80,58 +66,36 @@ dependencies = [ [[package]] name = "jobserver" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5ca711fd837261e14ec9e674f092cbb931d3fa1482b017ae59328ddc6f3212b" +checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa" 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" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "320cfe77175da3a483efed4bc0adc1968ca050b098ce4f2f1c13a56626128790" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[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" +version = "0.13.4+1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0186af0d8f171ae6b9c4c90ec51898bad5d08a2d5e470903a50d9ad8959cbee" +checksum = "d0fa6563431ede25f5cc7f6d803c6afbc1c5d3ad3d4925d12c882bf2b526f5d1" dependencies = [ "cc", "libc", "libz-sys", - "openssl-sys", "pkg-config", - "vcpkg", ] [[package]] name = "libz-sys" -version = "1.1.3" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66" +checksum = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf" dependencies = [ "cc", "libc", @@ -141,51 +105,18 @@ dependencies = [ [[package]] name = "log" -version = "0.4.14" +version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] [[package]] name = "matches" -version = "0.1.8" +version = "0.1.9" 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", -] +checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" [[package]] name = "percent-encoding" @@ -195,24 +126,15 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" [[package]] name = "pkg-config" -version = "0.3.19" +version = "0.3.25" 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", -] +checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" [[package]] name = "tinyvec" -version = "1.3.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" dependencies = [ "tinyvec_macros", ] @@ -225,18 +147,15 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "unicode-bidi" -version = "0.3.5" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0" -dependencies = [ - "matches", -] +checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-normalization" -version = "0.1.19" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" +checksum = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6" dependencies = [ "tinyvec", ] diff --git a/examples/sys/complex/3rdparty/crates/BUILD.bazel b/examples/sys/complex/3rdparty/crates/BUILD.bazel new file mode 100644 index 0000000000..85dc3b7ea4 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "git2", + actual = "@complex_sys__git2-0.14.4//:git2", + tags = ["manual"], +) + +# Binaries +alias( + name = "cc__gcc-shim", + actual = "@complex_sys__cc-1.0.73//:gcc-shim__bin", + tags = ["manual"], +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.bitflags-1.3.2.bazel b/examples/sys/complex/3rdparty/crates/BUILD.bitflags-1.3.2.bazel new file mode 100644 index 0000000000..231508423f --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.bitflags-1.3.2.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.3.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.cc-1.0.73.bazel b/examples/sys/complex/3rdparty/crates/BUILD.cc-1.0.73.bazel new file mode 100644 index 0000000000..02c3dd86b8 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.cc-1.0.73.bazel @@ -0,0 +1,163 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "cc", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "jobserver", + "parallel", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.73", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__jobserver-0.1.24//:jobserver", + ], + }), +) + +rust_binary( + name = "gcc-shim__bin", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "jobserver", + "parallel", + ], + crate_root = "src/bin/gcc-shim.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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.73", + deps = [ + ":cc", + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__jobserver-0.1.24//:jobserver", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel b/examples/sys/complex/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 0000000000..1c475ad97d --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel b/examples/sys/complex/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel new file mode 100644 index 0000000000..25bbf71bb5 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.form_urlencoded-1.0.1.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.1", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__matches-0.1.9//:matches", + "@complex_sys__percent-encoding-2.1.0//:percent_encoding", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.git2-0.14.4.bazel b/examples/sys/complex/3rdparty/crates/BUILD.git2-0.14.4.bazel new file mode 100644 index 0000000000..8bddd3bcd7 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.git2-0.14.4.bazel @@ -0,0 +1,95 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "git2", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.14.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__bitflags-1.3.2//:bitflags", + "@complex_sys__libc-0.2.126//:libc", + "@complex_sys__libgit2-sys-0.13.4-1.4.2//:libgit2_sys", + "@complex_sys__log-0.4.17//:log", + "@complex_sys__url-2.2.2//:url", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.idna-0.2.3.bazel b/examples/sys/complex/3rdparty/crates/BUILD.idna-0.2.3.bazel new file mode 100644 index 0000000000..b11762868d --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.idna-0.2.3.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "idna", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__matches-0.1.9//:matches", + "@complex_sys__unicode-bidi-0.3.8//:unicode_bidi", + "@complex_sys__unicode-normalization-0.1.21//:unicode_normalization", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.jobserver-0.1.24.bazel b/examples/sys/complex/3rdparty/crates/BUILD.jobserver-0.1.24.bazel new file mode 100644 index 0000000000..425194f93e --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.jobserver-0.1.24.bazel @@ -0,0 +1,117 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "jobserver", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.24", + 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-apple-ios-sim", + "@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-linux-androideabi", + "@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 + "@complex_sys__libc-0.2.126//:libc", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.libc-0.2.126.bazel b/examples/sys/complex/3rdparty/crates/BUILD.libc-0.2.126.bazel new file mode 100644 index 0000000000..8df7c2bb30 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.libc-0.2.126.bazel @@ -0,0 +1,178 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.126", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__libc-0.2.126//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.2.126", + 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/sys/complex/3rdparty/crates/BUILD.libgit2-sys-0.13.4+1.4.2.bazel b/examples/sys/complex/3rdparty/crates/BUILD.libgit2-sys-0.13.4+1.4.2.bazel new file mode 100644 index 0000000000..0cbe928f75 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.libgit2-sys-0.13.4+1.4.2.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "libgit2_sys", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.13.4+1.4.2", + deps = [ + "@libgit2", + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__libc-0.2.126//:libc", + "@complex_sys__libz-sys-1.1.8//:libz_sys", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel b/examples/sys/complex/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel new file mode 100644 index 0000000000..0a01278442 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "libz_sys", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "libc", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.8", + deps = [ + "@zlib", + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__libc-0.2.126//:libc", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.log-0.4.17.bazel b/examples/sys/complex/3rdparty/crates/BUILD.log-0.4.17.bazel new file mode 100644 index 0000000000..2e38426cb5 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.log-0.4.17.bazel @@ -0,0 +1,175 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.17", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__cfg-if-1.0.0//:cfg_if", + "@complex_sys__log-0.4.17//: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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.17", + 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/sys/complex/3rdparty/crates/BUILD.matches-0.1.9.bazel b/examples/sys/complex/3rdparty/crates/BUILD.matches-0.1.9.bazel new file mode 100644 index 0000000000..9faefd4139 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.matches-0.1.9.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.9", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel b/examples/sys/complex/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel new file mode 100644 index 0000000000..d0e033c17b --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.percent-encoding-2.1.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.1.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel b/examples/sys/complex/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel new file mode 100644 index 0000000000..e022ea7f18 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.pkg-config-0.3.25.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "pkg_config", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.25", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel b/examples/sys/complex/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel new file mode 100644 index 0000000000..3c99ffc2b5 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.tinyvec-1.6.0.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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", # Zlib OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "tinyvec", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "alloc", + "default", + "tinyvec_macros", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.6.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__tinyvec_macros-0.1.0//:tinyvec_macros", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel b/examples/sys/complex/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel new file mode 100644 index 0000000000..e7cf813b34 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.tinyvec_macros-0.1.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 OR Zlib +# ]) + +rust_library( + name = "tinyvec_macros", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel b/examples/sys/complex/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel new file mode 100644 index 0000000000..94c2631c4f --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.unicode-bidi-0.3.8.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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_bidi", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "hardcoded-data", + "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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.8", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel b/examples/sys/complex/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel new file mode 100644 index 0000000000..b57cb1f4c2 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.unicode-normalization-0.1.21.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "unicode_normalization", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.21", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__tinyvec-1.6.0//:tinyvec", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.url-2.2.2.bazel b/examples/sys/complex/3rdparty/crates/BUILD.url-2.2.2.bazel new file mode 100644 index 0000000000..5fb550c59d --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.url-2.2.2.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "url", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.2.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@complex_sys__form_urlencoded-1.0.1//:form_urlencoded", + "@complex_sys__idna-0.2.3//:idna", + "@complex_sys__matches-0.1.9//:matches", + "@complex_sys__percent-encoding-2.1.0//:percent_encoding", + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/BUILD.vcpkg-0.2.15.bazel b/examples/sys/complex/3rdparty/crates/BUILD.vcpkg-0.2.15.bazel new file mode 100644 index 0000000000..795f2021a5 --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/BUILD.vcpkg-0.2.15.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### + +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 = "vcpkg", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.15", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/examples/sys/complex/3rdparty/crates/crates.bzl b/examples/sys/complex/3rdparty/crates/crates.bzl new file mode 100644 index 0000000000..5969c28089 --- /dev/null +++ b/examples/sys/complex/3rdparty/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//sys/complex/3rdparty/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 = "complex_sys", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@examples//sys/complex/3rdparty/crates:defs.bzl"), + ) + + _crate_repositories() diff --git a/examples/sys/complex/3rdparty/crates/defs.bzl b/examples/sys/complex/3rdparty/crates/defs.bzl new file mode 100644 index 0000000000..5fc3e5813d --- /dev/null +++ b/examples/sys/complex/3rdparty/crates/defs.bzl @@ -0,0 +1,562 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //sys/complex/3rdparty:crates_vendor +############################################################################### +""" +# `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: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + 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: { + "git2": "@complex_sys__git2-0.14.4//:git2", + }, + }, +} + +_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(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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"], +} + +############################################################################### + +def crate_repositories(): + """A macro for defining repositories for all generated crates""" + maybe( + http_archive, + name = "complex_sys__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//sys/complex/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__cc-1.0.73", + sha256 = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/cc/1.0.73/download"], + strip_prefix = "cc-1.0.73", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.cc-1.0.73.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__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//sys/complex/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__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//sys/complex/3rdparty/crates:BUILD.form_urlencoded-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__git2-0.14.4", + sha256 = "d0155506aab710a86160ddb504a480d2964d7ab5b9e62419be69e0032bc5931c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/git2/0.14.4/download"], + strip_prefix = "git2-0.14.4", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.git2-0.14.4.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__idna-0.2.3", + sha256 = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/idna/0.2.3/download"], + strip_prefix = "idna-0.2.3", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.idna-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__jobserver-0.1.24", + sha256 = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/jobserver/0.1.24/download"], + strip_prefix = "jobserver-0.1.24", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.jobserver-0.1.24.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__libc-0.2.126", + sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"], + strip_prefix = "libc-0.2.126", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.libc-0.2.126.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__libgit2-sys-0.13.4-1.4.2", + sha256 = "d0fa6563431ede25f5cc7f6d803c6afbc1c5d3ad3d4925d12c882bf2b526f5d1", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libgit2-sys/0.13.4+1.4.2/download"], + strip_prefix = "libgit2-sys-0.13.4+1.4.2", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.libgit2-sys-0.13.4+1.4.2.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__libz-sys-1.1.8", + sha256 = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libz-sys/1.1.8/download"], + strip_prefix = "libz-sys-1.1.8", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.libz-sys-1.1.8.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__log-0.4.17", + sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"], + strip_prefix = "log-0.4.17", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.log-0.4.17.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__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//sys/complex/3rdparty/crates:BUILD.matches-0.1.9.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__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//sys/complex/3rdparty/crates:BUILD.percent-encoding-2.1.0.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__pkg-config-0.3.25", + sha256 = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/pkg-config/0.3.25/download"], + strip_prefix = "pkg-config-0.3.25", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.pkg-config-0.3.25.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__tinyvec-1.6.0", + sha256 = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tinyvec/1.6.0/download"], + strip_prefix = "tinyvec-1.6.0", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.tinyvec-1.6.0.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__tinyvec_macros-0.1.0", + sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download"], + strip_prefix = "tinyvec_macros-0.1.0", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.tinyvec_macros-0.1.0.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__unicode-bidi-0.3.8", + sha256 = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unicode-bidi/0.3.8/download"], + strip_prefix = "unicode-bidi-0.3.8", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.unicode-bidi-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__unicode-normalization-0.1.21", + sha256 = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unicode-normalization/0.1.21/download"], + strip_prefix = "unicode-normalization-0.1.21", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.unicode-normalization-0.1.21.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__url-2.2.2", + sha256 = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/url/2.2.2/download"], + strip_prefix = "url-2.2.2", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.url-2.2.2.bazel"), + ) + + maybe( + http_archive, + name = "complex_sys__vcpkg-0.2.15", + sha256 = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/vcpkg/0.2.15/download"], + strip_prefix = "vcpkg-0.2.15", + build_file = Label("@examples//sys/complex/3rdparty/crates:BUILD.vcpkg-0.2.15.bazel"), + ) diff --git a/examples/sys/complex/BUILD.bazel b/examples/sys/complex/BUILD.bazel index f0e7f0bd6a..eaf31993d5 100644 --- a/examples/sys/complex/BUILD.bazel +++ b/examples/sys/complex/BUILD.bazel @@ -20,7 +20,7 @@ rust_binary( name = "complex_sys", srcs = ["src/main.rs"], edition = "2018", - # Note the `cargo-raze` dependencies here need to have been loaded + # Note the `crate_universe` dependencies here need to have been loaded # in the WORKSPACE file. See `//sys:sys_deps.bzl` for rmore details. - deps = ["//sys/complex/raze:git2"], + deps = ["//sys/complex/3rdparty/crates:git2"], ) diff --git a/examples/sys/complex/Cargo.toml b/examples/sys/complex/Cargo.toml deleted file mode 100644 index 1e47fb46eb..0000000000 --- a/examples/sys/complex/Cargo.toml +++ /dev/null @@ -1,35 +0,0 @@ -[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 deleted file mode 100644 index c426d50d9c..0000000000 --- a/examples/sys/complex/raze/BUILD.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/examples/sys/complex/raze/crates.bzl b/examples/sys/complex/raze/crates.bzl deleted file mode 100644 index a8ccc94377..0000000000 --- a/examples/sys/complex/raze/crates.bzl +++ /dev/null @@ -1,292 +0,0 @@ -""" -@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 deleted file mode 100644 index fc774b481c..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.autocfg-1.0.1.bazel +++ /dev/null @@ -1,64 +0,0 @@ -""" -@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", - "crate-name=autocfg", - "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 deleted file mode 100644 index b49fb68667..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) 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 deleted file mode 100644 index bb32c4c8b9..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.bitflags-1.2.1.bazel +++ /dev/null @@ -1,86 +0,0 @@ -""" -@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", - "crate-name=bitflags", - "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 deleted file mode 100644 index 091bfd3a1d..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.cc-1.0.69.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@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", - "crate-name=gcc-shim", - "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", - "crate-name=cc", - "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 deleted file mode 100644 index 20f5613f23..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.cfg-if-1.0.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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", - "crate-name=cfg-if", - "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 deleted file mode 100644 index 10dea67311..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.foreign-types-0.3.2.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@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", - "crate-name=foreign-types", - "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 deleted file mode 100644 index 685565d711..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.foreign-types-shared-0.1.1.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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", - "crate-name=foreign-types-shared", - "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 deleted file mode 100644 index a5b507fc60..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.form_urlencoded-1.0.1.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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", - "crate-name=form_urlencoded", - "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 deleted file mode 100644 index 9604d2fe31..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.git2-0.13.12.bazel +++ /dev/null @@ -1,116 +0,0 @@ -""" -@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", - "crate-name=git2", - "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 deleted file mode 100644 index ba6b1758c5..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.idna-0.2.3.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@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", - "crate-name=idna", - "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 deleted file mode 100644 index 1da200a507..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.jobserver-0.1.23.bazel +++ /dev/null @@ -1,89 +0,0 @@ -""" -@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", - "crate-name=jobserver", - "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 deleted file mode 100644 index d96a80db59..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.lazy_static-1.4.0.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@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", - "crate-name=lazy_static", - "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 deleted file mode 100644 index 081dc6c05c..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.libc-0.2.98.bazel +++ /dev/null @@ -1,90 +0,0 @@ -""" -@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", - "crate-name=libc", - "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 deleted file mode 100644 index fc6dc61a76..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.libgit2-sys-0.12.21+1.1.0.bazel +++ /dev/null @@ -1,150 +0,0 @@ -""" -@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", - "crate-name=libgit2_sys", - "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 deleted file mode 100644 index b02323794a..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.libssh2-sys-0.2.21.bazel +++ /dev/null @@ -1,157 +0,0 @@ -""" -@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", - "crate-name=libssh2_sys", - "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 deleted file mode 100644 index 4131c76c8b..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.libz-sys-1.1.3.bazel +++ /dev/null @@ -1,109 +0,0 @@ -""" -@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", - "crate-name=libz-sys", - "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 deleted file mode 100644 index cfb77789cb..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.log-0.4.14.bazel +++ /dev/null @@ -1,91 +0,0 @@ -""" -@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", - "crate-name=log", - "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 deleted file mode 100644 index 37a06c4a76..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.matches-0.1.8.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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", - "crate-name=matches", - "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 deleted file mode 100644 index c4c5bc8c26..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.openssl-0.10.32.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@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", - "crate-name=openssl", - "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 deleted file mode 100644 index 703b662ec1..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.openssl-probe-0.1.4.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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", - "crate-name=openssl-probe", - "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 deleted file mode 100644 index c662fd404c..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.openssl-sys-0.9.60.bazel +++ /dev/null @@ -1,114 +0,0 @@ -""" -@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", - "crate-name=openssl-sys", - "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 deleted file mode 100644 index a4b8ac85aa..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.percent-encoding-2.1.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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", - "crate-name=percent-encoding", - "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 deleted file mode 100644 index e24bb27a70..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.pkg-config-0.3.19.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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", - "crate-name=pkg-config", - "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 deleted file mode 100644 index a42e7885a8..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.tinyvec-1.3.1.bazel +++ /dev/null @@ -1,64 +0,0 @@ -""" -@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", - "crate-name=tinyvec", - "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 deleted file mode 100644 index bc8bc345ce..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.tinyvec_macros-0.1.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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", - "crate-name=tinyvec_macros", - "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 deleted file mode 100644 index a743636b4e..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.unicode-bidi-0.3.5.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@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", - "crate-name=unicode_bidi", - "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 deleted file mode 100644 index 47e7196fc1..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.unicode-normalization-0.1.19.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@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", - "crate-name=unicode-normalization", - "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 deleted file mode 100644 index dfbf22f9d4..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.url-2.2.2.bazel +++ /dev/null @@ -1,64 +0,0 @@ -""" -@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", - "crate-name=url", - "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 deleted file mode 100644 index b9afc3f1ec..0000000000 --- a/examples/sys/complex/raze/remote/BUILD.vcpkg-0.2.15.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@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", - "crate-name=vcpkg", - "manual", - ], - version = "0.2.15", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/examples/sys/complex/repositories.bzl b/examples/sys/complex/repositories.bzl deleted file mode 100644 index 1284191647..0000000000 --- a/examples/sys/complex/repositories.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# 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/sys_deps.bzl b/examples/sys/sys_deps.bzl index 31716e406d..1825ad134e 100644 --- a/examples/sys/sys_deps.bzl +++ b/examples/sys/sys_deps.bzl @@ -1,14 +1,20 @@ -# buildifier: disable=module-docstring -load("//sys/basic/raze:crates.bzl", "basic_sys_fetch_remote_crates") -load("//sys/complex:repositories.bzl", "complex_sys_repositories") +"""Dependencies for the `@rules_rust_examples//sys` package""" + +load("//sys/basic/3rdparty/crates:defs.bzl", basic_crate_repositories = "crate_repositories") +load("//sys/complex/3rdparty/crates:defs.bzl", complex_crate_repositories = "crate_repositories") +load("//third_party/openssl:openssl_repositories.bzl", "openssl_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. + [crate_universe](https://bazelbuild.github.io/rules_rust/crate_universe.html) + to gather these dependencies and make them avaialble in the workspace. """ - basic_sys_fetch_remote_crates() - complex_sys_repositories() + + # Required by `//sys/complex` + openssl_repositories() + + basic_crate_repositories() + complex_crate_repositories() From c97f255dfe23107670fb5193ecc0e6e31045285c Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Tue, 2 Aug 2022 08:54:37 -0700 Subject: [PATCH 07/26] Delete deprecated targets (#1496) --- rust/toolchain/BUILD.bazel | 42 ----------------------------------- tools/rustfmt/BUILD.bazel | 4 ++-- wasm_bindgen/BUILD.bazel | 1 - wasm_bindgen/raze/BUILD.bazel | 21 ------------------ 4 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 wasm_bindgen/raze/BUILD.bazel diff --git a/rust/toolchain/BUILD.bazel b/rust/toolchain/BUILD.bazel index fede5de030..debac4093a 100644 --- a/rust/toolchain/BUILD.bazel +++ b/rust/toolchain/BUILD.bazel @@ -7,78 +7,36 @@ toolchain_files( tool = "cargo", ) -alias( - name = "current_exec_cargo_files", - actual = "current_cargo_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_cargo_files`", -) - toolchain_files( name = "current_clippy_files", tool = "clippy", ) -alias( - name = "current_exec_clippy_files", - actual = "current_clippy_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_clippy_files`", -) - toolchain_files( name = "current_rustc_files", tool = "rustc", ) -alias( - name = "current_exec_rustc_files", - actual = "current_rustc_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_rustc_files`", -) - toolchain_files( name = "current_rustdoc_files", tool = "rustdoc", ) -alias( - name = "current_exec_rustdoc_files", - actual = "current_rustdoc_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_rustdoc_files`", -) - toolchain_files( name = "current_rustfmt_files", tool = "rustfmt", ) -alias( - name = "current_exec_rustfmt_files", - actual = "current_rustfmt_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_rustfmt_files`", -) - toolchain_files( name = "current_rustc_lib_files", tool = "rustc_lib", ) -alias( - name = "current_exec_rustc_lib_files", - actual = "current_rustc_lib_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_rustc_lib_files`", -) - toolchain_files( name = "current_rust_stdlib_files", tool = "rust_stdlib", ) -alias( - name = "current_exec_rust_stdlib_files", - actual = "current_rust_stdlib_files", - deprecation = "instead use `@rules_rust//rust/toolchain:current_rust_stdlib_files`", -) - current_rust_toolchain( name = "current_rust_toolchain", ) diff --git a/tools/rustfmt/BUILD.bazel b/tools/rustfmt/BUILD.bazel index d659ca14f6..ee1631a359 100644 --- a/tools/rustfmt/BUILD.bazel +++ b/tools/rustfmt/BUILD.bazel @@ -19,11 +19,11 @@ rust_library( ), data = [ "//:rustfmt.toml", - "//rust/toolchain:current_exec_rustfmt_files", + "//rust/toolchain:current_rustfmt_files", ], edition = "2018", rustc_env = { - "RUSTFMT": "$(rootpath //rust/toolchain:current_exec_rustfmt_files)", + "RUSTFMT": "$(rootpath //rust/toolchain:current_rustfmt_files)", "RUSTFMT_CONFIG": "$(rootpath //:rustfmt.toml)", }, rustc_env_files = [ diff --git a/wasm_bindgen/BUILD.bazel b/wasm_bindgen/BUILD.bazel index 0e42393aa0..4ad36b0ced 100644 --- a/wasm_bindgen/BUILD.bazel +++ b/wasm_bindgen/BUILD.bazel @@ -28,7 +28,6 @@ filegroup( srcs = glob(["*.bzl"]) + [ "BUILD.bazel", "//wasm_bindgen/3rdparty:distro", - "//wasm_bindgen/raze:distro", ], visibility = ["//:__subpackages__"], ) diff --git a/wasm_bindgen/raze/BUILD.bazel b/wasm_bindgen/raze/BUILD.bazel deleted file mode 100644 index 38bf8f7295..0000000000 --- a/wasm_bindgen/raze/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -alias( - name = "wasm_bindgen", - actual = "//wasm_bindgen/3rdparty:wasm_bindgen", - deprecation = "instead use `@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen", - visibility = ["//visibility:public"], -) - -alias( - name = "cargo_bin_wasm_bindgen", - actual = "//wasm_bindgen/3rdparty:wasm_bindgen_cli", - deprecation = "instead use `@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen_cli", - visibility = ["//visibility:public"], -) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//wasm_bindgen:__pkg__"], -) From 867fc37c175f69427a8f484f6978092000cac9fc Mon Sep 17 00:00:00 2001 From: Roberto Bampi Date: Fri, 5 Aug 2022 10:33:00 +0200 Subject: [PATCH 08/26] rules_rust: enable pipelined compilation. (#1275) Pipelined compilation allows better parallelism during builds as it allows libraries to generate lightweight metadata files to unlock other depencies. These metadata files (.rmeta) can only be used to unlock library -> library dependencies and do not affect builds in any other way. This is currently the default in cargo: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199. Pipelined compilation will be disabled by default and will need to be enabled via flag. Pipelined compilation is not supported on windows and will thus always be disabled. --- .bazelci/presubmit.yml | 1 + docs/flatten.md | 9 +- docs/providers.md | 9 +- proto/proto.bzl | 10 +- rust/private/common.bzl | 2 + rust/private/providers.bzl | 2 + rust/private/rust.bzl | 11 +- rust/private/rustc.bzl | 224 ++++++++++++++--- rust/private/rustdoc.bzl | 4 + rust/private/utils.bzl | 22 ++ rust/settings/BUILD.bazel | 8 + rust/toolchain.bzl | 5 + test/process_wrapper/rustc_quit_on_rmeta.rs | 11 +- test/unit/pipelined_compilation/BUILD.bazel | 4 + test/unit/pipelined_compilation/bin.rs | 5 + .../custom_rule_test/to_wrap.rs | 3 + .../custom_rule_test/uses_wrapper.rs | 5 + test/unit/pipelined_compilation/first.rs | 4 + test/unit/pipelined_compilation/my_macro.rs | 6 + .../pipelined_compilation_test.bzl | 231 ++++++++++++++++++ test/unit/pipelined_compilation/second.rs | 7 + test/unit/pipelined_compilation/wrap.bzl | 105 ++++++++ test/unit/proc_macro/leaks_deps/lib/a.rs | 5 + test/unit/proc_macro/leaks_deps/lib/b.rs | 3 + .../proc_macro/leaks_deps/lib/my_macro.rs | 7 + .../proc_macro_does_not_leak_deps.bzl | 70 +++++- util/process_wrapper/main.rs | 53 ++-- util/process_wrapper/options.rs | 5 +- util/process_wrapper/output.rs | 4 +- util/process_wrapper/rustc.rs | 72 ++++-- 30 files changed, 813 insertions(+), 94 deletions(-) create mode 100644 test/unit/pipelined_compilation/BUILD.bazel create mode 100644 test/unit/pipelined_compilation/bin.rs create mode 100644 test/unit/pipelined_compilation/custom_rule_test/to_wrap.rs create mode 100644 test/unit/pipelined_compilation/custom_rule_test/uses_wrapper.rs create mode 100644 test/unit/pipelined_compilation/first.rs create mode 100644 test/unit/pipelined_compilation/my_macro.rs create mode 100644 test/unit/pipelined_compilation/pipelined_compilation_test.bzl create mode 100644 test/unit/pipelined_compilation/second.rs create mode 100644 test/unit/pipelined_compilation/wrap.bzl create mode 100644 test/unit/proc_macro/leaks_deps/lib/a.rs create mode 100644 test/unit/proc_macro/leaks_deps/lib/b.rs create mode 100644 test/unit/proc_macro/leaks_deps/lib/my_macro.rs diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 06d1868147..864496d7b9 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -15,6 +15,7 @@ default_windows_targets: &default_windows_targets - "-//bindgen/..." - "-//test/proto/..." - "-//tools/rust_analyzer/..." + - "-//test/unit/pipelined_compilation/..." crate_universe_vendor_example_targets: &crate_universe_vendor_example_targets - "//vendor_external:crates_vendor" - "//vendor_local_manifests:crates_vendor" diff --git a/docs/flatten.md b/docs/flatten.md index 725a9fc8b0..87af5c50b8 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1350,8 +1350,8 @@ A test rule for performing `rustfmt --check` on a set of targets ## CrateInfo
-CrateInfo(aliases, compile_data, deps, edition, is_test, name, output, owner, proc_macro_deps, root,
-          rustc_env, srcs, type, wrapped_crate_type)
+CrateInfo(aliases, compile_data, deps, edition, is_test, metadata, name, output, owner,
+          proc_macro_deps, root, rustc_env, srcs, type, wrapped_crate_type)
 
A provider containing general Crate information. @@ -1366,6 +1366,7 @@ A provider containing general Crate information. | deps | depset[DepVariantInfo]: This crate's (rust or cc) dependencies' providers. | | edition | str: The edition of this crate. | | is_test | bool: If the crate is being compiled in a test context | +| metadata | File: The rmeta file produced for this crate. It is optional. | | name | str: The name of this crate. | | output | File: The output File that will be produced, depends on crate type. | | owner | Label: The label of the target that produced this CrateInfo | @@ -1383,7 +1384,8 @@ A provider containing general Crate information.
 DepInfo(dep_env, direct_crates, link_search_path_files, transitive_build_infos,
-        transitive_crate_outputs, transitive_crates, transitive_noncrates)
+        transitive_crate_outputs, transitive_crates, transitive_metadata_outputs,
+        transitive_noncrates)
 
A provider containing information about a Crate's dependencies. @@ -1399,6 +1401,7 @@ A provider containing information about a Crate's dependencies. | transitive_build_infos | depset[BuildInfo] | | transitive_crate_outputs | depset[File]: All transitive crate outputs. | | transitive_crates | depset[CrateInfo] | +| transitive_metadata_outputs | depset[File]: All transitive metadata dependencies (.rmeta, for crates that provide them) and all transitive object dependencies (.rlib) for crates that don't provide metadata. | | transitive_noncrates | depset[LinkerInput]: All transitive dependencies that aren't crates. | diff --git a/docs/providers.md b/docs/providers.md index 884a1542d1..775dbd9608 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -10,8 +10,8 @@ ## CrateInfo
-CrateInfo(aliases, compile_data, deps, edition, is_test, name, output, owner, proc_macro_deps, root,
-          rustc_env, srcs, type, wrapped_crate_type)
+CrateInfo(aliases, compile_data, deps, edition, is_test, metadata, name, output, owner,
+          proc_macro_deps, root, rustc_env, srcs, type, wrapped_crate_type)
 
A provider containing general Crate information. @@ -26,6 +26,7 @@ A provider containing general Crate information. | deps | depset[DepVariantInfo]: This crate's (rust or cc) dependencies' providers. | | edition | str: The edition of this crate. | | is_test | bool: If the crate is being compiled in a test context | +| metadata | File: The rmeta file produced for this crate. It is optional. | | name | str: The name of this crate. | | output | File: The output File that will be produced, depends on crate type. | | owner | Label: The label of the target that produced this CrateInfo | @@ -43,7 +44,8 @@ A provider containing general Crate information.
 DepInfo(dep_env, direct_crates, link_search_path_files, transitive_build_infos,
-        transitive_crate_outputs, transitive_crates, transitive_noncrates)
+        transitive_crate_outputs, transitive_crates, transitive_metadata_outputs,
+        transitive_noncrates)
 
A provider containing information about a Crate's dependencies. @@ -59,6 +61,7 @@ A provider containing information about a Crate's dependencies. | transitive_build_infos | depset[BuildInfo] | | transitive_crate_outputs | depset[File]: All transitive crate outputs. | | transitive_crates | depset[CrateInfo] | +| transitive_metadata_outputs | depset[File]: All transitive metadata dependencies (.rmeta, for crates that provide them) and all transitive object dependencies (.rlib) for crates that don't provide metadata. | | transitive_noncrates | depset[LinkerInput]: All transitive dependencies that aren't crates. | diff --git a/proto/proto.bzl b/proto/proto.bzl index 9cb83f3e7e..b5e65a3392 100644 --- a/proto/proto.bzl +++ b/proto/proto.bzl @@ -44,7 +44,7 @@ load("//rust:defs.bzl", "rust_common") load("//rust/private:rustc.bzl", "rustc_compile_action") # buildifier: disable=bzl-visibility -load("//rust/private:utils.bzl", "compute_crate_name", "determine_output_hash", "find_toolchain", "transform_deps") +load("//rust/private:utils.bzl", "can_build_metadata", "compute_crate_name", "determine_output_hash", "find_toolchain", "transform_deps") RustProtoInfo = provider( doc = "Rust protobuf provider info", @@ -212,6 +212,13 @@ def _rust_proto_compile(protos, descriptor_sets, imports, crate_name, ctx, is_gr crate_name, output_hash, )) + rust_metadata = None + if can_build_metadata(toolchain, ctx, "rlib"): + rust_metadata = ctx.actions.declare_file("%s/lib%s-%s.rmeta" % ( + output_dir, + crate_name, + output_hash, + )) # Gather all dependencies for compilation compile_action_deps = depset( @@ -234,6 +241,7 @@ def _rust_proto_compile(protos, descriptor_sets, imports, crate_name, ctx, is_gr proc_macro_deps = depset([]), aliases = {}, output = rust_lib, + metadata = rust_metadata, edition = proto_toolchain.edition, rustc_env = {}, is_test = False, diff --git a/rust/private/common.bzl b/rust/private/common.bzl index 1cf84cb1c1..3de7cb54f9 100644 --- a/rust/private/common.bzl +++ b/rust/private/common.bzl @@ -47,6 +47,8 @@ def _create_crate_info(**kwargs): """ if not "wrapped_crate_type" in kwargs: kwargs.update({"wrapped_crate_type": None}) + if not "metadata" in kwargs: + kwargs.update({"metadata": None}) return CrateInfo(**kwargs) rust_common = struct( diff --git a/rust/private/providers.bzl b/rust/private/providers.bzl index 0a1d924e83..7533349e66 100644 --- a/rust/private/providers.bzl +++ b/rust/private/providers.bzl @@ -22,6 +22,7 @@ CrateInfo = provider( "deps": "depset[DepVariantInfo]: This crate's (rust or cc) dependencies' providers.", "edition": "str: The edition of this crate.", "is_test": "bool: If the crate is being compiled in a test context", + "metadata": "File: The rmeta file produced for this crate. It is optional.", "name": "str: The name of this crate.", "output": "File: The output File that will be produced, depends on crate type.", "owner": "Label: The label of the target that produced this CrateInfo", @@ -49,6 +50,7 @@ DepInfo = provider( "transitive_build_infos": "depset[BuildInfo]", "transitive_crate_outputs": "depset[File]: All transitive crate outputs.", "transitive_crates": "depset[CrateInfo]", + "transitive_metadata_outputs": "depset[File]: All transitive metadata dependencies (.rmeta, for crates that provide them) and all transitive object dependencies (.rlib) for crates that don't provide metadata.", "transitive_noncrates": "depset[LinkerInput]: All transitive dependencies that aren't crates.", }, ) diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index f50303e3c9..c6361bdfab 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -13,10 +13,12 @@ # limitations under the License. # buildifier: disable=module-docstring +load("@bazel_skylib//lib:paths.bzl", "paths") load("//rust/private:common.bzl", "rust_common") load("//rust/private:rustc.bzl", "rustc_compile_action") load( "//rust/private:utils.bzl", + "can_build_metadata", "compute_crate_name", "dedent", "determine_output_hash", @@ -25,7 +27,6 @@ load( "get_import_macro_deps", "transform_deps", ) - # TODO(marco): Separate each rule into its own file. def _assert_no_deprecated_attributes(_ctx): @@ -316,6 +317,13 @@ def _rust_library_common(ctx, crate_type): ) rust_lib = ctx.actions.declare_file(rust_lib_name) + rust_metadata = None + if can_build_metadata(toolchain, ctx, crate_type): + rust_metadata = ctx.actions.declare_file( + paths.replace_extension(rust_lib_name, ".rmeta"), + sibling = rust_lib, + ) + deps = transform_deps(ctx.attr.deps) proc_macro_deps = transform_deps(ctx.attr.proc_macro_deps + get_import_macro_deps(ctx)) @@ -332,6 +340,7 @@ def _rust_library_common(ctx, crate_type): proc_macro_deps = depset(proc_macro_deps), aliases = ctx.attr.aliases, output = rust_lib, + metadata = rust_metadata, edition = get_edition(ctx.attr, toolchain, ctx.label), rustc_env = ctx.attr.rustc_env, is_test = False, diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index 21fb46c15e..0fe072b8e1 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -169,6 +169,9 @@ def _should_use_pic(cc_toolchain, feature_configuration, crate_type): return cc_toolchain.needs_pic_for_dynamic_libraries(feature_configuration = feature_configuration) return False +def _is_proc_macro(crate_info): + return "proc-macro" in (crate_info.type, crate_info.wrapped_crate_type) + def collect_deps( deps, proc_macro_deps, @@ -197,6 +200,7 @@ def collect_deps( build_info = None linkstamps = [] transitive_crate_outputs = [] + transitive_metadata_outputs = [] aliases = {k.label: v for k, v in aliases.items()} for dep in depset(transitive = [deps, proc_macro_deps]).to_list(): @@ -222,19 +226,31 @@ def collect_deps( transitive_crates.append( depset( [crate_info], - transitive = [] if "proc-macro" in [ - crate_info.type, - crate_info.wrapped_crate_type, - ] else [dep_info.transitive_crates], + transitive = [] if _is_proc_macro(crate_info) else [dep_info.transitive_crates], + ), + ) + + # If this dependency produces metadata, add it to the metadata outputs. + # If it doesn't (for example a custom library that exports crate_info), + # we depend on crate_info.output. + depend_on = crate_info.metadata + if not crate_info.metadata: + depend_on = crate_info.output + + # If this dependency is a proc_macro, it still can be used for lib crates + # that produce metadata. + # In that case, we don't depend on its metadata dependencies. + transitive_metadata_outputs.append( + depset( + [depend_on], + transitive = [] if _is_proc_macro(crate_info) else [dep_info.transitive_metadata_outputs], ), ) + transitive_crate_outputs.append( depset( [crate_info.output], - transitive = [] if "proc-macro" in [ - crate_info.type, - crate_info.wrapped_crate_type, - ] else [dep_info.transitive_crate_outputs], + transitive = [] if _is_proc_macro(crate_info) else [dep_info.transitive_crate_outputs], ), ) @@ -269,6 +285,7 @@ def collect_deps( order = "topological", # dylib link flag ordering matters. ), transitive_crate_outputs = depset(transitive = transitive_crate_outputs), + transitive_metadata_outputs = depset(transitive = transitive_metadata_outputs), transitive_build_infos = depset(transitive = transitive_build_infos), link_search_path_files = depset(transitive = transitive_link_search_paths), dep_env = build_info.dep_env if build_info else None, @@ -505,6 +522,28 @@ def _disambiguate_libs(actions, toolchain, crate_info, dep_info, use_pic): visited_libs[name] = artifact return ambiguous_libs +def _depend_on_metadata(crate_info, force_depend_on_objects): + """Determines if we can depend on metadata for this crate. + + By default (when pipelining is disabled or when the crate type needs to link against + objects) we depend on the set of object files (.rlib). + When pipelining is enabled and the crate type supports depending on metadata, + we depend on metadata files only (.rmeta). + In some rare cases, even if both of those conditions are true, we still want to + depend on objects. This is what force_depend_on_objects is. + + Args: + crate_info (CrateInfo): The Crate to determine this for. + force_depend_on_objects (bool): if set we will not depend on metadata. + + Returns: + Whether we can depend on metadata for this crate. + """ + if force_depend_on_objects: + return False + + return crate_info.type in ("rlib", "lib") + def collect_inputs( ctx, file, @@ -516,7 +555,8 @@ def collect_inputs( crate_info, dep_info, build_info, - stamp = False): + stamp = False, + force_depend_on_objects = False): """Gather's the inputs and required input information for a rustc action Args: @@ -532,6 +572,8 @@ def collect_inputs( build_info (BuildInfo): The target Crate's build settings. stamp (bool, optional): Whether or not workspace status stamping is enabled. For more details see https://docs.bazel.build/versions/main/user-manual.html#flag--stamp + force_depend_on_objects (bool, optional): Forces dependencies of this rule to be objects rather than + metadata, even for libraries. This is used in rustdoc tests. Returns: tuple: A tuple: A tuple of the following items: @@ -572,6 +614,10 @@ def collect_inputs( # change. linkstamp_outs = [] + transitive_crate_outputs = dep_info.transitive_crate_outputs + if _depend_on_metadata(crate_info, force_depend_on_objects): + transitive_crate_outputs = dep_info.transitive_metadata_outputs + nolinkstamp_compile_inputs = depset( getattr(files, "data", []) + ([build_info.rustc_env, build_info.flags] if build_info else []) + @@ -580,7 +626,7 @@ def collect_inputs( transitive = [ linker_depset, crate_info.srcs, - dep_info.transitive_crate_outputs, + transitive_crate_outputs, depset(additional_transitive_inputs), crate_info.compile_data, toolchain.all_files, @@ -654,7 +700,10 @@ def construct_arguments( force_all_deps_direct = False, force_link = False, stamp = False, - remap_path_prefix = "."): + remap_path_prefix = ".", + use_json_output = False, + build_metadata = False, + force_depend_on_objects = False): """Builds an Args object containing common rustc flags Args: @@ -681,6 +730,9 @@ def construct_arguments( stamp (bool, optional): Whether or not workspace status stamping is enabled. For more details see https://docs.bazel.build/versions/main/user-manual.html#flag--stamp remap_path_prefix (str, optional): A value used to remap `${pwd}` to. If set to a falsey value, no prefix will be set. + use_json_output (bool): Have rustc emit json and process_wrapper parse json messages to output rendered output. + build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output. + force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available. Returns: tuple: A tuple of the following items @@ -692,6 +744,9 @@ def construct_arguments( This is to be passed to the `arguments` parameter of actions - (dict): Common rustc environment variables """ + if build_metadata and not use_json_output: + fail("build_metadata requires parse_json_output") + output_dir = getattr(crate_info.output, "dirname", None) linker_script = getattr(file, "linker_script", None) @@ -761,8 +816,35 @@ def construct_arguments( rustc_flags.add(crate_info.root) rustc_flags.add("--crate-name=" + crate_info.name) rustc_flags.add("--crate-type=" + crate_info.type) + + error_format = "human" if hasattr(attr, "_error_format"): - rustc_flags.add("--error-format=" + attr._error_format[ErrorFormatInfo].error_format) + error_format = attr._error_format[ErrorFormatInfo].error_format + + if use_json_output: + # If --error-format was set to json, we just pass the output through + # Otherwise process_wrapper uses the "rendered" field. + process_wrapper_flags.add("--rustc-output-format", "json" if error_format == "json" else "rendered") + + # Configure rustc json output by adding artifact notifications. + # These will always be filtered out by process_wrapper and will be use to terminate + # rustc when appropriate. + json = ["artifacts"] + if error_format == "short": + json.append("diagnostic-short") + elif error_format == "human" and toolchain.os != "windows": + # If the os is not windows, we can get colorized output. + json.append("diagnostic-rendered-ansi") + + rustc_flags.add("--json=" + ",".join(json)) + + error_format = "json" + + if build_metadata: + # Configure process_wrapper to terminate rustc when metadata are emitted + process_wrapper_flags.add("--rustc-quit-on-rmeta", "true") + + rustc_flags.add("--error-format=" + error_format) # Mangle symbols to disambiguate crates with the same name. This could # happen only for non-final artifacts where we compute an output_hash, @@ -789,7 +871,9 @@ def construct_arguments( if emit: rustc_flags.add("--emit=" + ",".join(emit_with_paths)) - rustc_flags.add("--color=always") + if error_format != "json": + # Color is not compatible with json output. + rustc_flags.add("--color=always") rustc_flags.add("--target=" + toolchain.target_flag_value) if hasattr(attr, "crate_features"): rustc_flags.add_all(getattr(attr, "crate_features"), before_each = "--cfg", format_each = 'feature="%s"') @@ -832,11 +916,12 @@ def construct_arguments( _add_native_link_flags(rustc_flags, dep_info, linkstamp_outs, ambiguous_libs, crate_info.type, toolchain, cc_toolchain, feature_configuration) + use_metadata = _depend_on_metadata(crate_info, force_depend_on_objects) + # These always need to be added, even if not linking this crate. - add_crate_link_flags(rustc_flags, dep_info, force_all_deps_direct) + add_crate_link_flags(rustc_flags, dep_info, force_all_deps_direct, use_metadata) - needs_extern_proc_macro_flag = "proc-macro" in [crate_info.type, crate_info.wrapped_crate_type] and \ - crate_info.edition != "2015" + needs_extern_proc_macro_flag = _is_proc_macro(crate_info) and crate_info.edition != "2015" if needs_extern_proc_macro_flag: rustc_flags.add("--extern") rustc_flags.add("proc_macro") @@ -919,6 +1004,8 @@ def rustc_compile_action( - (DepInfo): The transitive dependencies of this crate. - (DefaultInfo): The output file for this crate, and its runfiles. """ + build_metadata = getattr(crate_info, "metadata", None) + cc_toolchain, feature_configuration = find_cc_toolchain(ctx) dep_info, build_info, linkstamps = collect_deps( @@ -948,6 +1035,14 @@ def rustc_compile_action( stamp = stamp, ) + # If we build metadata, we need to keep the command line of the two invocations + # (rlib and rmeta) as similar as possible, otherwise rustc rejects the rmeta as + # a candidate. + # Because of that we need to add emit=metadata to both the rlib and rmeta invocation. + emit = ["dep-info", "link"] + if build_metadata: + emit.append("metadata") + args, env_from_args = construct_arguments( ctx = ctx, attr = attr, @@ -955,6 +1050,7 @@ def rustc_compile_action( toolchain = toolchain, tool_path = toolchain.rustc.path, cc_toolchain = cc_toolchain, + emit = emit, feature_configuration = feature_configuration, crate_info = crate_info, dep_info = dep_info, @@ -967,8 +1063,35 @@ def rustc_compile_action( build_flags_files = build_flags_files, force_all_deps_direct = force_all_deps_direct, stamp = stamp, + use_json_output = bool(build_metadata), ) + args_metadata = None + if build_metadata: + args_metadata, _ = construct_arguments( + ctx = ctx, + attr = attr, + file = ctx.file, + toolchain = toolchain, + tool_path = toolchain.rustc.path, + cc_toolchain = cc_toolchain, + emit = emit, + feature_configuration = feature_configuration, + crate_info = crate_info, + dep_info = dep_info, + linkstamp_outs = linkstamp_outs, + ambiguous_libs = ambiguous_libs, + output_hash = output_hash, + rust_flags = rust_flags, + out_dir = out_dir, + build_env_files = build_env_files, + build_flags_files = build_flags_files, + force_all_deps_direct = force_all_deps_direct, + stamp = stamp, + use_json_output = True, + build_metadata = True, + ) + env = dict(ctx.configuration.default_shell_env) env.update(env_from_args) @@ -1019,10 +1142,25 @@ def rustc_compile_action( len(crate_info.srcs.to_list()), ), ) + if args_metadata: + ctx.actions.run( + executable = ctx.executable._process_wrapper, + inputs = compile_inputs, + outputs = [build_metadata], + env = env, + arguments = args_metadata.all, + mnemonic = "RustcMetadata", + progress_message = "Compiling Rust metadata {} {}{} ({} files)".format( + crate_info.type, + ctx.label.name, + formatted_version, + len(crate_info.srcs.to_list()), + ), + ) else: # Run without process_wrapper - if build_env_files or build_flags_files or stamp: - fail("build_env_files, build_flags_files, stamp are not supported when building without process_wrapper") + if build_env_files or build_flags_files or stamp or build_metadata: + fail("build_env_files, build_flags_files, stamp, build_metadata are not supported when building without process_wrapper") ctx.actions.run( executable = toolchain.rustc, inputs = compile_inputs, @@ -1304,7 +1442,7 @@ def _get_dir_names(files): dirs[f.dirname] = None return dirs.keys() -def add_crate_link_flags(args, dep_info, force_all_deps_direct = False): +def add_crate_link_flags(args, dep_info, force_all_deps_direct = False, use_metadata = False): """Adds link flags to an Args object reference Args: @@ -1312,22 +1450,19 @@ def add_crate_link_flags(args, dep_info, force_all_deps_direct = False): dep_info (DepInfo): The current target's dependency info force_all_deps_direct (bool, optional): Whether to pass the transitive rlibs with --extern to the commandline as opposed to -L. + use_metadata (bool, optional): Build command line arugments using metadata for crates that provide it. """ - if force_all_deps_direct: - args.add_all( - depset( - transitive = [ - dep_info.direct_crates, - dep_info.transitive_crates, - ], - ), - uniquify = True, - map_each = _crate_to_link_flag, - ) - else: - # nb. Direct crates are linked via --extern regardless of their crate_type - args.add_all(dep_info.direct_crates, map_each = _crate_to_link_flag) + direct_crates = depset( + transitive = [ + dep_info.direct_crates, + dep_info.transitive_crates, + ], + ) if force_all_deps_direct else dep_info.direct_crates + + crate_to_link_flags = _crate_to_link_flag_metadata if use_metadata else _crate_to_link_flag + args.add_all(direct_crates, uniquify = True, map_each = crate_to_link_flags) + args.add_all( dep_info.transitive_crates, map_each = _get_crate_dirname, @@ -1335,6 +1470,29 @@ def add_crate_link_flags(args, dep_info, force_all_deps_direct = False): format_each = "-Ldependency=%s", ) +def _crate_to_link_flag_metadata(crate): + """A helper macro used by `add_crate_link_flags` for adding crate link flags to a Arg object + + Args: + crate (CrateInfo|AliasableDepInfo): A CrateInfo or an AliasableDepInfo provider + + Returns: + list: Link flags for the given provider + """ + + # This is AliasableDepInfo, we should use the alias as a crate name + if hasattr(crate, "dep"): + name = crate.name + crate_info = crate.dep + else: + name = crate.name + crate_info = crate + + lib_or_meta = crate_info.metadata + if not crate_info.metadata: + lib_or_meta = crate_info.output + return ["--extern={}={}".format(name, lib_or_meta.path)] + def _crate_to_link_flag(crate): """A helper macro used by `add_crate_link_flags` for adding crate link flags to a Arg object diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index 82fdd4e069..6874717dc7 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -37,6 +37,7 @@ def _strip_crate_info_output(crate_info): aliases = crate_info.aliases, # This crate info should have no output output = None, + metadata = None, edition = crate_info.edition, rustc_env = crate_info.rustc_env, is_test = crate_info.is_test, @@ -90,6 +91,8 @@ def rustdoc_compile_action( crate_info = crate_info, dep_info = dep_info, build_info = build_info, + # If this is a rustdoc test, we need to depend on rlibs rather than .rmeta. + force_depend_on_objects = is_test, ) # Since this crate is not actually producing the output described by the @@ -118,6 +121,7 @@ def rustdoc_compile_action( emit = [], remap_path_prefix = None, force_link = True, + force_depend_on_objects = is_test, ) # Because rustdoc tests compile tests outside of the sandbox, the sysroot diff --git a/rust/private/utils.bzl b/rust/private/utils.bzl index 4ae5b5fc3e..633c90a00f 100644 --- a/rust/private/utils.bzl +++ b/rust/private/utils.bzl @@ -610,3 +610,25 @@ def _replace_all(string, substitutions): string = string[:pattern_start] + replacement + string[after_pattern:] return string + +def can_build_metadata(toolchain, ctx, crate_type): + """Can we build metadata for this rust_library? + + Args: + toolchain (toolchain): The rust toolchain + ctx (ctx): The rule's context object + crate_type (String): one of lib|rlib|dylib|staticlib|cdylib|proc-macro + + Returns: + bool: whether we can build metadata for this rule. + """ + + # In order to enable pipelined compilation we require that: + # 1) The _pipelined_compilation flag is enabled, + # 2) the OS running the rule is something other than windows as we require sandboxing (for now), + # 3) process_wrapper is enabled (this is disabled when compiling process_wrapper itself), + # 4) the crate_type is rlib or lib. + return toolchain._pipelined_compilation and \ + toolchain.os != "windows" and \ + ctx.attr._process_wrapper and \ + crate_type in ("rlib", "lib") diff --git a/rust/settings/BUILD.bazel b/rust/settings/BUILD.bazel index 2ff9a439fc..c5928a15d5 100644 --- a/rust/settings/BUILD.bazel +++ b/rust/settings/BUILD.bazel @@ -29,6 +29,14 @@ bool_flag( build_setting_default = False, ) +# When set, this flag causes rustc to emit .rmeta files and use them for rlib -> rlib dependencies. +# While this involves one extra (short) rustc invocation to build the rmeta file, +# it allows library dependencies to be unlocked much sooner, increasing parallelism during compilation. +bool_flag( + name = "pipelined_compilation", + build_setting_default = False, +) + bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index a046c4e58f..90a3c593c2 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -426,6 +426,7 @@ def _rust_toolchain_impl(ctx): rename_first_party_crates = ctx.attr._rename_first_party_crates[BuildSettingInfo].value third_party_dir = ctx.attr._third_party_dir[BuildSettingInfo].value + pipelined_compilation = ctx.attr._pipelined_compilation[BuildSettingInfo].value if ctx.attr.rust_lib: # buildifier: disable=print @@ -536,6 +537,7 @@ def _rust_toolchain_impl(ctx): # Experimental and incompatible flags _rename_first_party_crates = rename_first_party_crates, _third_party_dir = third_party_dir, + _pipelined_compilation = pipelined_compilation, ) return [ toolchain, @@ -673,6 +675,9 @@ rust_toolchain = rule( "_cc_toolchain": attr.label( default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"), ), + "_pipelined_compilation": attr.label( + default = "@rules_rust//rust/settings:pipelined_compilation", + ), "_rename_first_party_crates": attr.label( default = Label("//rust/settings:rename_first_party_crates"), ), diff --git a/test/process_wrapper/rustc_quit_on_rmeta.rs b/test/process_wrapper/rustc_quit_on_rmeta.rs index df32341dc4..55595084e1 100644 --- a/test/process_wrapper/rustc_quit_on_rmeta.rs +++ b/test/process_wrapper/rustc_quit_on_rmeta.rs @@ -6,8 +6,8 @@ mod test { use runfiles::Runfiles; - // fake_rustc runs the fake_rustc binary under process_wrapper with the specified - // process wrapper arguments. No arguments are passed to fake_rustc itself. + /// fake_rustc runs the fake_rustc binary under process_wrapper with the specified + /// process wrapper arguments. No arguments are passed to fake_rustc itself. fn fake_rustc(process_wrapper_args: &[&'static str]) -> String { let r = Runfiles::create().unwrap(); let fake_rustc = r.rlocation( @@ -59,7 +59,12 @@ mod test { #[test] fn test_rustc_quit_on_rmeta_quits() { - let out_content = fake_rustc(&["--rustc-quit-on-rmeta", "true"]); + let out_content = fake_rustc(&[ + "--rustc-quit-on-rmeta", + "true", + "--rustc-output-format", + "rendered", + ]); assert!( !out_content.contains("should not be in output"), "output should not contain 'should not be in output' but did: {}", diff --git a/test/unit/pipelined_compilation/BUILD.bazel b/test/unit/pipelined_compilation/BUILD.bazel new file mode 100644 index 0000000000..8d363e03ed --- /dev/null +++ b/test/unit/pipelined_compilation/BUILD.bazel @@ -0,0 +1,4 @@ +load(":pipelined_compilation_test.bzl", "pipelined_compilation_test_suite") + +############################ UNIT TESTS ############################# +pipelined_compilation_test_suite(name = "pipelined_compilation_test_suite") diff --git a/test/unit/pipelined_compilation/bin.rs b/test/unit/pipelined_compilation/bin.rs new file mode 100644 index 0000000000..aa32dd243d --- /dev/null +++ b/test/unit/pipelined_compilation/bin.rs @@ -0,0 +1,5 @@ +use second::fun; + +fn main() { + fun() +} diff --git a/test/unit/pipelined_compilation/custom_rule_test/to_wrap.rs b/test/unit/pipelined_compilation/custom_rule_test/to_wrap.rs new file mode 100644 index 0000000000..5fee30b2b9 --- /dev/null +++ b/test/unit/pipelined_compilation/custom_rule_test/to_wrap.rs @@ -0,0 +1,3 @@ +pub fn to_wrap() { + eprintln!("something"); +} diff --git a/test/unit/pipelined_compilation/custom_rule_test/uses_wrapper.rs b/test/unit/pipelined_compilation/custom_rule_test/uses_wrapper.rs new file mode 100644 index 0000000000..d932467b27 --- /dev/null +++ b/test/unit/pipelined_compilation/custom_rule_test/uses_wrapper.rs @@ -0,0 +1,5 @@ +use wrapper::wrap; + +pub fn calls_wrap() { + wrap(); +} diff --git a/test/unit/pipelined_compilation/first.rs b/test/unit/pipelined_compilation/first.rs new file mode 100644 index 0000000000..30c0129d32 --- /dev/null +++ b/test/unit/pipelined_compilation/first.rs @@ -0,0 +1,4 @@ +pub fn first_fun() -> u8 { + 4 // chosen by fair dice roll. + // guaranteed to be random. +} diff --git a/test/unit/pipelined_compilation/my_macro.rs b/test/unit/pipelined_compilation/my_macro.rs new file mode 100644 index 0000000000..035c76101a --- /dev/null +++ b/test/unit/pipelined_compilation/my_macro.rs @@ -0,0 +1,6 @@ +use proc_macro::TokenStream; + +#[proc_macro_attribute] +pub fn noop(_attr: TokenStream, item: TokenStream) -> TokenStream { + item +} diff --git a/test/unit/pipelined_compilation/pipelined_compilation_test.bzl b/test/unit/pipelined_compilation/pipelined_compilation_test.bzl new file mode 100644 index 0000000000..93382c56b9 --- /dev/null +++ b/test/unit/pipelined_compilation/pipelined_compilation_test.bzl @@ -0,0 +1,231 @@ +"""Unittests for rust rules.""" + +load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts") +load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_proc_macro") +load("//test/unit:common.bzl", "assert_argv_contains", "assert_list_contains_adjacent_elements", "assert_list_contains_adjacent_elements_not") +load(":wrap.bzl", "wrap") + +NOT_WINDOWS = select({ + "@platforms//os:linux": [], + "@platforms//os:macos": [], + "//conditions:default": ["@platforms//:incompatible"], +}) + +ENABLE_PIPELINING = { + "@//rust/settings:pipelined_compilation": True, +} + +def _second_lib_test_impl(ctx): + env = analysistest.begin(ctx) + tut = analysistest.target_under_test(env) + rlib_action = [act for act in tut.actions if act.mnemonic == "Rustc"][0] + metadata_action = [act for act in tut.actions if act.mnemonic == "RustcMetadata"][0] + + # Both actions should use the same --emit= + assert_argv_contains(env, rlib_action, "--emit=dep-info,link,metadata") + assert_argv_contains(env, metadata_action, "--emit=dep-info,link,metadata") + + # The metadata action should have a .rmeta as output and the rlib action a .rlib + path = rlib_action.outputs.to_list()[0].path + asserts.true( + env, + path.endswith(".rlib"), + "expected Rustc to output .rlib, got " + path, + ) + path = metadata_action.outputs.to_list()[0].path + asserts.true( + env, + path.endswith(".rmeta"), + "expected RustcMetadata to output .rmeta, got " + path, + ) + + # Only the action building metadata should contain --rustc-quit-on-rmeta + assert_list_contains_adjacent_elements_not(env, rlib_action.argv, ["--rustc-quit-on-rmeta", "true"]) + assert_list_contains_adjacent_elements(env, metadata_action.argv, ["--rustc-quit-on-rmeta", "true"]) + + # Check that both actions refer to the metadata of :first, not the rlib + extern_metadata = [arg for arg in metadata_action.argv if arg.startswith("--extern=first=") and "libfirst" in arg and arg.endswith(".rmeta")] + asserts.true( + env, + len(extern_metadata) == 1, + "did not find a --extern=first=*.rmeta but expected one", + ) + extern_rlib = [arg for arg in rlib_action.argv if arg.startswith("--extern=first=") and "libfirst" in arg and arg.endswith(".rmeta")] + asserts.true( + env, + len(extern_rlib) == 1, + "did not find a --extern=first=*.rlib but expected one", + ) + + # Check that the input to both actions is the metadata of :first + input_metadata = [i for i in metadata_action.inputs.to_list() if i.basename.startswith("libfirst")] + asserts.true(env, len(input_metadata) == 1, "expected only one libfirst input, found " + str([i.path for i in input_metadata])) + asserts.true(env, input_metadata[0].extension == "rmeta", "expected libfirst dependency to be rmeta, found " + input_metadata[0].path) + input_rlib = [i for i in rlib_action.inputs.to_list() if i.basename.startswith("libfirst")] + asserts.true(env, len(input_rlib) == 1, "expected only one libfirst input, found " + str([i.path for i in input_rlib])) + asserts.true(env, input_rlib[0].extension == "rmeta", "expected libfirst dependency to be rmeta, found " + input_rlib[0].path) + + return analysistest.end(env) + +def _bin_test_impl(ctx): + env = analysistest.begin(ctx) + tut = analysistest.target_under_test(env) + bin_action = [act for act in tut.actions if act.mnemonic == "Rustc"][0] + + # Check that no inputs to this binary are .rmeta files. + metadata_inputs = [i.path for i in bin_action.inputs.to_list() if i.path.endswith(".rmeta")] + asserts.false(env, metadata_inputs, "expected no metadata inputs, found " + str(metadata_inputs)) + + return analysistest.end(env) + +bin_test = analysistest.make(_bin_test_impl, config_settings = ENABLE_PIPELINING) +second_lib_test = analysistest.make(_second_lib_test_impl, config_settings = ENABLE_PIPELINING) + +def _pipelined_compilation_test(): + rust_proc_macro( + name = "my_macro", + edition = "2021", + srcs = ["my_macro.rs"], + ) + + rust_library( + name = "first", + edition = "2021", + srcs = ["first.rs"], + ) + + rust_library( + name = "second", + edition = "2021", + srcs = ["second.rs"], + deps = [":first"], + proc_macro_deps = [":my_macro"], + ) + + rust_binary( + name = "bin", + edition = "2021", + srcs = ["bin.rs"], + deps = [":second"], + ) + + second_lib_test(name = "second_lib_test", target_under_test = ":second", target_compatible_with = NOT_WINDOWS) + bin_test(name = "bin_test", target_under_test = ":bin", target_compatible_with = NOT_WINDOWS) + +def _rmeta_is_propagated_through_custom_rule_test_impl(ctx): + env = analysistest.begin(ctx) + tut = analysistest.target_under_test(env) + + # This is the metadata-generating action. It should depend on metadata for the library and, if generate_metadata is set + # also depend on metadata for 'wrapper'. + rust_action = [act for act in tut.actions if act.mnemonic == "RustcMetadata"][0] + + metadata_inputs = [i for i in rust_action.inputs.to_list() if i.path.endswith(".rmeta")] + rlib_inputs = [i for i in rust_action.inputs.to_list() if i.path.endswith(".rlib")] + + seen_wrapper_metadata = False + seen_to_wrap_metadata = False + for mi in metadata_inputs: + if "libwrapper" in mi.path: + seen_wrapper_metadata = True + if "libto_wrap" in mi.path: + seen_to_wrap_metadata = True + + seen_wrapper_rlib = False + seen_to_wrap_rlib = False + for ri in rlib_inputs: + if "libwrapper" in ri.path: + seen_wrapper_rlib = True + if "libto_wrap" in ri.path: + seen_to_wrap_rlib = True + + if ctx.attr.generate_metadata: + asserts.true(env, seen_wrapper_metadata, "expected dependency on metadata for 'wrapper' but not found") + asserts.false(env, seen_wrapper_rlib, "expected no dependency on object for 'wrapper' but it was found") + else: + asserts.true(env, seen_wrapper_rlib, "expected dependency on object for 'wrapper' but not found") + asserts.false(env, seen_wrapper_metadata, "expected no dependency on metadata for 'wrapper' but it was found") + + asserts.true(env, seen_to_wrap_metadata, "expected dependency on metadata for 'to_wrap' but not found") + asserts.false(env, seen_to_wrap_rlib, "expected no dependency on object for 'to_wrap' but it was found") + + return analysistest.end(env) + +def _rmeta_is_used_when_building_custom_rule_test_impl(ctx): + env = analysistest.begin(ctx) + tut = analysistest.target_under_test(env) + + # This is the custom rule invocation of rustc. + rust_action = [act for act in tut.actions if act.mnemonic == "Rustc"][0] + + # We want to check that the action depends on metadata, regardless of ctx.attr.generate_metadata + seen_to_wrap_rlib = False + seen_to_wrap_rmeta = False + for act in rust_action.inputs.to_list(): + if "libto_wrap" in act.path and act.path.endswith(".rlib"): + seen_to_wrap_rlib = True + elif "libto_wrap" in act.path and act.path.endswith(".rmeta"): + seen_to_wrap_rmeta = True + + asserts.true(env, seen_to_wrap_rmeta, "expected dependency on metadata for 'to_wrap' but not found") + asserts.false(env, seen_to_wrap_rlib, "expected no dependency on object for 'to_wrap' but it was found") + + return analysistest.end(env) + +rmeta_is_propagated_through_custom_rule_test = analysistest.make(_rmeta_is_propagated_through_custom_rule_test_impl, attrs = {"generate_metadata": attr.bool()}, config_settings = ENABLE_PIPELINING) +rmeta_is_used_when_building_custom_rule_test = analysistest.make(_rmeta_is_used_when_building_custom_rule_test_impl, config_settings = ENABLE_PIPELINING) + +def _custom_rule_test(generate_metadata, suffix): + rust_library( + name = "to_wrap" + suffix, + crate_name = "to_wrap", + srcs = ["custom_rule_test/to_wrap.rs"], + edition = "2021", + ) + wrap( + name = "wrapper" + suffix, + crate_name = "wrapper", + target = ":to_wrap" + suffix, + generate_metadata = generate_metadata, + ) + rust_library( + name = "uses_wrapper" + suffix, + srcs = ["custom_rule_test/uses_wrapper.rs"], + deps = [":wrapper" + suffix], + edition = "2021", + ) + + rmeta_is_propagated_through_custom_rule_test( + name = "rmeta_is_propagated_through_custom_rule_test" + suffix, + generate_metadata = generate_metadata, + target_compatible_with = NOT_WINDOWS, + target_under_test = ":uses_wrapper" + suffix, + ) + + rmeta_is_used_when_building_custom_rule_test( + name = "rmeta_is_used_when_building_custom_rule_test" + suffix, + target_compatible_with = NOT_WINDOWS, + target_under_test = ":wrapper" + suffix, + ) + +def pipelined_compilation_test_suite(name): + """Entry-point macro called from the BUILD file. + + Args: + name: Name of the macro. + """ + _pipelined_compilation_test() + _custom_rule_test(generate_metadata = True, suffix = "_with_metadata") + _custom_rule_test(generate_metadata = False, suffix = "_without_metadata") + + native.test_suite( + name = name, + tests = [ + ":bin_test", + ":second_lib_test", + ":rmeta_is_propagated_through_custom_rule_test_with_metadata", + ":rmeta_is_propagated_through_custom_rule_test_without_metadata", + ":rmeta_is_used_when_building_custom_rule_test_with_metadata", + ":rmeta_is_used_when_building_custom_rule_test_without_metadata", + ], + ) diff --git a/test/unit/pipelined_compilation/second.rs b/test/unit/pipelined_compilation/second.rs new file mode 100644 index 0000000000..b42e0b47a8 --- /dev/null +++ b/test/unit/pipelined_compilation/second.rs @@ -0,0 +1,7 @@ +use first::first_fun; +use my_macro::noop; + +#[noop] +pub fn fun() { + println!("{}", first_fun()) +} diff --git a/test/unit/pipelined_compilation/wrap.bzl b/test/unit/pipelined_compilation/wrap.bzl new file mode 100644 index 0000000000..11b84808dc --- /dev/null +++ b/test/unit/pipelined_compilation/wrap.bzl @@ -0,0 +1,105 @@ +"""A custom rule that wraps a crate called to_wrap.""" + +# buildifier: disable=bzl-visibility +load("//rust/private:common.bzl", "rust_common") + +# buildifier: disable=bzl-visibility +load("//rust/private:providers.bzl", "BuildInfo", "CrateInfo", "DepInfo", "DepVariantInfo") + +# buildifier: disable=bzl-visibility +load("//rust/private:rustc.bzl", "rustc_compile_action") + +def _wrap_impl(ctx): + rs_file = ctx.actions.declare_file(ctx.label.name + "_wrapped.rs") + crate_name = ctx.attr.crate_name if ctx.attr.crate_name else ctx.label.name + ctx.actions.run_shell( + outputs = [rs_file], + command = """cat < {} +// crate_name: {} +use to_wrap::to_wrap; + +pub fn wrap() {{ + to_wrap(); +}} +EOF +""".format(rs_file.path, crate_name), + mnemonic = "WriteWrapperRsFile", + ) + + toolchain = ctx.toolchains[Label("//rust:toolchain")] + + # Determine unique hash for this rlib + output_hash = repr(hash(rs_file.path)) + crate_type = "rlib" + + rust_lib_name = "{prefix}{name}-{lib_hash}{extension}".format( + prefix = "lib", + name = crate_name, + lib_hash = output_hash, + extension = ".rlib", + ) + rust_metadata_name = "{prefix}{name}-{lib_hash}{extension}".format( + prefix = "lib", + name = crate_name, + lib_hash = output_hash, + extension = ".rmeta", + ) + + tgt = ctx.attr.target + deps = [DepVariantInfo( + crate_info = tgt[CrateInfo] if CrateInfo in tgt else None, + dep_info = tgt[DepInfo] if DepInfo in tgt else None, + build_info = tgt[BuildInfo] if BuildInfo in tgt else None, + cc_info = tgt[CcInfo] if CcInfo in tgt else None, + )] + + rust_lib = ctx.actions.declare_file(rust_lib_name) + rust_metadata = None + if ctx.attr.generate_metadata: + rust_metadata = ctx.actions.declare_file(rust_metadata_name) + return rustc_compile_action( + ctx = ctx, + attr = ctx.attr, + toolchain = toolchain, + crate_info = rust_common.create_crate_info( + name = crate_name, + type = crate_type, + root = rs_file, + srcs = depset([rs_file]), + deps = depset(deps), + proc_macro_deps = depset([]), + aliases = {}, + output = rust_lib, + metadata = rust_metadata, + owner = ctx.label, + edition = "2018", + compile_data = depset([]), + rustc_env = {}, + is_test = False, + ), + output_hash = output_hash, + ) + +wrap = rule( + implementation = _wrap_impl, + attrs = { + "crate_name": attr.string(), + "generate_metadata": attr.bool(default = False), + "target": attr.label(), + "_cc_toolchain": attr.label( + default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"), + ), + "_error_format": attr.label( + default = Label("//:error_format"), + ), + "_process_wrapper": attr.label( + default = Label("//util/process_wrapper"), + executable = True, + allow_single_file = True, + cfg = "exec", + ), + }, + toolchains = ["@rules_rust//rust:toolchain", "@bazel_tools//tools/cpp:toolchain_type"], + incompatible_use_toolchain_transition = True, + fragments = ["cpp"], +) diff --git a/test/unit/proc_macro/leaks_deps/lib/a.rs b/test/unit/proc_macro/leaks_deps/lib/a.rs new file mode 100644 index 0000000000..7d1a54eb75 --- /dev/null +++ b/test/unit/proc_macro/leaks_deps/lib/a.rs @@ -0,0 +1,5 @@ +use my_macro::greet; + +pub fn use_macro() -> &'static str { + greet!() +} diff --git a/test/unit/proc_macro/leaks_deps/lib/b.rs b/test/unit/proc_macro/leaks_deps/lib/b.rs new file mode 100644 index 0000000000..8fd0518ede --- /dev/null +++ b/test/unit/proc_macro/leaks_deps/lib/b.rs @@ -0,0 +1,3 @@ +pub fn hello() -> &'static str { + "hello" +} diff --git a/test/unit/proc_macro/leaks_deps/lib/my_macro.rs b/test/unit/proc_macro/leaks_deps/lib/my_macro.rs new file mode 100644 index 0000000000..f8b6f2a6be --- /dev/null +++ b/test/unit/proc_macro/leaks_deps/lib/my_macro.rs @@ -0,0 +1,7 @@ +use b::hello; +use proc_macro::{Literal, TokenStream, TokenTree}; + +#[proc_macro] +pub fn greet(_item: TokenStream) -> TokenStream { + TokenTree::Literal(Literal::string(hello())).into() +} diff --git a/test/unit/proc_macro/leaks_deps/proc_macro_does_not_leak_deps.bzl b/test/unit/proc_macro/leaks_deps/proc_macro_does_not_leak_deps.bzl index 40c2e485cc..db86506305 100644 --- a/test/unit/proc_macro/leaks_deps/proc_macro_does_not_leak_deps.bzl +++ b/test/unit/proc_macro/leaks_deps/proc_macro_does_not_leak_deps.bzl @@ -1,7 +1,7 @@ """Unittest to verify proc-macro targets""" load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts") -load("//rust:defs.bzl", "rust_proc_macro", "rust_test") +load("//rust:defs.bzl", "rust_library", "rust_proc_macro", "rust_test") def _proc_macro_does_not_leak_deps_impl(ctx): env = analysistest.begin(ctx) @@ -30,8 +30,6 @@ def _proc_macro_does_not_leak_deps_impl(ctx): return analysistest.end(env) -proc_macro_does_not_leak_deps_test = analysistest.make(_proc_macro_does_not_leak_deps_impl) - def _proc_macro_does_not_leak_deps_test(): rust_proc_macro( name = "proc_macro_definition", @@ -68,6 +66,70 @@ def _proc_macro_does_not_leak_deps_test(): target_under_test = ":deps_not_leaked", ) +proc_macro_does_not_leak_deps_test = analysistest.make(_proc_macro_does_not_leak_deps_impl) + +# Tests that a lib_a -> proc_macro -> lib_b does not propagate lib_b to the inputs of lib_a +def _proc_macro_does_not_leak_lib_deps_impl(ctx): + env = analysistest.begin(ctx) + actions = analysistest.target_under_test(env).actions + rustc_actions = [] + for action in actions: + if action.mnemonic == "Rustc" or action.mnemonic == "RustcMetadata": + rustc_actions.append(action) + + # We should have a RustcMetadata and a Rustc action. + asserts.true(env, len(rustc_actions) == 2, "expected 2 actions, got %d" % len(rustc_actions)) + + for rustc_action in rustc_actions: + # lib :a has a dependency on :my_macro via a rust_proc_macro target. + # lib :b (which is a dependency of :my_macro) should not appear in the inputs of :a + b_inputs = [i for i in rustc_action.inputs.to_list() if "libb" in i.path] + b_args = [arg for arg in rustc_action.argv if "libb" in arg] + + asserts.equals(env, 0, len(b_inputs)) + asserts.equals(env, 0, len(b_args)) + + return analysistest.end(env) + +def _proc_macro_does_not_leak_lib_deps_test(): + rust_library( + name = "b", + srcs = ["leaks_deps/lib/b.rs"], + edition = "2018", + ) + + rust_proc_macro( + name = "my_macro", + srcs = ["leaks_deps/lib/my_macro.rs"], + edition = "2018", + deps = [ + ":b", + ], + ) + + rust_library( + name = "a", + srcs = ["leaks_deps/lib/a.rs"], + edition = "2018", + proc_macro_deps = [ + ":my_macro", + ], + ) + + NOT_WINDOWS = select({ + "@platforms//os:linux": [], + "@platforms//os:macos": [], + "//conditions:default": ["@platforms//:incompatible"], + }) + + proc_macro_does_not_leak_lib_deps_test( + name = "proc_macro_does_not_leak_lib_deps_test", + target_under_test = ":a", + target_compatible_with = NOT_WINDOWS, + ) + +proc_macro_does_not_leak_lib_deps_test = analysistest.make(_proc_macro_does_not_leak_lib_deps_impl, config_settings = {"@//rust/settings:pipelined_compilation": True}) + def proc_macro_does_not_leak_deps_test_suite(name): """Entry-point macro called from the BUILD file. @@ -75,10 +137,12 @@ def proc_macro_does_not_leak_deps_test_suite(name): name: Name of the macro. """ _proc_macro_does_not_leak_deps_test() + _proc_macro_does_not_leak_lib_deps_test() native.test_suite( name = name, tests = [ ":proc_macro_does_not_leak_deps_test", + ":proc_macro_does_not_leak_lib_deps_test", ], ) diff --git a/util/process_wrapper/main.rs b/util/process_wrapper/main.rs index a90bf4c3b8..6d985b34af 100644 --- a/util/process_wrapper/main.rs +++ b/util/process_wrapper/main.rs @@ -55,19 +55,6 @@ fn main() { Ok(v) => v, }; - let stderr: Box = if let Some(stderr_file) = opts.stderr_file { - Box::new( - OpenOptions::new() - .create(true) - .truncate(true) - .write(true) - .open(stderr_file) - .expect("process wrapper error: unable to open stderr file"), - ) - } else { - Box::new(io::stderr()) - }; - let mut child = Command::new(opts.executable) .args(opts.child_arguments) .env_clear() @@ -87,25 +74,45 @@ fn main() { .spawn() .expect("process wrapper error: failed to spawn child process"); - let child_stderr = Box::new(child.stderr.take().unwrap()); + let mut stderr: Box = if let Some(stderr_file) = opts.stderr_file { + Box::new( + OpenOptions::new() + .create(true) + .truncate(true) + .write(true) + .open(stderr_file) + .expect("process wrapper error: unable to open stderr file"), + ) + } else { + Box::new(io::stderr()) + }; + + let mut child_stderr = child.stderr.take().unwrap(); let mut was_killed = false; - let result = if !opts.rustc_quit_on_rmeta { - // Process output normally by forwarding stderr - process_output(child_stderr, stderr, LineOutput::Message) - } else { - let format = opts.rustc_output_format; - let mut kill = false; - let result = process_output(child_stderr, stderr, |line| { - rustc::stop_on_rmeta_completion(line, format, &mut kill) + let result = if let Some(format) = opts.rustc_output_format { + let quit_on_rmeta = opts.rustc_quit_on_rmeta; + // Process json rustc output and kill the subprocess when we get a signal + // that we emitted a metadata file. + let mut me = false; + let metadata_emitted = &mut me; + let result = process_output(&mut child_stderr, stderr.as_mut(), move |line| { + if quit_on_rmeta { + rustc::stop_on_rmeta_completion(line, format, metadata_emitted) + } else { + rustc::process_json(line, format) + } }); - if kill { + if me { // If recv returns Ok(), a signal was sent in this channel so we should terminate the child process. // We can safely ignore the Result from kill() as we don't care if the process already terminated. let _ = child.kill(); was_killed = true; } result + } else { + // Process output normally by forwarding stderr + process_output(&mut child_stderr, stderr.as_mut(), LineOutput::Message) }; result.expect("process wrapper error: failed to process stderr"); diff --git a/util/process_wrapper/options.rs b/util/process_wrapper/options.rs index fdd60b4acc..869b5c32b5 100644 --- a/util/process_wrapper/options.rs +++ b/util/process_wrapper/options.rs @@ -44,7 +44,7 @@ pub(crate) struct Options { pub(crate) rustc_quit_on_rmeta: bool, // If rustc_quit_on_rmeta is set to true, this controls the // output format of rustc messages. - pub(crate) rustc_output_format: rustc::ErrorFormat, + pub(crate) rustc_output_format: Option, } pub(crate) fn options() -> Result { @@ -173,8 +173,7 @@ pub(crate) fn options() -> Result { v ))), }) - .transpose()? - .unwrap_or_default(); + .transpose()?; // Prepare the environment variables, unifying those read from files with the ones // of the current process. diff --git a/util/process_wrapper/output.rs b/util/process_wrapper/output.rs index 049090c7fa..84d61d9d75 100644 --- a/util/process_wrapper/output.rs +++ b/util/process_wrapper/output.rs @@ -31,8 +31,8 @@ pub(crate) enum LineOutput { /// Depending on the result of process_line, the modified message may be written /// to write_end. pub(crate) fn process_output( - read_end: Box, - write_end: Box, + read_end: &mut dyn Read, + write_end: &mut dyn Write, mut process_line: F, ) -> io::Result<()> where diff --git a/util/process_wrapper/rustc.rs b/util/process_wrapper/rustc.rs index e5667279b1..ca796806cc 100644 --- a/util/process_wrapper/rustc.rs +++ b/util/process_wrapper/rustc.rs @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::convert::{TryFrom, TryInto}; + use tinyjson::JsonValue; use crate::output::LineOutput; @@ -40,9 +42,46 @@ fn get_key(value: &JsonValue, key: &str) -> Option { } } -/// stop_on_rmeta_completion takes an output line from rustc configured with +#[derive(Debug)] +enum RustcMessage { + Emit(String), + Message(String), +} + +impl TryFrom for RustcMessage { + type Error = (); + fn try_from(val: JsonValue) -> Result { + if let Some(emit) = get_key(&val, "emit") { + return Ok(Self::Emit(emit)); + } + if let Some(rendered) = get_key(&val, "rendered") { + return Ok(Self::Message(rendered)); + } + Err(()) + } +} + +/// process_rustc_json takes an output line from rustc configured with /// --error-format=json, parses the json and returns the appropriate output -/// according to the original --error-format supplied to rustc. +/// according to the original --error-format supplied. +/// Only messages are returned, emits are ignored. +pub(crate) fn process_json(line: String, error_format: ErrorFormat) -> LineOutput { + let parsed: JsonValue = line + .parse() + .expect("process wrapper error: expected json messages in pipeline mode"); + match parsed.try_into() { + Ok(RustcMessage::Message(msg)) => match error_format { + // If the output should be json, we just forward the messages as-is + // using `line`. + ErrorFormat::Json => LineOutput::Message(line), + // Otherwise we return the rendered field. + _ => LineOutput::Message(msg), + }, + _ => LineOutput::Skip, + } +} + +/// stop_on_rmeta_completion parses the json output of rustc in the same way process_rustc_json does. /// In addition, it will signal to stop when metadata is emitted /// so the compiler can be terminated. /// This is used to implement pipelining in rules_rust, please see @@ -55,24 +94,19 @@ pub(crate) fn stop_on_rmeta_completion( let parsed: JsonValue = line .parse() .expect("process wrapper error: expected json messages in pipeline mode"); - if let Some(emit) = get_key(&parsed, "emit") { - // We don't want to print emit messages. - // If the emit messages is "metadata" we can signal the process to quit - return if emit == "metadata" { + + match parsed.try_into() { + Ok(RustcMessage::Emit(emit)) if emit == "metadata" => { *kill = true; LineOutput::Terminate - } else { - LineOutput::Skip - }; - }; - - match error_format { - // If the output should be json, we just forward the messages as-is - ErrorFormat::Json => LineOutput::Message(line), - // Otherwise we extract the "rendered" attribute. - // If we don't find it we skip the line. - _ => get_key(&parsed, "rendered") - .map(LineOutput::Message) - .unwrap_or(LineOutput::Skip), + } + Ok(RustcMessage::Message(msg)) => match error_format { + // If the output should be json, we just forward the messages as-is + // using `line`. + ErrorFormat::Json => LineOutput::Message(line), + // Otherwise we return the rendered field. + _ => LineOutput::Message(msg), + }, + _ => LineOutput::Skip, } } From 6c389346367c3792ceb71a13493722eddacc9bc1 Mon Sep 17 00:00:00 2001 From: Roberto Bampi Date: Fri, 5 Aug 2022 14:47:50 +0200 Subject: [PATCH 09/26] pipelining: add the ability to disable pipelining for a single rule. (#1499) While testing internally we found some non-hermetic libraries have issues with pipelining enabled, adding a per-rule switch allows us to keep the feature generally enabled while disabling problematic targets. --- docs/defs.md | 4 ++- docs/flatten.md | 4 ++- rust/private/rust.bzl | 13 ++++++++-- .../pipelined_compilation_test.bzl | 26 +++++++++++++++++++ 4 files changed, 43 insertions(+), 4 deletions(-) diff --git a/docs/defs.md b/docs/defs.md index 7228d32f66..b0c18982bf 100644 --- a/docs/defs.md +++ b/docs/defs.md @@ -214,7 +214,8 @@ is available under the key `dsym_folder` in `OutputGroupInfo`.
 rust_library(name, aliases, compile_data, crate_features, crate_name, crate_root, data, deps,
-             edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, stamp, version)
+             disable_pipelining, edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags,
+             srcs, stamp, version)
 
Builds a Rust library crate. @@ -294,6 +295,7 @@ INFO: Elapsed time: 1.245s, Critical Path: 1.01s | crate_root | The file that will be passed to rustc to be used for building this crate.

If crate_root is not set, then this rule will look for a lib.rs file (or main.rs for rust_binary) or the single file in srcs if srcs contains only one file. | Label | optional | None | | data | List of files used by this rule at compile time and runtime.

If including data at compile time with include_str!() and similar, prefer compile_data over data, to prevent the data also being included in the runfiles. | List of labels | optional | [] | | deps | List of other libraries to be linked to this library target.

These can be either other rust_library targets or cc_library targets if linking a native library. | List of labels | optional | [] | +| disable_pipelining | Disables pipelining for this rule if it is globally enabled. This will cause this rule to not produce a .rmeta file and all the dependent crates will instead use the .rlib file. | Boolean | optional | False | | edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | | rustc_env | Dictionary of additional "key": "value" environment variables to set for rustc.

rust_test()/rust_binary() rules can use $(rootpath //package:target) to pass in the location of a generated file or external tool. Cargo build scripts that wish to expand locations should use cargo_build_script()'s build_script_env argument instead, as build scripts are run in a different environment - see cargo_build_script()'s documentation for more. | Dictionary: String -> String | optional | {} | diff --git a/docs/flatten.md b/docs/flatten.md index 87af5c50b8..c3324b920c 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -611,7 +611,8 @@ rust_binary(
 rust_library(name, aliases, compile_data, crate_features, crate_name, crate_root, data, deps,
-             edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, stamp, version)
+             disable_pipelining, edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags,
+             srcs, stamp, version)
 
Builds a Rust library crate. @@ -691,6 +692,7 @@ INFO: Elapsed time: 1.245s, Critical Path: 1.01s | crate_root | The file that will be passed to rustc to be used for building this crate.

If crate_root is not set, then this rule will look for a lib.rs file (or main.rs for rust_binary) or the single file in srcs if srcs contains only one file. | Label | optional | None | | data | List of files used by this rule at compile time and runtime.

If including data at compile time with include_str!() and similar, prefer compile_data over data, to prevent the data also being included in the runfiles. | List of labels | optional | [] | | deps | List of other libraries to be linked to this library target.

These can be either other rust_library targets or cc_library targets if linking a native library. | List of labels | optional | [] | +| disable_pipelining | Disables pipelining for this rule if it is globally enabled. This will cause this rule to not produce a .rmeta file and all the dependent crates will instead use the .rlib file. | Boolean | optional | False | | edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | | rustc_env | Dictionary of additional "key": "value" environment variables to set for rustc.

rust_test()/rust_binary() rules can use $(rootpath //package:target) to pass in the location of a generated file or external tool. Cargo build scripts that wish to expand locations should use cargo_build_script()'s build_script_env argument instead, as build scripts are run in a different environment - see cargo_build_script()'s documentation for more. | Dictionary: String -> String | optional | {} | diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index c6361bdfab..25e56bf8ee 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -318,7 +318,7 @@ def _rust_library_common(ctx, crate_type): rust_lib = ctx.actions.declare_file(rust_lib_name) rust_metadata = None - if can_build_metadata(toolchain, ctx, crate_type): + if can_build_metadata(toolchain, ctx, crate_type) and not ctx.attr.disable_pipelining: rust_metadata = ctx.actions.declare_file( paths.replace_extension(rust_lib_name, ".rmeta"), sibling = rust_lib, @@ -764,7 +764,16 @@ _common_providers = [ rust_library = rule( implementation = _rust_library_impl, provides = _common_providers, - attrs = dict(_common_attrs.items()), + attrs = dict(_common_attrs.items() + { + "disable_pipelining": attr.bool( + default = False, + doc = dedent("""\ + Disables pipelining for this rule if it is globally enabled. + This will cause this rule to not produce a `.rmeta` file and all the dependent + crates will instead use the `.rlib` file. + """), + ), + }.items()), fragments = ["cpp"], host_fragments = ["cpp"], toolchains = [ diff --git a/test/unit/pipelined_compilation/pipelined_compilation_test.bzl b/test/unit/pipelined_compilation/pipelined_compilation_test.bzl index 93382c56b9..71f538c9a0 100644 --- a/test/unit/pipelined_compilation/pipelined_compilation_test.bzl +++ b/test/unit/pipelined_compilation/pipelined_compilation_test.bzl @@ -175,6 +175,30 @@ def _rmeta_is_used_when_building_custom_rule_test_impl(ctx): rmeta_is_propagated_through_custom_rule_test = analysistest.make(_rmeta_is_propagated_through_custom_rule_test_impl, attrs = {"generate_metadata": attr.bool()}, config_settings = ENABLE_PIPELINING) rmeta_is_used_when_building_custom_rule_test = analysistest.make(_rmeta_is_used_when_building_custom_rule_test_impl, config_settings = ENABLE_PIPELINING) +def _rmeta_not_produced_if_pipelining_disabled_test_impl(ctx): + env = analysistest.begin(ctx) + tut = analysistest.target_under_test(env) + + rust_action = [act for act in tut.actions if act.mnemonic == "RustcMetadata"] + asserts.true(env, len(rust_action) == 0, "expected no metadata to be produced, but found a metadata action") + + return analysistest.end(env) + +rmeta_not_produced_if_pipelining_disabled_test = analysistest.make(_rmeta_not_produced_if_pipelining_disabled_test_impl, config_settings = ENABLE_PIPELINING) + +def _disable_pipelining_test(): + rust_library( + name = "lib", + srcs = ["custom_rule_test/to_wrap.rs"], + edition = "2021", + disable_pipelining = True, + ) + rmeta_not_produced_if_pipelining_disabled_test( + name = "rmeta_not_produced_if_pipelining_disabled_test", + target_compatible_with = NOT_WINDOWS, + target_under_test = ":lib", + ) + def _custom_rule_test(generate_metadata, suffix): rust_library( name = "to_wrap" + suffix, @@ -215,6 +239,7 @@ def pipelined_compilation_test_suite(name): name: Name of the macro. """ _pipelined_compilation_test() + _disable_pipelining_test() _custom_rule_test(generate_metadata = True, suffix = "_with_metadata") _custom_rule_test(generate_metadata = False, suffix = "_without_metadata") @@ -227,5 +252,6 @@ def pipelined_compilation_test_suite(name): ":rmeta_is_propagated_through_custom_rule_test_without_metadata", ":rmeta_is_used_when_building_custom_rule_test_with_metadata", ":rmeta_is_used_when_building_custom_rule_test_without_metadata", + ":rmeta_not_produced_if_pipelining_disabled_test", ], ) From 4e5fac5980bcc723fb0f70c5625dec3f9738c3fd Mon Sep 17 00:00:00 2001 From: scentini Date: Fri, 5 Aug 2022 13:20:21 +0000 Subject: [PATCH 10/26] Do not pass `--Clink-arg=-l` for libstd and libtest (#1500) Fixes #1374 We skip adding `-Clink-arg=-l...` for libstd and libtest from the standard library, as these two libraries are present both as an `.rlib` and a `.so` format. On linux, Rustc adds a -Bdynamic to the linker command line before the libraries specified with `-Clink-arg`, which leads to us linking against the `.so`s but not putting the corresponding value to the runtime library search paths, which results in a "cannot open shared object file: No such file or directory" error at exectuion time. We can fix this by adding a `-Clink-arg=-Bstatic` on linux, but we don't have that option for macos. The proper solution for this issue would be to remove `libtest-{hash}.so` and `libstd-{hash}.so` from the toolchain. However, it is not enough to change the toolchain's `rust_std_{...}` filegroups here: https://github.com/bazelbuild/rules_rust/blob/a9d5d894ad801002d007b858efd154e503796b9f/rust/private/repository_utils.bzl#L144 because rustc manages to escape the sandbox and still finds them at linking time. We need to modify the repository rules to erase those files completely. This PR should be a good workaround until we get do to the proper thing though. This PR also fixes the following issues for Windows: * get_lib_name() didn't work properly on windows for `libc` * `-Clink-arg` should point to the library name with extension included for windows. --- rust/private/rustc.bzl | 32 +++++++++++++++++----- rust/private/utils.bzl | 5 ++-- test/native_deps/BUILD.bazel | 26 ++++++++++++++++++ test/native_deps/direct.cc | 6 ++++ test/native_deps/direct.h | 4 +++ test/native_deps/main.rs | 3 ++ test/native_deps/transitive.rs | 2 ++ test/native_deps/user.rs | 0 test/unit/native_deps/native_deps_test.bzl | 32 ++++++++++++++-------- 9 files changed, 89 insertions(+), 21 deletions(-) create mode 100644 test/native_deps/BUILD.bazel create mode 100644 test/native_deps/direct.cc create mode 100644 test/native_deps/direct.h create mode 100644 test/native_deps/main.rs create mode 100644 test/native_deps/transitive.rs create mode 100644 test/native_deps/user.rs diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index 0fe072b8e1..97b8a17220 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -425,7 +425,7 @@ def _symlink_for_ambiguous_lib(actions, toolchain, crate_info, lib): # Take the absolute value of hash() since it could be negative. path_hash = abs(hash(lib.path)) - lib_name = get_lib_name(lib) + lib_name = get_lib_name(lib, for_windows = toolchain.os.startswith("windows")) prefix = "lib" extension = ".a" @@ -488,7 +488,7 @@ def _disambiguate_libs(actions, toolchain, crate_info, dep_info, use_pic): if _is_dylib(lib): continue artifact = get_preferred_artifact(lib, use_pic) - name = get_lib_name(artifact) + name = get_lib_name(artifact, for_windows = toolchain.os.startswith("windows")) # On Linux-like platforms, normally library base names start with # `lib`, following the pattern `lib[name].(a|lo)` and we pass @@ -1523,7 +1523,7 @@ def _get_crate_dirname(crate): """ return crate.output.dirname -def _portable_link_flags(lib, use_pic, ambiguous_libs): +def _portable_link_flags(lib, use_pic, ambiguous_libs, for_windows = False): artifact = get_preferred_artifact(lib, use_pic) if ambiguous_libs and artifact.path in ambiguous_libs: artifact = ambiguous_libs[artifact.path] @@ -1544,13 +1544,31 @@ def _portable_link_flags(lib, use_pic, ambiguous_libs): # and adding references to these symlinks in the native section A. # We rely in the behavior of -Clink-arg to put the linker args # at the end of the linker invocation constructed by rustc. + + # We skip adding `-Clink-arg=-l` for libstd and libtest from the standard library, as + # these two libraries are present both as an `.rlib` and a `.so` format. + # On linux, Rustc adds a -Bdynamic to the linker command line before the libraries specified + # with `-Clink-arg`, which leads to us linking against the `.so`s but not putting the + # corresponding value to the runtime library search paths, which results in a + # "cannot open shared object file: No such file or directory" error at exectuion time. + # We can fix this by adding a `-Clink-arg=-Bstatic` on linux, but we don't have that option for + # macos. The proper solution for this issue would be to remove `libtest-{hash}.so` and `libstd-{hash}.so` + # from the toolchain. However, it is not enough to change the toolchain's `rust_std_{...}` filegroups + # here: https://github.com/bazelbuild/rules_rust/blob/a9d5d894ad801002d007b858efd154e503796b9f/rust/private/repository_utils.bzl#L144 + # because rustc manages to escape the sandbox and still finds them at linking time. + # We need to modify the repository rules to erase those files completely. + if "lib/rustlib" in artifact.path and ( + artifact.basename.startswith("libtest-") or artifact.basename.startswith("libstd-") or + artifact.basename.startswith("test-") or artifact.basename.startswith("std-") + ): + return ["-lstatic=%s" % get_lib_name(artifact, for_windows)] return [ - "-lstatic=%s" % get_lib_name(artifact), - "-Clink-arg=-l%s" % get_lib_name(artifact), + "-lstatic=%s" % get_lib_name(artifact, for_windows), + "-Clink-arg=-l%s" % (get_lib_name(artifact) if not for_windows else artifact.basename), ] elif _is_dylib(lib): return [ - "-ldylib=%s" % get_lib_name(artifact), + "-ldylib=%s" % get_lib_name(artifact, for_windows), ] return [] @@ -1562,7 +1580,7 @@ def _make_link_flags_windows(linker_input_and_use_pic_and_ambiguous_libs): if lib.alwayslink: ret.extend(["-C", "link-arg=/WHOLEARCHIVE:%s" % get_preferred_artifact(lib, use_pic).path]) else: - ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs)) + ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs, for_windows = True)) return ret def _make_link_flags_darwin(linker_input_and_use_pic_and_ambiguous_libs): diff --git a/rust/private/utils.bzl b/rust/private/utils.bzl index 633c90a00f..e342b3bef8 100644 --- a/rust/private/utils.bzl +++ b/rust/private/utils.bzl @@ -97,11 +97,12 @@ def _path_parts(path): path_parts = path.split("/") return [part for part in path_parts if part != "."] -def get_lib_name(lib): +def get_lib_name(lib, for_windows = False): """Returns the name of a library artifact, eg. libabc.a -> abc Args: lib (File): A library file + for_windows: Whether we're building on Windows. Returns: str: The name of the library @@ -125,7 +126,7 @@ def get_lib_name(lib): # The library name is now everything minus the extension. libname = ".".join(comps[:-1]) - if libname.startswith("lib"): + if libname.startswith("lib") and not for_windows: return libname[3:] else: return libname diff --git a/test/native_deps/BUILD.bazel b/test/native_deps/BUILD.bazel new file mode 100644 index 0000000000..5c5d57a6da --- /dev/null +++ b/test/native_deps/BUILD.bazel @@ -0,0 +1,26 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", + "rust_test", +) + +rust_library( + name = "transitive", + srcs = ["transitive.rs"], + edition = "2018", +) + +cc_library( + name = "direct", + srcs = ["direct.cc"], + hdrs = ["direct.h"], + deps = ["transitive"], +) + +rust_test( + name = "main", + srcs = ["main.rs"], + edition = "2018", + deps = ["direct"], +) diff --git a/test/native_deps/direct.cc b/test/native_deps/direct.cc new file mode 100644 index 0000000000..a809ae8340 --- /dev/null +++ b/test/native_deps/direct.cc @@ -0,0 +1,6 @@ +#include "direct.h" + +RustStruct MakeRustStruct() { + RustStruct result; + return result; +} diff --git a/test/native_deps/direct.h b/test/native_deps/direct.h new file mode 100644 index 0000000000..f4f4b92397 --- /dev/null +++ b/test/native_deps/direct.h @@ -0,0 +1,4 @@ +struct RustStruct{}; + +extern "C" RustStruct MakeRustStruct(); + diff --git a/test/native_deps/main.rs b/test/native_deps/main.rs new file mode 100644 index 0000000000..103d3744b8 --- /dev/null +++ b/test/native_deps/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Done!"); +} diff --git a/test/native_deps/transitive.rs b/test/native_deps/transitive.rs new file mode 100644 index 0000000000..987bc30e0d --- /dev/null +++ b/test/native_deps/transitive.rs @@ -0,0 +1,2 @@ +#[repr(C)] +pub struct RustStruct {} diff --git a/test/native_deps/user.rs b/test/native_deps/user.rs new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/unit/native_deps/native_deps_test.bzl b/test/unit/native_deps/native_deps_test.bzl index d066c80158..43b1c07539 100644 --- a/test/unit/native_deps/native_deps_test.bzl +++ b/test/unit/native_deps/native_deps_test.bzl @@ -30,7 +30,8 @@ def _cdylib_has_native_libs_test_impl(ctx): assert_argv_contains_prefix_suffix(env, action, "-Lnative=", "/native_deps") assert_argv_contains(env, action, "--crate-type=cdylib") assert_argv_contains(env, action, "-lstatic=native_dep") - assert_argv_contains(env, action, "-Clink-arg=-lnative_dep") + native_link_arg = "-Clink-arg=-lnative_dep.lib" if ctx.target_platform_has_constraint(ctx.attr._windows_constraint[platform_common.ConstraintValueInfo]) else "-Clink-arg=-lnative_dep" + assert_argv_contains(env, action, native_link_arg) assert_argv_contains_prefix(env, action, "--codegen=linker=") return analysistest.end(env) @@ -41,22 +42,20 @@ def _staticlib_has_native_libs_test_impl(ctx): assert_argv_contains_prefix_suffix(env, action, "-Lnative=", "/native_deps") assert_argv_contains(env, action, "--crate-type=staticlib") assert_argv_contains(env, action, "-lstatic=native_dep") - assert_argv_contains(env, action, "-Clink-arg=-lnative_dep") + native_link_arg = "-Clink-arg=-lnative_dep.lib" if ctx.target_platform_has_constraint(ctx.attr._windows_constraint[platform_common.ConstraintValueInfo]) else "-Clink-arg=-lnative_dep" + assert_argv_contains(env, action, native_link_arg) assert_argv_contains_prefix(env, action, "--codegen=linker=") return analysistest.end(env) def _proc_macro_has_native_libs_test_impl(ctx): env = analysistest.begin(ctx) tut = analysistest.target_under_test(env) - if ctx.configuration.coverage_enabled: - asserts.equals(env, 2, len(tut.actions)) - else: - asserts.equals(env, 1, len(tut.actions)) action = tut.actions[0] assert_argv_contains_prefix_suffix(env, action, "-Lnative=", "/native_deps") assert_argv_contains(env, action, "--crate-type=proc-macro") assert_argv_contains(env, action, "-lstatic=native_dep") - assert_argv_contains(env, action, "-Clink-arg=-lnative_dep") + native_link_arg = "-Clink-arg=-lnative_dep.lib" if ctx.target_platform_has_constraint(ctx.attr._windows_constraint[platform_common.ConstraintValueInfo]) else "-Clink-arg=-lnative_dep" + assert_argv_contains(env, action, native_link_arg) assert_argv_contains_prefix(env, action, "--codegen=linker=") return analysistest.end(env) @@ -66,7 +65,8 @@ def _bin_has_native_libs_test_impl(ctx): action = tut.actions[0] assert_argv_contains_prefix_suffix(env, action, "-Lnative=", "/native_deps") assert_argv_contains(env, action, "-lstatic=native_dep") - assert_argv_contains(env, action, "-Clink-arg=-lnative_dep") + native_link_arg = "-Clink-arg=-lnative_dep.lib" if ctx.target_platform_has_constraint(ctx.attr._windows_constraint[platform_common.ConstraintValueInfo]) else "-Clink-arg=-lnative_dep" + assert_argv_contains(env, action, native_link_arg) assert_argv_contains_prefix(env, action, "--codegen=linker=") return analysistest.end(env) @@ -143,10 +143,18 @@ def _cdylib_has_native_dep_and_alwayslink_test_impl(ctx): return analysistest.end(env) rlib_has_no_native_libs_test = analysistest.make(_rlib_has_no_native_libs_test_impl) -staticlib_has_native_libs_test = analysistest.make(_staticlib_has_native_libs_test_impl) -cdylib_has_native_libs_test = analysistest.make(_cdylib_has_native_libs_test_impl) -proc_macro_has_native_libs_test = analysistest.make(_proc_macro_has_native_libs_test_impl) -bin_has_native_libs_test = analysistest.make(_bin_has_native_libs_test_impl) +staticlib_has_native_libs_test = analysistest.make(_staticlib_has_native_libs_test_impl, attrs = { + "_windows_constraint": attr.label(default = Label("@platforms//os:windows")), +}) +cdylib_has_native_libs_test = analysistest.make(_cdylib_has_native_libs_test_impl, attrs = { + "_windows_constraint": attr.label(default = Label("@platforms//os:windows")), +}) +proc_macro_has_native_libs_test = analysistest.make(_proc_macro_has_native_libs_test_impl, attrs = { + "_windows_constraint": attr.label(default = Label("@platforms//os:windows")), +}) +bin_has_native_libs_test = analysistest.make(_bin_has_native_libs_test_impl, attrs = { + "_windows_constraint": attr.label(default = Label("@platforms//os:windows")), +}) bin_has_native_dep_and_alwayslink_test = analysistest.make(_bin_has_native_dep_and_alwayslink_test_impl, attrs = { "_macos_constraint": attr.label(default = Label("@platforms//os:macos")), "_windows_constraint": attr.label(default = Label("@platforms//os:windows")), From 76360dd354fecf167b415b9acf89cd95254b47b1 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 8 Aug 2022 05:17:53 -0700 Subject: [PATCH 11/26] Implement rules archive release artifact in github action. (#1501) * Implement rules archive release artifact in github action. * Remove distro package and dependencies --- .github/workflows/release.yaml | 5 +-- BUILD.bazel | 19 ----------- WORKSPACE.bazel | 13 -------- bindgen/3rdparty/BUILD.bazel | 12 ------- bindgen/BUILD.bazel | 9 ----- cargo/BUILD.bazel | 11 ------- cargo/bootstrap/BUILD.bazel | 9 ----- cargo/cargo_build_script_runner/BUILD.bazel | 8 ----- cargo/private/BUILD.bazel | 8 ----- crate_universe/3rdparty/BUILD.bazel | 12 ------- crate_universe/BUILD.bazel | 15 --------- crate_universe/private/BUILD.bazel | 8 ----- crate_universe/private/vendor/BUILD.bazel | 8 ----- crate_universe/tools/BUILD.bazel | 10 ------ .../tools/cross_installer/BUILD.bazel | 12 ------- .../tools/urls_generator/BUILD.bazel | 11 ------- distro/BUILD.bazel | 33 ------------------- distro/publisher.sh | 10 ------ proto/3rdparty/BUILD.bazel | 13 -------- proto/3rdparty/patches/BUILD.bazel | 11 ------- proto/BUILD.bazel | 13 -------- proto/raze/BUILD.bazel | 6 ---- rust/BUILD.bazel | 13 -------- rust/platform/BUILD.bazel | 11 ------- rust/platform/channel/BUILD.bazel | 8 ----- rust/platform/cpu/BUILD.bazel | 8 ----- rust/platform/os/BUILD.bazel | 8 ----- rust/private/BUILD.bazel | 9 ----- rust/private/dummy_cc_toolchain/BUILD.bazel | 8 ----- rust/rust_analyzer/BUILD.bazel | 8 ----- rust/settings/BUILD.bazel | 8 ----- rust/toolchain/BUILD.bazel | 8 ----- tools/BUILD.bazel | 13 -------- .../function_transition_allowlist/BUILD.bazel | 8 ----- tools/clippy/BUILD.bazel | 9 ----- tools/runfiles/BUILD.bazel | 11 ------- tools/rust_analyzer/3rdparty/BUILD.bazel | 12 ------- tools/rust_analyzer/BUILD.bazel | 12 ------- tools/rustdoc/BUILD.bazel | 10 ------ tools/rustfmt/BUILD.bazel | 12 ------- util/BUILD.bazel | 16 --------- util/dir_zipper/BUILD.bazel | 8 ----- util/import/3rdparty/BUILD.bazel | 12 ------- util/import/BUILD.bazel | 13 -------- util/label/BUILD.bazel | 10 ------ util/process_wrapper/BUILD.bazel | 10 ------ wasm_bindgen/3rdparty/BUILD.bazel | 12 ------- wasm_bindgen/BUILD.bazel | 9 ----- 48 files changed, 3 insertions(+), 519 deletions(-) delete mode 100644 distro/BUILD.bazel delete mode 100755 distro/publisher.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 715df0c8d8..bd4dbab9c6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -116,8 +116,9 @@ jobs: run: | # Update urls and sha256 values bazel ${BAZEL_STARTUP_FLAGS[@]} run //crate_universe/tools/urls_generator -- --artifacts-dir="${ARTIFACTS_DIR}" --url-prefix="${URL_PREFIX}" - # Publish to a known location - bazel ${BAZEL_STARTUP_FLAGS[@]} run //distro:publish -- ${{ github.workspace }}/.github + bazel clean + # Build an archive of the repo contents + tar -czf ${{ github.workspace }}/.github/rules_rust.tar.gz --exclude=".git" --exclude=".github" --exclude="examples" -C ${{ github.workspace }} . # Save the sha256 checksum of the distro archive to the environment sha256="$(shasum --algorithm 256 ${{ github.workspace }}/.github/rules_rust.tar.gz | awk '{ print $1 }')" echo "ARCHIVE_SHA256=${sha256}" >> $GITHUB_ENV diff --git a/BUILD.bazel b/BUILD.bazel index d4cbb9ad3a..69e43c7e91 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -11,25 +11,6 @@ bzl_library( visibility = ["//visibility:public"], ) -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "//bindgen:distro", - "//cargo:distro", - "//crate_universe:distro", - "//proto:distro", - "//rust:distro", - "//tools:distro", - "//util:distro", - "//wasm_bindgen:distro", - "BUILD.bazel", - "README.md", - "LICENSE.txt", - "WORKSPACE.bazel", - ], - visibility = ["//:__subpackages__"], -) - # This setting may be changed from the command line to generate machine readable errors. error_format( name = "error_format", diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 2bc17bab17..6c3f8511c9 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -59,16 +59,3 @@ http_archive( # # load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig") # rbe_preconfig(name = "buildkite_config", toolchain = "ubuntu1604-bazel-java8") - -http_archive( - name = "rules_pkg", - sha256 = "62eeb544ff1ef41d786e329e1536c1d541bb9bcad27ae984d57f18f314018e66", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz", - "https://github.com/bazelbuild/rules_pkg/releases/download/0.6.0/rules_pkg-0.6.0.tar.gz", - ], -) - -load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") - -rules_pkg_dependencies() diff --git a/bindgen/3rdparty/BUILD.bazel b/bindgen/3rdparty/BUILD.bazel index 7e169ee4bc..2317ac943c 100644 --- a/bindgen/3rdparty/BUILD.bazel +++ b/bindgen/3rdparty/BUILD.bazel @@ -50,15 +50,3 @@ bzl_library( ], visibility = ["//bindgen:__pkg__"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.bazel", - ]) + [ - "//bindgen/3rdparty/crates:srcs", - "Cargo.Bazel.lock", - ], - visibility = ["//bindgen:__pkg__"], -) diff --git a/bindgen/BUILD.bazel b/bindgen/BUILD.bazel index c0872afc4d..bb93162cb6 100644 --- a/bindgen/BUILD.bazel +++ b/bindgen/BUILD.bazel @@ -23,15 +23,6 @@ bzl_library( ], ) -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "//bindgen/3rdparty:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) - rust_bindgen_toolchain( name = "default_bindgen_toolchain_impl", bindgen = "//bindgen/3rdparty:bindgen", diff --git a/cargo/BUILD.bazel b/cargo/BUILD.bazel index 181219b33c..6c21ee13f9 100644 --- a/cargo/BUILD.bazel +++ b/cargo/BUILD.bazel @@ -7,14 +7,3 @@ bzl_library( srcs = glob(["**/*.bzl"]), deps = ["//cargo/private:bzl_lib"], ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "//cargo/bootstrap:distro", - "//cargo/cargo_build_script_runner:distro", - "//cargo/private:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/cargo/bootstrap/BUILD.bazel b/cargo/bootstrap/BUILD.bazel index 3a7d242726..4d804ccc98 100644 --- a/cargo/bootstrap/BUILD.bazel +++ b/cargo/bootstrap/BUILD.bazel @@ -19,12 +19,3 @@ rust_binary( "RULES_RUST_CARGO_BOOTSTRAP_BINARY": "$(rootpath bootstrap_installer.rs)", }, ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - "bootstrap_installer.rs", - ], - visibility = ["//:__subpackages__"], -) diff --git a/cargo/cargo_build_script_runner/BUILD.bazel b/cargo/cargo_build_script_runner/BUILD.bazel index bf72b2a97b..81e32562c1 100644 --- a/cargo/cargo_build_script_runner/BUILD.bazel +++ b/cargo/cargo_build_script_runner/BUILD.bazel @@ -26,11 +26,3 @@ rust_test( edition = "2018", deps = [":cargo_build_script_runner"], ) - -filegroup( - name = "distro", - srcs = glob(["*.rs"]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/cargo/private/BUILD.bazel b/cargo/private/BUILD.bazel index b81e3a1ab3..6a1aab653c 100644 --- a/cargo/private/BUILD.bazel +++ b/cargo/private/BUILD.bazel @@ -5,11 +5,3 @@ bzl_library( srcs = glob(["**/*.bzl"]), visibility = ["//:__subpackages__"], ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/crate_universe/3rdparty/BUILD.bazel b/crate_universe/3rdparty/BUILD.bazel index fc021f38b1..bec71cd310 100644 --- a/crate_universe/3rdparty/BUILD.bazel +++ b/crate_universe/3rdparty/BUILD.bazel @@ -35,18 +35,6 @@ crates_vendor( vendor_path = "crates", ) -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.bazel", - ]) + [ - "Cargo.Bazel.lock", - "cargo-bazel-lock.json", - "//crate_universe/3rdparty/crates:srcs", - ], -) - filegroup( name = "bzl_srcs", srcs = glob(["*.bzl"]) + [ diff --git a/crate_universe/BUILD.bazel b/crate_universe/BUILD.bazel index 10ad57c7b7..a99a90cd70 100644 --- a/crate_universe/BUILD.bazel +++ b/crate_universe/BUILD.bazel @@ -13,21 +13,6 @@ exports_files( visibility = ["//visibility:public"], ) -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - ":rust_srcs", - "//crate_universe/3rdparty:distro", - "//crate_universe/private:distro", - "//crate_universe/tools:distro", - "BUILD.bazel", - "Cargo.lock", - "Cargo.toml", - "README.md", - ], - visibility = ["//:__subpackages__"], -) - filegroup( name = "bzl_srcs", srcs = glob(["*.bzl"]) + [ diff --git a/crate_universe/private/BUILD.bazel b/crate_universe/private/BUILD.bazel index 39f0969bcb..0b41b53976 100644 --- a/crate_universe/private/BUILD.bazel +++ b/crate_universe/private/BUILD.bazel @@ -14,11 +14,3 @@ filegroup( name = "bzl_srcs", srcs = glob(["*.bzl"]), ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - "//crate_universe/private/vendor:distro", - ], -) diff --git a/crate_universe/private/vendor/BUILD.bazel b/crate_universe/private/vendor/BUILD.bazel index 3c023872d2..04726cd4b6 100644 --- a/crate_universe/private/vendor/BUILD.bazel +++ b/crate_universe/private/vendor/BUILD.bazel @@ -1,11 +1,3 @@ load("//crate_universe/private:vendor_utils.bzl", "crates_vendor_deps_targets") crates_vendor_deps_targets() - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - ], - visibility = ["//crate_universe/private:__subpackages__"], -) diff --git a/crate_universe/tools/BUILD.bazel b/crate_universe/tools/BUILD.bazel index 05367947d1..1677d9e7ea 100644 --- a/crate_universe/tools/BUILD.bazel +++ b/crate_universe/tools/BUILD.bazel @@ -1,13 +1,3 @@ -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - "//crate_universe/tools/cross_installer:distro", - "//crate_universe/tools/urls_generator:distro", - ], - visibility = ["//crate_universe:__subpackages__"], -) - filegroup( name = "bzl_srcs", srcs = [ diff --git a/crate_universe/tools/cross_installer/BUILD.bazel b/crate_universe/tools/cross_installer/BUILD.bazel index eb96aee145..d436f8a83e 100644 --- a/crate_universe/tools/cross_installer/BUILD.bazel +++ b/crate_universe/tools/cross_installer/BUILD.bazel @@ -28,18 +28,6 @@ rust_binary( cross_binary(name = "cross") -filegroup( - name = "distro", - srcs = glob([ - "**/*.rs", - "**/*.toml", - ]) + [ - "BUILD.bazel", - "cross_installer_deps.bzl", - ], - visibility = ["//crate_universe/tools:__pkg__"], -) - filegroup( name = "bzl_srcs", srcs = glob(["**/*.bzl"]), diff --git a/crate_universe/tools/urls_generator/BUILD.bazel b/crate_universe/tools/urls_generator/BUILD.bazel index 442301138e..2d536d9376 100644 --- a/crate_universe/tools/urls_generator/BUILD.bazel +++ b/crate_universe/tools/urls_generator/BUILD.bazel @@ -6,17 +6,6 @@ exports_files( visibility = ["//visibility:public"], ) -filegroup( - name = "distro", - srcs = glob([ - "**/*.rs", - ]) + [ - "BUILD.bazel", - "Cargo.toml", - ], - visibility = ["//crate_universe/tools:__pkg__"], -) - rust_binary( name = "urls_generator", srcs = glob(["src/**/*.rs"]), diff --git a/distro/BUILD.bazel b/distro/BUILD.bazel deleted file mode 100644 index 777446cb9e..0000000000 --- a/distro/BUILD.bazel +++ /dev/null @@ -1,33 +0,0 @@ -load("@rules_pkg//:pkg.bzl", "pkg_tar") - -pkg_tar( - name = "rules_rust", - srcs = ["//:distro"], - extension = "tar.gz", - mode = "0444", - # Make it owned by root so it does not have the uid of the CI robot. - owner = "0.0", - package_dir = ".", - strip_prefix = ".", - visibility = ["//:__subpackages__"], -) - -# This filegroup allows the tar file to appear in runfiles -# https://github.com/bazelbuild/bazel/issues/12348 -filegroup( - name = "distro", - srcs = [":rules_rust"], - visibility = ["//:__subpackages__"], -) - -sh_binary( - name = "publish", - srcs = ["publisher.sh"], - data = [":distro"], - env = {"ARCHIVE": "$(rootpath :distro)"}, - target_compatible_with = select({ - "@platforms//os:linux": [], - "@platforms//os:macos": [], - "//conditions:default": ["@platforms//:incompatible"], - }), -) diff --git a/distro/publisher.sh b/distro/publisher.sh deleted file mode 100755 index 5f6a01e09a..0000000000 --- a/distro/publisher.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -ABS_ARCHIVE="$(pwd)/${ARCHIVE}" -cd "${BUILD_WORKING_DIRECTORY}" -mkdir -p "$@" - -set -x -cp -fp "${ABS_ARCHIVE}" "$@"/"$(basename "${ARCHIVE}")" diff --git a/proto/3rdparty/BUILD.bazel b/proto/3rdparty/BUILD.bazel index 4bbcd71923..cb1e2a7a18 100644 --- a/proto/3rdparty/BUILD.bazel +++ b/proto/3rdparty/BUILD.bazel @@ -65,16 +65,3 @@ bzl_library( ], visibility = ["//proto:__pkg__"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.bazel", - ]) + [ - "//proto/3rdparty/patches:distro", - "//proto/3rdparty/crates:srcs", - "Cargo.Bazel.lock", - ], - visibility = ["//proto:__pkg__"], -) diff --git a/proto/3rdparty/patches/BUILD.bazel b/proto/3rdparty/patches/BUILD.bazel index d1eb637acd..fb662c8632 100644 --- a/proto/3rdparty/patches/BUILD.bazel +++ b/proto/3rdparty/patches/BUILD.bazel @@ -3,14 +3,3 @@ package(default_visibility = ["//visibility:public"]) exports_files([ "com_google_protobuf-v3.10.0-bzl_visibility.patch", ]) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - "README.md", - ] + glob([ - "*.patch", - ]), - visibility = ["//:__subpackages__"], -) diff --git a/proto/BUILD.bazel b/proto/BUILD.bazel index 3a33024e77..298c61511b 100644 --- a/proto/BUILD.bazel +++ b/proto/BUILD.bazel @@ -14,19 +14,6 @@ alias( actual = "//proto/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc", ) -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.rs", - ]) + [ - "//proto/raze:distro", - "//proto/3rdparty:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) - toolchain_type( name = "toolchain_type", ) diff --git a/proto/raze/BUILD.bazel b/proto/raze/BUILD.bazel index 65ae167f47..42a33d1adc 100644 --- a/proto/raze/BUILD.bazel +++ b/proto/raze/BUILD.bazel @@ -63,9 +63,3 @@ alias( "manual", ], ) - -filegroup( - name = "distro", - srcs = ["BUILD.bazel"], - visibility = ["//proto:__pkg__"], -) diff --git a/rust/BUILD.bazel b/rust/BUILD.bazel index f9c736834f..f4edbd8b61 100644 --- a/rust/BUILD.bazel +++ b/rust/BUILD.bazel @@ -29,16 +29,3 @@ bzl_library( "//rust/settings:bzl_lib", ], ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "//rust/platform:distro", - "//rust/private:distro", - "//rust/settings:distro", - "//rust/rust_analyzer:distro", - "//rust/toolchain:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/platform/BUILD.bazel b/rust/platform/BUILD.bazel index 79dd9d6592..56ed34620b 100644 --- a/rust/platform/BUILD.bazel +++ b/rust/platform/BUILD.bazel @@ -17,14 +17,3 @@ bzl_library( srcs = glob(["**/*.bzl"]), visibility = ["//rust:__subpackages__"], ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "//rust/platform/channel:distro", - "//rust/platform/cpu:distro", - "//rust/platform/os:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/platform/channel/BUILD.bazel b/rust/platform/channel/BUILD.bazel index d097d42810..84fc8c7a91 100644 --- a/rust/platform/channel/BUILD.bazel +++ b/rust/platform/channel/BUILD.bazel @@ -20,11 +20,3 @@ constraint_value( name = "stable", constraint_setting = ":channel", ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/platform/cpu/BUILD.bazel b/rust/platform/cpu/BUILD.bazel index 36e026a817..476f8cf392 100644 --- a/rust/platform/cpu/BUILD.bazel +++ b/rust/platform/cpu/BUILD.bazel @@ -3,11 +3,3 @@ constraint_value( constraint_setting = "@platforms//cpu", visibility = ["//visibility:public"], ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/platform/os/BUILD.bazel b/rust/platform/os/BUILD.bazel index 5c2d48a8f2..7692abe696 100644 --- a/rust/platform/os/BUILD.bazel +++ b/rust/platform/os/BUILD.bazel @@ -9,11 +9,3 @@ constraint_value( constraint_setting = "@platforms//os", visibility = ["//visibility:public"], ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/private/BUILD.bazel b/rust/private/BUILD.bazel index 40f4a69b1b..d175b28e53 100644 --- a/rust/private/BUILD.bazel +++ b/rust/private/BUILD.bazel @@ -10,15 +10,6 @@ bzl_library( deps = ["//rust/platform:bzl_lib"], ) -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "//rust/private/dummy_cc_toolchain:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) - stamp_build_setting(name = "stamp") rust_analyzer_detect_sysroot( diff --git a/rust/private/dummy_cc_toolchain/BUILD.bazel b/rust/private/dummy_cc_toolchain/BUILD.bazel index 140c8f201b..004d233a74 100644 --- a/rust/private/dummy_cc_toolchain/BUILD.bazel +++ b/rust/private/dummy_cc_toolchain/BUILD.bazel @@ -11,11 +11,3 @@ toolchain( toolchain = ":dummy_cc_wasm32", toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/rust_analyzer/BUILD.bazel b/rust/rust_analyzer/BUILD.bazel index 2b9f2bf970..04e6c60d79 100644 --- a/rust/rust_analyzer/BUILD.bazel +++ b/rust/rust_analyzer/BUILD.bazel @@ -3,11 +3,3 @@ package(default_visibility = ["//visibility:public"]) toolchain_type( name = "toolchain_type", ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/settings/BUILD.bazel b/rust/settings/BUILD.bazel index c5928a15d5..ffdba06ff6 100644 --- a/rust/settings/BUILD.bazel +++ b/rust/settings/BUILD.bazel @@ -41,11 +41,3 @@ bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), ) - -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/rust/toolchain/BUILD.bazel b/rust/toolchain/BUILD.bazel index debac4093a..766f1e5eeb 100644 --- a/rust/toolchain/BUILD.bazel +++ b/rust/toolchain/BUILD.bazel @@ -40,11 +40,3 @@ toolchain_files( current_rust_toolchain( name = "current_rust_toolchain", ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index f25df3c240..e69de29bb2 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -1,13 +0,0 @@ -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - "//tools/allowlists/function_transition_allowlist:distro", - "//tools/clippy:distro", - "//tools/runfiles:distro", - "//tools/rust_analyzer:distro", - "//tools/rustdoc:distro", - "//tools/rustfmt:distro", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/allowlists/function_transition_allowlist/BUILD.bazel b/tools/allowlists/function_transition_allowlist/BUILD.bazel index e4906158c1..9fdee4b1f6 100644 --- a/tools/allowlists/function_transition_allowlist/BUILD.bazel +++ b/tools/allowlists/function_transition_allowlist/BUILD.bazel @@ -2,11 +2,3 @@ package_group( name = "function_transition_allowlist", packages = ["//..."], ) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/clippy/BUILD.bazel b/tools/clippy/BUILD.bazel index fb386e3241..09e246fd35 100644 --- a/tools/clippy/BUILD.bazel +++ b/tools/clippy/BUILD.bazel @@ -1,10 +1 @@ exports_files(["clippy.toml"]) - -filegroup( - name = "distro", - srcs = [ - "BUILD.bazel", - "clippy.toml", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/runfiles/BUILD.bazel b/tools/runfiles/BUILD.bazel index 6e7b80290e..aa3414d8dd 100644 --- a/tools/runfiles/BUILD.bazel +++ b/tools/runfiles/BUILD.bazel @@ -22,14 +22,3 @@ rust_doc_test( name = "runfiles_doc_test", crate = ":runfiles", ) - -filegroup( - name = "distro", - srcs = glob([ - "data/**", - "**/*.rs", - ]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/rust_analyzer/3rdparty/BUILD.bazel b/tools/rust_analyzer/3rdparty/BUILD.bazel index 37f4b18844..b642169164 100644 --- a/tools/rust_analyzer/3rdparty/BUILD.bazel +++ b/tools/rust_analyzer/3rdparty/BUILD.bazel @@ -45,15 +45,3 @@ bzl_library( ], visibility = ["//tools/rust_analyzer:__pkg__"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.bazel", - ]) + [ - "Cargo.Bazel.lock", - "//tools/rust_analyzer/3rdparty/crates:srcs", - ], - visibility = ["//tools/rust_analyzer:__pkg__"], -) diff --git a/tools/rust_analyzer/BUILD.bazel b/tools/rust_analyzer/BUILD.bazel index 5de795c85a..54f5436348 100644 --- a/tools/rust_analyzer/BUILD.bazel +++ b/tools/rust_analyzer/BUILD.bazel @@ -62,15 +62,3 @@ bzl_library( visibility = ["//visibility:public"], deps = ["//tools/rust_analyzer/3rdparty:bzl_lib"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "**/*.rs", - ]) + [ - "//tools/rust_analyzer/3rdparty:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/rustdoc/BUILD.bazel b/tools/rustdoc/BUILD.bazel index 7a79e44235..f94175906a 100644 --- a/tools/rustdoc/BUILD.bazel +++ b/tools/rustdoc/BUILD.bazel @@ -10,13 +10,3 @@ rust_binary( "//tools/runfiles", ], ) - -filegroup( - name = "distro", - srcs = glob([ - "**/*.rs", - ]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/tools/rustfmt/BUILD.bazel b/tools/rustfmt/BUILD.bazel index ee1631a359..1721301553 100644 --- a/tools/rustfmt/BUILD.bazel +++ b/tools/rustfmt/BUILD.bazel @@ -76,15 +76,3 @@ rust_clippy( ":rustfmt", ], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "**/*.rs", - ]) + [ - "rustfmt.toml", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/util/BUILD.bazel b/util/BUILD.bazel index 8e43dea7e5..8502870be2 100644 --- a/util/BUILD.bazel +++ b/util/BUILD.bazel @@ -9,19 +9,3 @@ filegroup( srcs = ["collect_coverage.sh"], visibility = ["//visibility:public"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.txt", - ]) + [ - "BUILD.bazel", - "fetch_shas.sh", - ":collect_coverage", - "//util/dir_zipper:distro", - "//util/import:distro", - "//util/label:distro", - "//util/process_wrapper:distro", - ], - visibility = ["//:__subpackages__"], -) diff --git a/util/dir_zipper/BUILD.bazel b/util/dir_zipper/BUILD.bazel index 17b2251a56..43ab79e6ec 100644 --- a/util/dir_zipper/BUILD.bazel +++ b/util/dir_zipper/BUILD.bazel @@ -6,11 +6,3 @@ rust_binary( edition = "2018", visibility = ["//visibility:public"], ) - -filegroup( - name = "distro", - srcs = glob(["*.rs"]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/util/import/3rdparty/BUILD.bazel b/util/import/3rdparty/BUILD.bazel index 1a41d86e15..cb29b200b9 100644 --- a/util/import/3rdparty/BUILD.bazel +++ b/util/import/3rdparty/BUILD.bazel @@ -38,15 +38,3 @@ bzl_library( ], visibility = ["//util/import:__pkg__"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.bazel", - ]) + [ - "//util/import/3rdparty/crates:srcs", - "Cargo.Bazel.lock", - ], - visibility = ["//util/import:__pkg__"], -) diff --git a/util/import/BUILD.bazel b/util/import/BUILD.bazel index d2290bc773..898a82ffda 100644 --- a/util/import/BUILD.bazel +++ b/util/import/BUILD.bazel @@ -75,16 +75,3 @@ cc_binary( name = "fake_import_macro_impl", srcs = ["fake_import_macro_impl.cc"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "**/*.rs", - "**/*.cc", - ]) + [ - "//util/import/3rdparty:distro", - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/util/label/BUILD.bazel b/util/label/BUILD.bazel index 46f60dbf78..405006d9b8 100644 --- a/util/label/BUILD.bazel +++ b/util/label/BUILD.bazel @@ -14,13 +14,3 @@ rust_test( name = "label_test", crate = ":label", ) - -filegroup( - name = "distro", - srcs = glob([ - "**/*.rs", - ]) + [ - "BUILD.bazel", - ], - visibility = ["//:__subpackages__"], -) diff --git a/util/process_wrapper/BUILD.bazel b/util/process_wrapper/BUILD.bazel index 67c7119d3e..c5276dd9cb 100644 --- a/util/process_wrapper/BUILD.bazel +++ b/util/process_wrapper/BUILD.bazel @@ -18,13 +18,3 @@ rust_test( crate = ":process_wrapper", edition = "2018", ) - -filegroup( - name = "distro", - srcs = glob([ - "**/*.bazel", - "**/*.cc", - "**/*.rs", - ]), - visibility = ["//:__subpackages__"], -) diff --git a/wasm_bindgen/3rdparty/BUILD.bazel b/wasm_bindgen/3rdparty/BUILD.bazel index e23fe874c4..16a627f79e 100644 --- a/wasm_bindgen/3rdparty/BUILD.bazel +++ b/wasm_bindgen/3rdparty/BUILD.bazel @@ -81,15 +81,3 @@ bzl_library( ], visibility = ["//wasm_bindgen:__pkg__"], ) - -filegroup( - name = "distro", - srcs = glob([ - "*.bzl", - "*.bazel", - ]) + [ - "//wasm_bindgen/3rdparty/crates:srcs", - "Cargo.Bazel.lock", - ], - visibility = ["//wasm_bindgen:__pkg__"], -) diff --git a/wasm_bindgen/BUILD.bazel b/wasm_bindgen/BUILD.bazel index 4ad36b0ced..1c5dadeda5 100644 --- a/wasm_bindgen/BUILD.bazel +++ b/wasm_bindgen/BUILD.bazel @@ -23,15 +23,6 @@ bzl_library( ], ) -filegroup( - name = "distro", - srcs = glob(["*.bzl"]) + [ - "BUILD.bazel", - "//wasm_bindgen/3rdparty:distro", - ], - visibility = ["//:__subpackages__"], -) - rust_wasm_bindgen_toolchain( name = "default_wasm_bindgen_toolchain_impl", bindgen = "@rules_rust//wasm_bindgen/3rdparty:wasm_bindgen_cli", From 9b61b49934d6aca650614a4115cb80e4a20f4970 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 8 Aug 2022 08:06:34 -0700 Subject: [PATCH 12/26] Promoted crate_universe to non-experimental (#1504) * Promoted crate_universe to non-experimental * Regenerate documentation * Update docs/index.md Co-authored-by: Krasimir Georgiev Co-authored-by: Krasimir Georgiev --- crate_universe/docs.bzl | 4 ---- docs/crate_universe.md | 4 ---- docs/index.md | 5 ++--- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/crate_universe/docs.bzl b/crate_universe/docs.bzl index 11ab9211be..fe5ef83905 100644 --- a/crate_universe/docs.bzl +++ b/crate_universe/docs.bzl @@ -2,10 +2,6 @@ Crate Universe is a set of Bazel rule for generating Rust targets using Cargo. -## Experimental - -`crate_universe` is experimental, and may have breaking API changes at any time. These instructions may also change without notice. - ## Setup After loading `rules_rust` in your workspace, set the following to begin using `crate_universe`: diff --git a/docs/crate_universe.md b/docs/crate_universe.md index bfb431612a..3964457bb4 100644 --- a/docs/crate_universe.md +++ b/docs/crate_universe.md @@ -4,10 +4,6 @@ Crate Universe is a set of Bazel rule for generating Rust targets using Cargo. -## Experimental - -`crate_universe` is experimental, and may have breaking API changes at any time. These instructions may also change without notice. - ## Setup After loading `rules_rust` in your workspace, set the following to begin using `crate_universe`: diff --git a/docs/index.md b/docs/index.md index b84d758f15..b2e8eee298 100644 --- a/docs/index.md +++ b/docs/index.md @@ -52,12 +52,12 @@ functional in certain environments. - [rust_bindgen](rust_bindgen.md): rules for generating C++ bindings. - [rust_wasm_bindgen](rust_wasm_bindgen.md): rules for generating [WebAssembly](https://www.rust-lang.org/what/wasm) bindings. - [cargo](cargo.md): Rules dedicated to Cargo compatibility. ie: [`build.rs` scripts](https://doc.rust-lang.org/cargo/reference/build-scripts.html). +- [crate_universe](crate_universe.md): Rules for generating Bazel targets for external crate depednencies. You can also browse the [full API in one page](flatten.md). ### Experimental rules -- [crate_universe](crate_universe.md): Rules for generating Bazel targets for external crate depednencies. - [rust_analyzer](rust_analyzer.md): rules for generating `rust-project.json` files for [rust-analyzer](https://rust-analyzer.github.io/) ## Specifying Rust version @@ -82,5 +82,4 @@ rust_register_toolchains(rustfmt_version = "1.59.0") ## External Dependencies -If [crate_universe](crate_universe.md) does not suit your needs, another common approach to managing external dependencies is using -[cargo-raze](https://github.com/google/cargo-raze) to generate `BUILD` files for Cargo crates. +[crate_universe](crate_universe.md) is a tool built into `rules_rust` that can be used to fetch dependencies. Additionally, [cargo-raze](https://github.com/google/cargo-raze) is an older third-party which can also fetch dependencies. From 0f3457316623f3f336fe72337c1e47932c046d15 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 8 Aug 2022 08:16:28 -0700 Subject: [PATCH 13/26] Updated rules_rust to version 0.9.0 (#1503) --- version.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.bzl b/version.bzl index 15b906809e..7e40f4590c 100644 --- a/version.bzl +++ b/version.bzl @@ -1,3 +1,3 @@ """The version of rules_rust.""" -VERSION = "0.8.1" +VERSION = "0.9.0" From 735640f2df76b1c1beec80910782dd1668750223 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 8 Aug 2022 09:30:28 -0700 Subject: [PATCH 14/26] Enable rust-analyzer tests on windows. (#1506) --- .bazelci/presubmit.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 864496d7b9..51898d85db 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -14,7 +14,6 @@ default_windows_targets: &default_windows_targets - "//..." - "-//bindgen/..." - "-//test/proto/..." - - "-//tools/rust_analyzer/..." - "-//test/unit/pipelined_compilation/..." crate_universe_vendor_example_targets: &crate_universe_vendor_example_targets - "//vendor_external:crates_vendor" From 90808f0dc47e289bc149561ffcc8451b64b5a8bd Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 8 Aug 2022 09:35:26 -0700 Subject: [PATCH 15/26] Minor cleanup to documentation (#1505) --- docs/index.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/index.md b/docs/index.md index b2e8eee298..6bce30e584 100644 --- a/docs/index.md +++ b/docs/index.md @@ -22,10 +22,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # https://github.com/bazelbuild/rules_rust/releases http_archive( name = "rules_rust", - sha256 = "7fb9b4fe1a6fb4341bdf7c623e619460ecc0f52d5061cc56abc750111fba8a87", + sha256 = "6bfe75125e74155955d8a9854a8811365e6c0f3d33ed700bc17f39e32522c822", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.7.0/rules_rust-v0.7.0.tar.gz", - "https://github.com/bazelbuild/rules_rust/releases/download/0.7.0/rules_rust-v0.7.0.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.9.0/rules_rust-v0.9.0.tar.gz", + "https://github.com/bazelbuild/rules_rust/releases/download/0.9.0/rules_rust-v0.9.0.tar.gz", ], ) @@ -37,7 +37,7 @@ rust_register_toolchains() ``` The rules are under active development, as such the lastest commit on the -`main` branch should be used. `main` is only tested against `4.0.0` as the +`main` branch should be used. `main` is only tested against `5.0.0` as the minimum supported version of Bazel. Though previous versions may still be functional in certain environments. @@ -47,8 +47,7 @@ functional in certain environments. - [rust_doc](rust_doc.md): rules for generating and testing rust documentation. - [rust_clippy](rust_clippy.md): rules for running [clippy](https://github.com/rust-lang/rust-clippy#readme). - [rust_fmt](rust_fmt.md): rules for running [rustfmt](https://github.com/rust-lang/rustfmt#readme). -- [rust_proto](rust_proto.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers). - and [gRPC](https://grpc.io) stubs. +- [rust_proto](rust_proto.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs. - [rust_bindgen](rust_bindgen.md): rules for generating C++ bindings. - [rust_wasm_bindgen](rust_wasm_bindgen.md): rules for generating [WebAssembly](https://www.rust-lang.org/what/wasm) bindings. - [cargo](cargo.md): Rules dedicated to Cargo compatibility. ie: [`build.rs` scripts](https://doc.rust-lang.org/cargo/reference/build-scripts.html). @@ -65,19 +64,19 @@ You can also browse the [full API in one page](flatten.md). To build with a particular version of the Rust compiler, pass that version to [`rust_register_toolchains`](flatten.md#rust_register_toolchains): ```python -rust_register_toolchains(version = "1.59.0", edition="2018") +rust_register_toolchains(version = "1.62.1", edition="2018") ``` As well as an exact version, `version` can be set to `"nightly"` or `"beta"`. If set to these values, `iso_date` must also be set: ```python -rust_register_toolchains(version = "nightly", iso_date = "2022-02-23", edition="2018") +rust_register_toolchains(version = "nightly", iso_date = "2022-07-18", edition="2018") ``` Similarly, `rustfmt_version` may also be configured: ```python -rust_register_toolchains(rustfmt_version = "1.59.0") +rust_register_toolchains(rustfmt_version = "1.62.1") ``` ## External Dependencies From 1cd0788d2ab461c71b2815214fb0596d6dc1f906 Mon Sep 17 00:00:00 2001 From: scentini Date: Tue, 9 Aug 2022 16:29:09 +0200 Subject: [PATCH 16/26] Apply get_lib_name correctly to the C++ runtime libraries (#1508) https://github.com/bazelbuild/rules_rust/pull/1500 added an additional `for_windows` parameter to `get_lib_name`. I missed the fact that we also pass that function to `map_each` here: https://github.com/bazelbuild/rules_rust/blob/main/rust/private/rustc.bzl#L1671 and as such, this code does not always work correctly (we don't get to pass the `for_windows` parameter, and internally at Google it ended up evaluating to `True` on Linux builds). I tried to avoid flattening the `cc_toolchain.dynamic_runtime_lib` and `cc_toolchain.static_runtime_lib` depsets by using a lambda: ``` args.add_all( cc_toolchain.dynamic_runtime_lib(feature_configuration = feature_configuration), map_each = lambda x: get_lib_name(x, for_windows = toolchain.os.startswith("windows)), format_each = "-ldylib=%s", ) ``` However it looks like such usage of lambdas is not allowed: ``` Error in add_all: to avoid unintended retention of analysis data structures, the map_each function (declared at ...) must be declared by a top-level def statement ``` So instead of `get_lib_name` we now have `get_lib_name_default` and `get_lib_name_for_windows`. --- rust/private/rustc.bzl | 24 +++++----- rust/private/utils.bzl | 45 +++++++++++++++++-- .../versioned_libs_unit_test.bzl | 44 +++++++++--------- 3 files changed, 77 insertions(+), 36 deletions(-) diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index 97b8a17220..70193d33dc 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -27,7 +27,8 @@ load( "expand_dict_value_locations", "expand_list_element_locations", "find_cc_toolchain", - "get_lib_name", + "get_lib_name_default", + "get_lib_name_for_windows", "get_preferred_artifact", "is_exec_configuration", "make_static_lib_symlink", @@ -425,7 +426,7 @@ def _symlink_for_ambiguous_lib(actions, toolchain, crate_info, lib): # Take the absolute value of hash() since it could be negative. path_hash = abs(hash(lib.path)) - lib_name = get_lib_name(lib, for_windows = toolchain.os.startswith("windows")) + lib_name = get_lib_name_for_windows(lib) if toolchain.os.startswith("windows") else get_lib_name_default(lib) prefix = "lib" extension = ".a" @@ -488,7 +489,7 @@ def _disambiguate_libs(actions, toolchain, crate_info, dep_info, use_pic): if _is_dylib(lib): continue artifact = get_preferred_artifact(lib, use_pic) - name = get_lib_name(artifact, for_windows = toolchain.os.startswith("windows")) + name = get_lib_name_for_windows(artifact) if toolchain.os.startswith("windows") else get_lib_name_default(artifact) # On Linux-like platforms, normally library base names start with # `lib`, following the pattern `lib[name].(a|lo)` and we pass @@ -1523,7 +1524,7 @@ def _get_crate_dirname(crate): """ return crate.output.dirname -def _portable_link_flags(lib, use_pic, ambiguous_libs, for_windows = False): +def _portable_link_flags(lib, use_pic, ambiguous_libs, get_lib_name, for_windows): artifact = get_preferred_artifact(lib, use_pic) if ambiguous_libs and artifact.path in ambiguous_libs: artifact = ambiguous_libs[artifact.path] @@ -1561,14 +1562,14 @@ def _portable_link_flags(lib, use_pic, ambiguous_libs, for_windows = False): artifact.basename.startswith("libtest-") or artifact.basename.startswith("libstd-") or artifact.basename.startswith("test-") or artifact.basename.startswith("std-") ): - return ["-lstatic=%s" % get_lib_name(artifact, for_windows)] + return ["-lstatic=%s" % get_lib_name(artifact)] return [ - "-lstatic=%s" % get_lib_name(artifact, for_windows), + "-lstatic=%s" % get_lib_name(artifact), "-Clink-arg=-l%s" % (get_lib_name(artifact) if not for_windows else artifact.basename), ] elif _is_dylib(lib): return [ - "-ldylib=%s" % get_lib_name(artifact, for_windows), + "-ldylib=%s" % get_lib_name(artifact), ] return [] @@ -1580,7 +1581,7 @@ def _make_link_flags_windows(linker_input_and_use_pic_and_ambiguous_libs): if lib.alwayslink: ret.extend(["-C", "link-arg=/WHOLEARCHIVE:%s" % get_preferred_artifact(lib, use_pic).path]) else: - ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs, for_windows = True)) + ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs, get_lib_name_for_windows, for_windows = True)) return ret def _make_link_flags_darwin(linker_input_and_use_pic_and_ambiguous_libs): @@ -1593,7 +1594,7 @@ def _make_link_flags_darwin(linker_input_and_use_pic_and_ambiguous_libs): ("link-arg=-Wl,-force_load,%s" % get_preferred_artifact(lib, use_pic).path), ]) else: - ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs)) + ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs, get_lib_name_default, for_windows = False)) return ret def _make_link_flags_default(linker_input_and_use_pic_and_ambiguous_libs): @@ -1610,7 +1611,7 @@ def _make_link_flags_default(linker_input_and_use_pic_and_ambiguous_libs): "link-arg=-Wl,--no-whole-archive", ]) else: - ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs)) + ret.extend(_portable_link_flags(lib, use_pic, ambiguous_libs, get_lib_name_default, for_windows = False)) return ret def _libraries_dirnames(linker_input_and_use_pic_and_ambiguous_libs): @@ -1639,10 +1640,13 @@ def _add_native_link_flags(args, dep_info, linkstamp_outs, ambiguous_libs, crate if toolchain.os == "windows": make_link_flags = _make_link_flags_windows + get_lib_name = get_lib_name_for_windows elif toolchain.os.startswith("mac") or toolchain.os.startswith("darwin"): make_link_flags = _make_link_flags_darwin + get_lib_name = get_lib_name_default else: make_link_flags = _make_link_flags_default + get_lib_name = get_lib_name_default # TODO(hlopko): Remove depset flattening by using lambdas once we are on >=Bazel 5.0 args_and_pic_and_ambiguous_libs = [(arg, use_pic, ambiguous_libs) for arg in dep_info.transitive_noncrates.to_list()] diff --git a/rust/private/utils.bzl b/rust/private/utils.bzl index e342b3bef8..583dc6e5ee 100644 --- a/rust/private/utils.bzl +++ b/rust/private/utils.bzl @@ -97,12 +97,11 @@ def _path_parts(path): path_parts = path.split("/") return [part for part in path_parts if part != "."] -def get_lib_name(lib, for_windows = False): - """Returns the name of a library artifact, eg. libabc.a -> abc +def get_lib_name_default(lib): + """Returns the name of a library artifact. Args: lib (File): A library file - for_windows: Whether we're building on Windows. Returns: str: The name of the library @@ -126,11 +125,49 @@ def get_lib_name(lib, for_windows = False): # The library name is now everything minus the extension. libname = ".".join(comps[:-1]) - if libname.startswith("lib") and not for_windows: + if libname.startswith("lib"): return libname[3:] else: return libname +# TODO: Could we remove this function in favor of a "windows" parameter in the +# above function? It looks like currently lambdas cannot accept local parameters +# so the following doesn't work: +# args.add_all( +# cc_toolchain.dynamic_runtime_lib(feature_configuration = feature_configuration), +# map_each = lambda x: get_lib_name(x, for_windows = toolchain.os.startswith("windows)), +# format_each = "-ldylib=%s", +# ) +def get_lib_name_for_windows(lib): + """Returns the name of a library artifact for Windows builds. + + Args: + lib (File): A library file + + Returns: + str: The name of the library + """ + # On macos and windows, dynamic/static libraries always end with the + # extension and potential versions will be before the extension, and should + # be part of the library name. + # On linux, the version usually comes after the extension. + # So regardless of the platform we want to find the extension and make + # everything left to it the library name. + + # Search for the extension - starting from the right - by removing any + # trailing digit. + comps = lib.basename.split(".") + for comp in reversed(comps): + if comp.isdigit(): + comps.pop() + else: + break + + # The library name is now everything minus the extension. + libname = ".".join(comps[:-1]) + + return libname + def abs(value): """Returns the absolute value of a number. diff --git a/test/unit/versioned_libs/versioned_libs_unit_test.bzl b/test/unit/versioned_libs/versioned_libs_unit_test.bzl index 0a3052510b..1ede046104 100644 --- a/test/unit/versioned_libs/versioned_libs_unit_test.bzl +++ b/test/unit/versioned_libs/versioned_libs_unit_test.bzl @@ -3,32 +3,32 @@ load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") # buildifier: disable=bzl-visibility -load("//rust/private:utils.bzl", "get_lib_name") +load("//rust/private:utils.bzl", "get_lib_name_default", "get_lib_name_for_windows") def _produced_expected_lib_name_test_impl(ctx): env = unittest.begin(ctx) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.dylib"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.so"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.a"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "python.dll"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "python.lib"))) - - asserts.equals(env, "python3", get_lib_name(struct(basename = "libpython3.dylib"))) - asserts.equals(env, "python3.8", get_lib_name(struct(basename = "libpython3.8.dylib"))) - asserts.equals(env, "python3", get_lib_name(struct(basename = "libpython3.a"))) - asserts.equals(env, "python3.8", get_lib_name(struct(basename = "libpython3.8.a"))) - - asserts.equals(env, "python38", get_lib_name(struct(basename = "python38.dll"))) - asserts.equals(env, "python38m", get_lib_name(struct(basename = "python38m.dll"))) - - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.so.3"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.so.3.8"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.so.3.8.0"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.a.3"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.a.3.8"))) - asserts.equals(env, "python", get_lib_name(struct(basename = "libpython.a.3.8.0"))) - asserts.equals(env, "python-3.8.0", get_lib_name(struct(basename = "libpython-3.8.0.so.3.8.0"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.dylib"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.so"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.a"))) + asserts.equals(env, "python", get_lib_name_for_windows(struct(basename = "python.dll"))) + asserts.equals(env, "python", get_lib_name_for_windows(struct(basename = "python.lib"))) + + asserts.equals(env, "python3", get_lib_name_default(struct(basename = "libpython3.dylib"))) + asserts.equals(env, "python3.8", get_lib_name_default(struct(basename = "libpython3.8.dylib"))) + asserts.equals(env, "python3", get_lib_name_default(struct(basename = "libpython3.a"))) + asserts.equals(env, "python3.8", get_lib_name_default(struct(basename = "libpython3.8.a"))) + + asserts.equals(env, "python38", get_lib_name_for_windows(struct(basename = "python38.dll"))) + asserts.equals(env, "python38m", get_lib_name_for_windows(struct(basename = "python38m.dll"))) + + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.so.3"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.so.3.8"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.so.3.8.0"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.a.3"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.a.3.8"))) + asserts.equals(env, "python", get_lib_name_default(struct(basename = "libpython.a.3.8.0"))) + asserts.equals(env, "python-3.8.0", get_lib_name_default(struct(basename = "libpython-3.8.0.so.3.8.0"))) return unittest.end(env) From 6ee7c80bdb906086a1998e9b14e71f542750ec57 Mon Sep 17 00:00:00 2001 From: Brian Silverman Date: Wed, 10 Aug 2022 01:21:25 -0700 Subject: [PATCH 17/26] Propagate rustc_env{,_files} from rust_test.crate (#1443) rust_test.crate builds the same file as the rust_library it's pointing to, which will almost certainly depend on the same environment variables being set. --- docs/flatten.md | 3 +- docs/providers.md | 3 +- rust/private/common.bzl | 2 ++ rust/private/providers.bzl | 1 + rust/private/rust.bzl | 9 +++++- rust/private/rustc.bzl | 4 ++- rust/private/rustdoc.bzl | 1 + rust/private/rustdoc_test.bzl | 1 + test/build_env/BUILD.bazel | 35 ++++++++++++++++++++++- test/build_env/tests/arbitrary_env_lib.rs | 16 +++++++++++ test/rustc_env_files/BUILD.bazel | 14 ++++++++- test/rustc_env_files/src/lib.rs | 16 +++++++++++ 12 files changed, 99 insertions(+), 6 deletions(-) create mode 100644 test/build_env/tests/arbitrary_env_lib.rs create mode 100644 test/rustc_env_files/src/lib.rs diff --git a/docs/flatten.md b/docs/flatten.md index c3324b920c..adde2af7bb 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1353,7 +1353,7 @@ A test rule for performing `rustfmt --check` on a set of targets
 CrateInfo(aliases, compile_data, deps, edition, is_test, metadata, name, output, owner,
-          proc_macro_deps, root, rustc_env, srcs, type, wrapped_crate_type)
+          proc_macro_deps, root, rustc_env, rustc_env_files, srcs, type, wrapped_crate_type)
 
A provider containing general Crate information. @@ -1375,6 +1375,7 @@ A provider containing general Crate information. | proc_macro_deps | depset[DepVariantInfo]: This crate's rust proc_macro dependencies' providers. | | root | File: The source File entrypoint to this crate, eg. lib.rs | | rustc_env | Dict[String, String]: Additional "key": "value" environment variables to set for rustc. | +| rustc_env_files | [File]: Files containing additional environment variables to set for rustc. | | srcs | depset[File]: All source Files that are part of the crate. | | type | str: The type of this crate (see [rustc --crate-type](https://doc.rust-lang.org/rustc/command-line-arguments.html#--crate-type-a-list-of-types-of-crates-for-the-compiler-to-emit)). | | wrapped_crate_type | str, optional: The original crate type for targets generated using a previously defined crate (typically tests using the rust_test::crate attribute) | diff --git a/docs/providers.md b/docs/providers.md index 775dbd9608..11f77b7d1b 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -11,7 +11,7 @@
 CrateInfo(aliases, compile_data, deps, edition, is_test, metadata, name, output, owner,
-          proc_macro_deps, root, rustc_env, srcs, type, wrapped_crate_type)
+          proc_macro_deps, root, rustc_env, rustc_env_files, srcs, type, wrapped_crate_type)
 
A provider containing general Crate information. @@ -33,6 +33,7 @@ A provider containing general Crate information. | proc_macro_deps | depset[DepVariantInfo]: This crate's rust proc_macro dependencies' providers. | | root | File: The source File entrypoint to this crate, eg. lib.rs | | rustc_env | Dict[String, String]: Additional "key": "value" environment variables to set for rustc. | +| rustc_env_files | [File]: Files containing additional environment variables to set for rustc. | | srcs | depset[File]: All source Files that are part of the crate. | | type | str: The type of this crate (see [rustc --crate-type](https://doc.rust-lang.org/rustc/command-line-arguments.html#--crate-type-a-list-of-types-of-crates-for-the-compiler-to-emit)). | | wrapped_crate_type | str, optional: The original crate type for targets generated using a previously defined crate (typically tests using the rust_test::crate attribute) | diff --git a/rust/private/common.bzl b/rust/private/common.bzl index 3de7cb54f9..025c4d76a1 100644 --- a/rust/private/common.bzl +++ b/rust/private/common.bzl @@ -49,6 +49,8 @@ def _create_crate_info(**kwargs): kwargs.update({"wrapped_crate_type": None}) if not "metadata" in kwargs: kwargs.update({"metadata": None}) + if not "rustc_env_files" in kwargs: + kwargs.update({"rustc_env_files": []}) return CrateInfo(**kwargs) rust_common = struct( diff --git a/rust/private/providers.bzl b/rust/private/providers.bzl index 7533349e66..464444ba93 100644 --- a/rust/private/providers.bzl +++ b/rust/private/providers.bzl @@ -29,6 +29,7 @@ CrateInfo = provider( "proc_macro_deps": "depset[DepVariantInfo]: This crate's rust proc_macro dependencies' providers.", "root": "File: The source File entrypoint to this crate, eg. lib.rs", "rustc_env": "Dict[String, String]: Additional `\"key\": \"value\"` environment variables to set for rustc.", + "rustc_env_files": "[File]: Files containing additional environment variables to set for rustc.", "srcs": "depset[File]: All source Files that are part of the crate.", "type": ( "str: The type of this crate " + diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index 25e56bf8ee..66c699e7f4 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -343,6 +343,7 @@ def _rust_library_common(ctx, crate_type): metadata = rust_metadata, edition = get_edition(ctx.attr, toolchain, ctx.label), rustc_env = ctx.attr.rustc_env, + rustc_env_files = ctx.files.rustc_env_files, is_test = False, compile_data = depset(ctx.files.compile_data), owner = ctx.label, @@ -387,6 +388,7 @@ def _rust_binary_impl(ctx): output = output, edition = get_edition(ctx.attr, toolchain, ctx.label), rustc_env = ctx.attr.rustc_env, + rustc_env_files = ctx.files.rustc_env_files, is_test = False, compile_data = depset(ctx.files.compile_data), owner = ctx.label, @@ -431,6 +433,9 @@ def _rust_test_impl(ctx): compile_data = depset(ctx.files.compile_data, transitive = [crate.compile_data]) else: compile_data = depset(ctx.files.compile_data) + rustc_env_files = ctx.files.rustc_env_files + crate.rustc_env_files + rustc_env = dict(crate.rustc_env) + rustc_env.update(**ctx.attr.rustc_env) # Build the test binary using the dependency's srcs. crate_info = rust_common.create_crate_info( @@ -443,7 +448,8 @@ def _rust_test_impl(ctx): aliases = ctx.attr.aliases, output = output, edition = crate.edition, - rustc_env = ctx.attr.rustc_env, + rustc_env = rustc_env, + rustc_env_files = rustc_env_files, is_test = True, compile_data = compile_data, wrapped_crate_type = crate.type, @@ -474,6 +480,7 @@ def _rust_test_impl(ctx): output = output, edition = get_edition(ctx.attr, toolchain, ctx.label), rustc_env = ctx.attr.rustc_env, + rustc_env_files = ctx.files.rustc_env_files, is_test = True, compile_data = depset(ctx.files.compile_data), owner = ctx.label, diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index 70193d33dc..efecc3bfe7 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -672,7 +672,9 @@ def collect_inputs( ], ) - build_env_files = getattr(files, "rustc_env_files", []) + # For backwards compatibility, we also check the value of the `rustc_env_files` attribute when + # `crate_info.rustc_env_files` is not populated. + build_env_files = crate_info.rustc_env_files if crate_info.rustc_env_files else getattr(files, "rustc_env_files", []) compile_inputs, out_dir, build_env_file, build_flags_files = _process_build_scripts(build_info, dep_info, compile_inputs) if build_env_file: build_env_files = [f for f in build_env_files] + [build_env_file] diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index 6874717dc7..ba3a12cec7 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -40,6 +40,7 @@ def _strip_crate_info_output(crate_info): metadata = None, edition = crate_info.edition, rustc_env = crate_info.rustc_env, + rustc_env_files = crate_info.rustc_env_files, is_test = crate_info.is_test, compile_data = crate_info.compile_data, ) diff --git a/rust/private/rustdoc_test.bzl b/rust/private/rustdoc_test.bzl index a2ee98c4d9..525838ee5c 100644 --- a/rust/private/rustdoc_test.bzl +++ b/rust/private/rustdoc_test.bzl @@ -119,6 +119,7 @@ def _rust_doc_test_impl(ctx): output = crate.output, edition = crate.edition, rustc_env = crate.rustc_env, + rustc_env_files = crate.rustc_env_files, is_test = True, compile_data = crate.compile_data, wrapped_crate_type = crate.type, diff --git a/test/build_env/BUILD.bazel b/test/build_env/BUILD.bazel index 908749a72e..b4e1a92457 100644 --- a/test/build_env/BUILD.bazel +++ b/test/build_env/BUILD.bazel @@ -2,7 +2,7 @@ load( "//cargo:cargo_build_script.bzl", "cargo_build_script", ) -load("//rust:defs.bzl", "rust_test") +load("//rust:defs.bzl", "rust_library", "rust_test") package(default_visibility = ["//visibility:public"]) @@ -13,6 +13,39 @@ rust_test( edition = "2018", ) +rust_library( + name = "arbitrary_env_lib", + srcs = ["tests/arbitrary_env_lib.rs"], + edition = "2018", + rustc_env = { + "USER_DEFINED_KEY": "USER_DEFINED_VALUE", + }, +) + +rust_test( + name = "arbitrary_env_lib_test", + crate = ":arbitrary_env_lib", + edition = "2018", +) + +rust_library( + name = "arbitrary_env_lib_in_test", + srcs = ["tests/arbitrary_env_lib.rs"], + edition = "2018", + rustc_env = { + "USER_DEFINED_KEY": "DIFFERENT_USER_DEFINED_VALUE", + }, +) + +rust_test( + name = "arbitrary_env_lib_test_in_test", + crate = ":arbitrary_env_lib_in_test", + edition = "2018", + rustc_env = { + "USER_DEFINED_KEY": "USER_DEFINED_VALUE", + }, +) + rust_test( name = "arbitrary_env_test", srcs = ["tests/arbitrary_env.rs"], diff --git a/test/build_env/tests/arbitrary_env_lib.rs b/test/build_env/tests/arbitrary_env_lib.rs new file mode 100644 index 0000000000..e89fc2e545 --- /dev/null +++ b/test/build_env/tests/arbitrary_env_lib.rs @@ -0,0 +1,16 @@ +pub fn from_lib() -> &'static str { + env!("USER_DEFINED_KEY") +} + +#[cfg(test)] +mod tests { + #[test] + fn verify_from_lib() { + assert_eq!(super::from_lib(), "USER_DEFINED_VALUE"); + } + + #[test] + fn verify_from_test() { + assert_eq!(env!("USER_DEFINED_KEY"), "USER_DEFINED_VALUE"); + } +} diff --git a/test/rustc_env_files/BUILD.bazel b/test/rustc_env_files/BUILD.bazel index 4139825392..cb48b2ef4a 100644 --- a/test/rustc_env_files/BUILD.bazel +++ b/test/rustc_env_files/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//rules:write_file.bzl", "write_file") -load("//rust:defs.bzl", "rust_binary") +load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_test") package(default_visibility = ["//visibility:public"]) @@ -26,3 +26,15 @@ sh_test( args = ["$(rootpath :hello_env)"], data = [":hello_env"], ) + +rust_library( + name = "hello_env_crate", + srcs = ["src/lib.rs"], + edition = "2018", + rustc_env_files = [":generate_rustc_env_file"], +) + +rust_test( + name = "hello_env_crate_test", + crate = ":hello_env_crate", +) diff --git a/test/rustc_env_files/src/lib.rs b/test/rustc_env_files/src/lib.rs new file mode 100644 index 0000000000..8cd7cabc4f --- /dev/null +++ b/test/rustc_env_files/src/lib.rs @@ -0,0 +1,16 @@ +pub fn from_lib() -> &'static str { + env!("GREETING") +} + +#[cfg(test)] +mod tests { + #[test] + fn verify_from_lib() { + assert_eq!(super::from_lib(), "Howdy"); + } + + #[test] + fn verify_from_test() { + assert_eq!(env!("GREETING"), "Howdy"); + } +} From c07aef02879f4ec7be97339a08ec2c646014e8f9 Mon Sep 17 00:00:00 2001 From: Tyler Mandry Date: Fri, 12 Aug 2022 02:38:48 -0700 Subject: [PATCH 18/26] Skip supplying rpaths on Fuchsia (#1511) Fuchsia rules assemble shared libraries during packaging, so rpaths are not needed. --- rust/private/rustc.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index efecc3bfe7..b6cbd3017d 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -1403,7 +1403,8 @@ def _compute_rpaths(toolchain, output_dir, dep_info, use_pic): """ # Windows has no rpath equivalent, so always return an empty depset. - if toolchain.os == "windows": + # Fuchsia assembles shared libraries during packaging. + if toolchain.os == "windows" or toolchain.os == "fuchsia": return depset([]) dylibs = [ From 078c6908fc32c168b58e72cc3884dd8e30419e3a Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Fri, 12 Aug 2022 14:50:57 +0200 Subject: [PATCH 19/26] add cc_common.link support for rust_library and rust_test (#1490) * add cc_common.link support * Update rust/private/rustc.bzl Co-authored-by: scentini * Update rust/private/rustc.bzl Co-authored-by: scentini Co-authored-by: scentini --- .bazelci/presubmit.yml | 12 ++++ .bazelignore | 1 + .gitignore | 1 + docs/defs.md | 10 +-- docs/flatten.md | 38 +++++++---- docs/rust_repositories.md | 28 +++++--- rust/private/repository_utils.bzl | 7 ++ rust/private/rust.bzl | 23 +++++-- rust/private/rustc.bzl | 85 +++++++++++++++++++++++- rust/repositories.bzl | 13 ++++ rust/settings/BUILD.bazel | 7 ++ rust/toolchain.bzl | 9 +++ test/cc_common_link/BUILD.bazel | 36 ++++++++++ test/cc_common_link/WORKSPACE.bazel | 15 +++++ test/cc_common_link/allocator_library.cc | 52 +++++++++++++++ test/cc_common_link/bin.rs | 10 +++ test/cc_common_link/cclinkstampdep.cc | 3 + test/cc_common_link/rdep.rs | 3 + test/cc_common_link/test.rs | 4 ++ 19 files changed, 323 insertions(+), 34 deletions(-) create mode 100644 test/cc_common_link/BUILD.bazel create mode 100644 test/cc_common_link/WORKSPACE.bazel create mode 100644 test/cc_common_link/allocator_library.cc create mode 100644 test/cc_common_link/bin.rs create mode 100644 test/cc_common_link/cclinkstampdep.cc create mode 100644 test/cc_common_link/rdep.rs create mode 100644 test/cc_common_link/test.rs diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 51898d85db..ac6b4194f2 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -333,6 +333,18 @@ tasks: - "//..." test_targets: - "//..." + cc_common_link_ubuntu2004: + name: Build via cc_common.link + platform: ubuntu2004 + working_directory: test/cc_common_link + build_targets: + - "//..." + test_targets: + - "//..." + build_flags: + - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" + + buildifier: version: latest warnings: "all" diff --git a/.bazelignore b/.bazelignore index 2a58041707..8c75c35778 100644 --- a/.bazelignore +++ b/.bazelignore @@ -1,3 +1,4 @@ docs examples crate_universe/private/bootstrap +test/cc_common_link diff --git a/.gitignore b/.gitignore index 3a92b40183..cccba25244 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ /examples/cargo_manifest_dir/external_crate/bazel-* /examples/crate_universe/bazel-* /examples/crate_universe/*/bazel-* +/test/cc_common_link/bazel-* /docs/bazel-* user.bazelrc diff --git a/docs/defs.md b/docs/defs.md index b0c18982bf..577c7f6ea8 100644 --- a/docs/defs.md +++ b/docs/defs.md @@ -91,8 +91,8 @@ Add additional rustc_flags from the command line with `--@rules_rust//:extra_rus
 rust_binary(name, aliases, compile_data, crate_features, crate_name, crate_root, crate_type, data,
-            deps, edition, linker_script, out_binary, proc_macro_deps, rustc_env, rustc_env_files,
-            rustc_flags, srcs, stamp, version)
+            deps, edition, experimental_use_cc_common_link, linker_script, out_binary,
+            proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, stamp, version)
 
Builds a Rust binary crate. @@ -197,6 +197,7 @@ is available under the key `dsym_folder` in `OutputGroupInfo`. | data | List of files used by this rule at compile time and runtime.

If including data at compile time with include_str!() and similar, prefer compile_data over data, to prevent the data also being included in the runfiles. | List of labels | optional | [] | | deps | List of other libraries to be linked to this library target.

These can be either other rust_library targets or cc_library targets if linking a native library. | List of labels | optional | [] | | edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" | +| experimental_use_cc_common_link | Whether to use cc_common.link to link rust binaries. Possible values: [-1, 0, 1]. -1 means use the value of the toolchain.experimental_use_cc_common_link boolean build setting to determine. 0 means do not use cc_common.link (use rustc instead). 1 means use cc_common.link. | Integer | optional | -1 | | linker_script | Link script to forward into linker via rustc options. | Label | optional | None | | out_binary | Force a target, regardless of it's crate_type, to always mark the file as executable. This attribute is only used to support wasm targets but is expected to be removed following a resolution to https://github.com/bazelbuild/rules_rust/issues/771. | Boolean | optional | False | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | @@ -436,8 +437,8 @@ When building the whole binary in Bazel, use `rust_library` instead.
 rust_test(name, aliases, compile_data, crate, crate_features, crate_name, crate_root, data, deps,
-          edition, env, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, stamp,
-          use_libtest_harness, version)
+          edition, env, experimental_use_cc_common_link, proc_macro_deps, rustc_env, rustc_env_files,
+          rustc_flags, srcs, stamp, use_libtest_harness, version)
 
Builds a Rust test crate. @@ -574,6 +575,7 @@ Run the test with `bazel test //hello_lib:greeting_test`. | deps | List of other libraries to be linked to this library target.

These can be either other rust_library targets or cc_library targets if linking a native library. | List of labels | optional | [] | | edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" | | env | Specifies additional environment variables to set when the test is executed by bazel test. Values are subject to $(rootpath), $(execpath), location, and ["Make variable"](https://docs.bazel.build/versions/master/be/make-variables.html) substitution.

Execpath returns absolute path, and in order to be able to construct the absolute path we need to wrap the test binary in a launcher. Using a launcher comes with complications, such as more complicated debugger attachment. | Dictionary: String -> String | optional | {} | +| experimental_use_cc_common_link | Whether to use cc_common.link to link rust binaries. Possible values: [-1, 0, 1]. -1 means use the value of the toolchain.experimental_use_cc_common_link boolean build setting to determine. 0 means do not use cc_common.link (use rustc instead). 1 means use cc_common.link. | Integer | optional | -1 | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | | rustc_env | Dictionary of additional "key": "value" environment variables to set for rustc.

rust_test()/rust_binary() rules can use $(rootpath //package:target) to pass in the location of a generated file or external tool. Cargo build scripts that wish to expand locations should use cargo_build_script()'s build_script_env argument instead, as build scripts are run in a different environment - see cargo_build_script()'s documentation for more. | Dictionary: String -> String | optional | {} | | rustc_env_files | Files containing additional environment variables to set for rustc.

These files should contain a single variable per line, of format NAME=value, and newlines may be included in a value by ending a line with a trailing back-slash (\\).

The order that these files will be processed is unspecified, so multiple definitions of a particular variable are discouraged.

Note that the variables here are subject to [workspace status](https://docs.bazel.build/versions/main/user-manual.html#workspace_status) stamping should the stamp attribute be enabled. Stamp variables should be wrapped in brackets in order to be resolved. E.g. NAME={WORKSPACE_STATUS_VARIABLE}. | List of labels | optional | [] | diff --git a/docs/flatten.md b/docs/flatten.md index adde2af7bb..1646c21594 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -203,8 +203,8 @@ A toolchain for [rust-analyzer](https://rust-analyzer.github.io/).
 rust_binary(name, aliases, compile_data, crate_features, crate_name, crate_root, crate_type, data,
-            deps, edition, linker_script, out_binary, proc_macro_deps, rustc_env, rustc_env_files,
-            rustc_flags, srcs, stamp, version)
+            deps, edition, experimental_use_cc_common_link, linker_script, out_binary,
+            proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, stamp, version)
 
Builds a Rust binary crate. @@ -309,6 +309,7 @@ is available under the key `dsym_folder` in `OutputGroupInfo`. | data | List of files used by this rule at compile time and runtime.

If including data at compile time with include_str!() and similar, prefer compile_data over data, to prevent the data also being included in the runfiles. | List of labels | optional | [] | | deps | List of other libraries to be linked to this library target.

These can be either other rust_library targets or cc_library targets if linking a native library. | List of labels | optional | [] | | edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" | +| experimental_use_cc_common_link | Whether to use cc_common.link to link rust binaries. Possible values: [-1, 0, 1]. -1 means use the value of the toolchain.experimental_use_cc_common_link boolean build setting to determine. 0 means do not use cc_common.link (use rustc instead). 1 means use cc_common.link. | Integer | optional | -1 | | linker_script | Link script to forward into linker via rustc options. | Label | optional | None | | out_binary | Force a target, regardless of it's crate_type, to always mark the file as executable. This attribute is only used to support wasm targets but is expected to be removed following a resolution to https://github.com/bazelbuild/rules_rust/issues/771. | Boolean | optional | False | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | @@ -952,8 +953,8 @@ A dedicated filegroup-like rule for Rust stdlib artifacts.
 rust_test(name, aliases, compile_data, crate, crate_features, crate_name, crate_root, data, deps,
-          edition, env, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, stamp,
-          use_libtest_harness, version)
+          edition, env, experimental_use_cc_common_link, proc_macro_deps, rustc_env, rustc_env_files,
+          rustc_flags, srcs, stamp, use_libtest_harness, version)
 
Builds a Rust test crate. @@ -1090,6 +1091,7 @@ Run the test with `bazel test //hello_lib:greeting_test`. | deps | List of other libraries to be linked to this library target.

These can be either other rust_library targets or cc_library targets if linking a native library. | List of labels | optional | [] | | edition | The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain. | String | optional | "" | | env | Specifies additional environment variables to set when the test is executed by bazel test. Values are subject to $(rootpath), $(execpath), location, and ["Make variable"](https://docs.bazel.build/versions/master/be/make-variables.html) substitution.

Execpath returns absolute path, and in order to be able to construct the absolute path we need to wrap the test binary in a launcher. Using a launcher comes with complications, such as more complicated debugger attachment. | Dictionary: String -> String | optional | {} | +| experimental_use_cc_common_link | Whether to use cc_common.link to link rust binaries. Possible values: [-1, 0, 1]. -1 means use the value of the toolchain.experimental_use_cc_common_link boolean build setting to determine. 0 means do not use cc_common.link (use rustc instead). 1 means use cc_common.link. | Integer | optional | -1 | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | | rustc_env | Dictionary of additional "key": "value" environment variables to set for rustc.

rust_test()/rust_binary() rules can use $(rootpath //package:target) to pass in the location of a generated file or external tool. Cargo build scripts that wish to expand locations should use cargo_build_script()'s build_script_env argument instead, as build scripts are run in a different environment - see cargo_build_script()'s documentation for more. | Dictionary: String -> String | optional | {} | | rustc_env_files | Files containing additional environment variables to set for rustc.

These files should contain a single variable per line, of format NAME=value, and newlines may be included in a value by ending a line with a trailing back-slash (\\).

The order that these files will be processed is unspecified, so multiple definitions of a particular variable are discouraged.

Note that the variables here are subject to [workspace status](https://docs.bazel.build/versions/main/user-manual.html#workspace_status) stamping should the stamp attribute be enabled. Stamp variables should be wrapped in brackets in order to be resolved. E.g. NAME={WORKSPACE_STATUS_VARIABLE}. | List of labels | optional | [] | @@ -1106,9 +1108,10 @@ Run the test with `bazel test //hello_lib:greeting_test`.
 rust_toolchain(name, allocator_library, binary_ext, cargo, clippy_driver, debug_info,
-               default_edition, dylib_ext, env, exec_triple, llvm_cov, llvm_profdata, llvm_tools,
-               opt_level, os, rust_doc, rust_lib, rust_std, rustc, rustc_lib, rustc_srcs, rustfmt,
-               staticlib_ext, stdlib_linkflags, target_json, target_triple)
+               default_edition, dylib_ext, env, exec_triple, experimental_use_cc_common_link,
+               llvm_cov, llvm_profdata, llvm_tools, opt_level, os, rust_doc, rust_lib, rust_std,
+               rustc, rustc_lib, rustc_srcs, rustfmt, staticlib_ext, stdlib_linkflags, target_json,
+               target_triple)
 
Declares a Rust toolchain for use. @@ -1167,6 +1170,7 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r | dylib_ext | The extension for dynamic libraries created from rustc. | String | required | | | env | Environment variables to set in actions. | Dictionary: String -> String | optional | {} | | exec_triple | The platform triple for the toolchains execution environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | required | | +| experimental_use_cc_common_link | Label to a boolean build setting that controls whether cc_common.link is used to link rust binaries. | Label | optional | //rust/settings:experimental_use_cc_common_link | | llvm_cov | The location of the llvm-cov binary. Can be a direct source or a filegroup containing one item. If None, rust code is not instrumented for coverage. | Label | optional | None | | llvm_profdata | The location of the llvm-profdata binary. Can be a direct source or a filegroup containing one item. If llvm_cov is None, this can be None as well and rust code is not instrumented for coverage. | Label | optional | None | | llvm_tools | LLVM tools that are shipped with the Rust toolchain. | Label | optional | None | @@ -1214,7 +1218,7 @@ Generates a toolchain-bearing repository that declares the toolchains from some ## rust_toolchain_tools_repository
-rust_toolchain_tools_repository(name, auth, dev_components, edition, exec_triple,
+rust_toolchain_tools_repository(name, allocator_library, auth, dev_components, edition, exec_triple,
                                 include_rustc_srcs, iso_date, repo_mapping, rustfmt_version, sha256s,
                                 target_triple, urls, version)
 
@@ -1229,6 +1233,7 @@ A given instance of this rule should be accompanied by a toolchain_repository_pr | Name | Description | Type | Mandatory | Default | | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this repository. | Name | required | | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | String | optional | "" | | auth | Auth object compatible with repository_ctx.download to use when downloading files. See [repository_ctx.download](https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download) for more details. | Dictionary: String -> String | optional | {} | | dev_components | Whether to download the rustc-dev components (defaults to False). Requires version to be "nightly". | Boolean | optional | False | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every rule is required to specify its edition attribute. | String | optional | "" | @@ -1680,8 +1685,9 @@ This macro should be called immediately after the `rust_proto_repositories` macr ## rust_register_toolchains
-rust_register_toolchains(dev_components, edition, include_rustc_srcs, iso_date, register_toolchains,
-                         rustfmt_version, sha256s, extra_target_triples, urls, version)
+rust_register_toolchains(dev_components, edition, include_rustc_srcs, allocator_library, iso_date,
+                         register_toolchains, rustfmt_version, sha256s, extra_target_triples, urls,
+                         version)
 
Emits a default set of toolchains for Linux, MacOS, and Freebsd @@ -1709,6 +1715,7 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai | dev_components | Whether to download the rustc-dev components (defaults to False). Requires version to be "nightly". | False | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every target is required to specify its edition attribute. | None | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. See [rust_toolchain_repository.include_rustc_srcs](#rust_toolchain_repository-include_rustc_srcs). for more details | False | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | None | | iso_date | The date of the nightly or beta release (ignored if the version is a specific version). | None | | register_toolchains | If true, repositories will be generated to produce and register rust_toolchain targets. | True | | rustfmt_version | The version of rustfmt. Either "nightly", "beta", or an exact version. Defaults to version if not specified. | None | @@ -1741,8 +1748,9 @@ rust_repositories(kwargs) ## rust_repository_set
-rust_repository_set(name, version, exec_triple, include_rustc_srcs, extra_target_triples, iso_date,
-                    rustfmt_version, edition, dev_components, sha256s, urls, auth, register_toolchain)
+rust_repository_set(name, version, exec_triple, include_rustc_srcs, allocator_library,
+                    extra_target_triples, iso_date, rustfmt_version, edition, dev_components, sha256s,
+                    urls, auth, register_toolchain)
 
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains. @@ -1759,6 +1767,7 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with | version | The version of the tool among "nightly", "beta', or an exact version. | none | | exec_triple | The Rust-style target that this compiler runs on | none | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. Defaults to False. | False | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | None | | extra_target_triples | Additional rust-style targets that this set of toolchains should support. Defaults to []. | [] | | iso_date | The date of the tool. Defaults to None. | None | | rustfmt_version | The version of rustfmt to be associated with the toolchain. Defaults to None. | None | @@ -1840,8 +1849,8 @@ rust_test_suite(
 rust_toolchain_repository(name, version, exec_triple, target_triple, exec_compatible_with,
-                          target_compatible_with, include_rustc_srcs, iso_date, rustfmt_version,
-                          edition, dev_components, sha256s, urls, auth)
+                          target_compatible_with, include_rustc_srcs, allocator_library, iso_date,
+                          rustfmt_version, edition, dev_components, sha256s, urls, auth)
 
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains. @@ -1861,6 +1870,7 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with | exec_compatible_with | A list of constraints for the execution platform for this toolchain. | None | | target_compatible_with | A list of constraints for the target platform for this toolchain. | None | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. | False | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | None | | iso_date | The date of the tool. | None | | rustfmt_version | The version of rustfmt to be associated with the toolchain. | None | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every rule is required to specify its edition attribute. | None | diff --git a/docs/rust_repositories.md b/docs/rust_repositories.md index 49990ffbb5..0eed309e43 100644 --- a/docs/rust_repositories.md +++ b/docs/rust_repositories.md @@ -36,9 +36,10 @@ A dedicated filegroup-like rule for Rust stdlib artifacts.
 rust_toolchain(name, allocator_library, binary_ext, cargo, clippy_driver, debug_info,
-               default_edition, dylib_ext, env, exec_triple, llvm_cov, llvm_profdata, llvm_tools,
-               opt_level, os, rust_doc, rust_lib, rust_std, rustc, rustc_lib, rustc_srcs, rustfmt,
-               staticlib_ext, stdlib_linkflags, target_json, target_triple)
+               default_edition, dylib_ext, env, exec_triple, experimental_use_cc_common_link,
+               llvm_cov, llvm_profdata, llvm_tools, opt_level, os, rust_doc, rust_lib, rust_std,
+               rustc, rustc_lib, rustc_srcs, rustfmt, staticlib_ext, stdlib_linkflags, target_json,
+               target_triple)
 
Declares a Rust toolchain for use. @@ -97,6 +98,7 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r | dylib_ext | The extension for dynamic libraries created from rustc. | String | required | | | env | Environment variables to set in actions. | Dictionary: String -> String | optional | {} | | exec_triple | The platform triple for the toolchains execution environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | required | | +| experimental_use_cc_common_link | Label to a boolean build setting that controls whether cc_common.link is used to link rust binaries. | Label | optional | //rust/settings:experimental_use_cc_common_link | | llvm_cov | The location of the llvm-cov binary. Can be a direct source or a filegroup containing one item. If None, rust code is not instrumented for coverage. | Label | optional | None | | llvm_profdata | The location of the llvm-profdata binary. Can be a direct source or a filegroup containing one item. If llvm_cov is None, this can be None as well and rust code is not instrumented for coverage. | Label | optional | None | | llvm_tools | LLVM tools that are shipped with the Rust toolchain. | Label | optional | None | @@ -144,7 +146,7 @@ Generates a toolchain-bearing repository that declares the toolchains from some ## rust_toolchain_tools_repository
-rust_toolchain_tools_repository(name, auth, dev_components, edition, exec_triple,
+rust_toolchain_tools_repository(name, allocator_library, auth, dev_components, edition, exec_triple,
                                 include_rustc_srcs, iso_date, repo_mapping, rustfmt_version, sha256s,
                                 target_triple, urls, version)
 
@@ -159,6 +161,7 @@ A given instance of this rule should be accompanied by a toolchain_repository_pr | Name | Description | Type | Mandatory | Default | | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this repository. | Name | required | | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | String | optional | "" | | auth | Auth object compatible with repository_ctx.download to use when downloading files. See [repository_ctx.download](https://docs.bazel.build/versions/main/skylark/lib/repository_ctx.html#download) for more details. | Dictionary: String -> String | optional | {} | | dev_components | Whether to download the rustc-dev components (defaults to False). Requires version to be "nightly". | Boolean | optional | False | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every rule is required to specify its edition attribute. | String | optional | "" | @@ -190,8 +193,9 @@ Dependencies used in the implementation of `rules_rust`. ## rust_register_toolchains
-rust_register_toolchains(dev_components, edition, include_rustc_srcs, iso_date, register_toolchains,
-                         rustfmt_version, sha256s, extra_target_triples, urls, version)
+rust_register_toolchains(dev_components, edition, include_rustc_srcs, allocator_library, iso_date,
+                         register_toolchains, rustfmt_version, sha256s, extra_target_triples, urls,
+                         version)
 
Emits a default set of toolchains for Linux, MacOS, and Freebsd @@ -219,6 +223,7 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai | dev_components | Whether to download the rustc-dev components (defaults to False). Requires version to be "nightly". | False | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every target is required to specify its edition attribute. | None | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. See [rust_toolchain_repository.include_rustc_srcs](#rust_toolchain_repository-include_rustc_srcs). for more details | False | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | None | | iso_date | The date of the nightly or beta release (ignored if the version is a specific version). | None | | register_toolchains | If true, repositories will be generated to produce and register rust_toolchain targets. | True | | rustfmt_version | The version of rustfmt. Either "nightly", "beta", or an exact version. Defaults to version if not specified. | None | @@ -251,8 +256,9 @@ rust_repositories(kwargs) ## rust_repository_set
-rust_repository_set(name, version, exec_triple, include_rustc_srcs, extra_target_triples, iso_date,
-                    rustfmt_version, edition, dev_components, sha256s, urls, auth, register_toolchain)
+rust_repository_set(name, version, exec_triple, include_rustc_srcs, allocator_library,
+                    extra_target_triples, iso_date, rustfmt_version, edition, dev_components, sha256s,
+                    urls, auth, register_toolchain)
 
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains. @@ -269,6 +275,7 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with | version | The version of the tool among "nightly", "beta', or an exact version. | none | | exec_triple | The Rust-style target that this compiler runs on | none | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. Defaults to False. | False | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | None | | extra_target_triples | Additional rust-style targets that this set of toolchains should support. Defaults to []. | [] | | iso_date | The date of the tool. Defaults to None. | None | | rustfmt_version | The version of rustfmt to be associated with the toolchain. Defaults to None. | None | @@ -286,8 +293,8 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with
 rust_toolchain_repository(name, version, exec_triple, target_triple, exec_compatible_with,
-                          target_compatible_with, include_rustc_srcs, iso_date, rustfmt_version,
-                          edition, dev_components, sha256s, urls, auth)
+                          target_compatible_with, include_rustc_srcs, allocator_library, iso_date,
+                          rustfmt_version, edition, dev_components, sha256s, urls, auth)
 
Assembles a remote repository for the given toolchain params, produces a proxy repository to contain the toolchain declaration, and registers the toolchains. @@ -307,6 +314,7 @@ N.B. A "proxy repository" is needed to allow for registering the toolchain (with | exec_compatible_with | A list of constraints for the execution platform for this toolchain. | None | | target_compatible_with | A list of constraints for the target platform for this toolchain. | None | | include_rustc_srcs | Whether to download rustc's src code. This is required in order to use rust-analyzer support. | False | +| allocator_library | Target that provides allocator functions when rust_library targets are embedded in a cc_binary. | None | | iso_date | The date of the tool. | None | | rustfmt_version | The version of rustfmt to be associated with the toolchain. | None | | edition | The rust edition to be used by default (2015, 2018, or 2021). If absent, every rule is required to specify its edition attribute. | None | diff --git a/rust/private/repository_utils.bzl b/rust/private/repository_utils.bzl index 7d7f1e3da4..86d3f78ace 100644 --- a/rust/private/repository_utils.bzl +++ b/rust/private/repository_utils.bzl @@ -215,6 +215,7 @@ rust_toolchain( llvm_profdata = {llvm_profdata_label}, rustc_lib = "@{workspace_name}//:rustc_lib", rustc_srcs = {rustc_srcs}, + allocator_library = {allocator_library}, binary_ext = "{binary_ext}", staticlib_ext = "{staticlib_ext}", dylib_ext = "{dylib_ext}", @@ -233,6 +234,7 @@ def BUILD_for_rust_toolchain( exec_triple, target_triple, include_rustc_srcs, + allocator_library, default_edition, include_rustfmt, include_llvm_tools, @@ -245,6 +247,7 @@ def BUILD_for_rust_toolchain( exec_triple (str): The rust-style target that this compiler runs on target_triple (str): The rust-style target triple of the tool include_rustc_srcs (bool, optional): Whether to download rustc's src code. This is required in order to use rust-analyzer support. Defaults to False. + allocator_library (str, optional): Target that provides allocator functions when rust_library targets are embedded in a cc_binary. default_edition (str): Default Rust edition. include_rustfmt (bool): Whether rustfmt is present in the toolchain. include_llvm_tools (bool): Whether llvm-tools are present in the toolchain. @@ -271,6 +274,9 @@ def BUILD_for_rust_toolchain( if include_llvm_tools: llvm_cov_label = "\"@{workspace_name}//:llvm_cov_bin\"".format(workspace_name = workspace_name) llvm_profdata_label = "\"@{workspace_name}//:llvm_profdata_bin\"".format(workspace_name = workspace_name) + allocator_library_label = "None" + if allocator_library: + allocator_library_label = "\"{allocator_library}\"".format(allocator_library = allocator_library) return _build_file_for_rust_toolchain_template.format( toolchain_name = name, @@ -279,6 +285,7 @@ def BUILD_for_rust_toolchain( staticlib_ext = system_to_staticlib_ext(system), dylib_ext = system_to_dylib_ext(system), rustc_srcs = rustc_srcs, + allocator_library = allocator_library_label, stdlib_linkflags = stdlib_linkflags, system = system, default_edition = default_edition, diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index 66c699e7f4..571813b38b 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -723,7 +723,22 @@ _common_attrs = { ), } -_rust_test_attrs = { +_experimental_use_cc_common_link_attrs = { + "experimental_use_cc_common_link": attr.int( + doc = ( + "Whether to use cc_common.link to link rust binaries. " + + "Possible values: [-1, 0, 1]. " + + "-1 means use the value of the toolchain.experimental_use_cc_common_link " + + "boolean build setting to determine. " + + "0 means do not use cc_common.link (use rustc instead). " + + "1 means use cc_common.link." + ), + values = [-1, 0, 1], + default = -1, + ), +} + +_rust_test_attrs = dict({ "crate": attr.label( mandatory = False, doc = dedent("""\ @@ -760,7 +775,7 @@ _rust_test_attrs = { default = Label("@bazel_tools//tools/cpp:grep-includes"), executable = True, ), -} +}.items() + _experimental_use_cc_common_link_attrs.items()) _common_providers = [ rust_common.crate_info, @@ -944,7 +959,7 @@ rust_proc_macro = rule( """), ) -_rust_binary_attrs = { +_rust_binary_attrs = dict({ "crate_type": attr.string( doc = dedent("""\ Crate type that will be passed to `rustc` to be used for building this crate. @@ -976,7 +991,7 @@ _rust_binary_attrs = { default = Label("@bazel_tools//tools/cpp:grep-includes"), executable = True, ), -} +}.items() + _experimental_use_cc_common_link_attrs.items()) rust_binary = rule( implementation = _rust_binary_impl, diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index b6cbd3017d..490bfa1d65 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -557,7 +557,8 @@ def collect_inputs( dep_info, build_info, stamp = False, - force_depend_on_objects = False): + force_depend_on_objects = False, + experimental_use_cc_common_link = False): """Gather's the inputs and required input information for a rustc action Args: @@ -575,6 +576,8 @@ def collect_inputs( https://docs.bazel.build/versions/main/user-manual.html#flag--stamp force_depend_on_objects (bool, optional): Forces dependencies of this rule to be objects rather than metadata, even for libraries. This is used in rustdoc tests. + experimental_use_cc_common_link (bool, optional): Whether rules_rust uses cc_common.link to link + rust binaries. Returns: tuple: A tuple: A tuple of the following items: @@ -634,7 +637,9 @@ def collect_inputs( ], ) - if crate_info.type in ("bin", "cdylib"): + # Register linkstamps when linking with rustc (when linking with + # cc_common.link linkstamps are handled by cc_common.link itself). + if not experimental_use_cc_common_link and crate_info.type in ("bin", "cdylib"): # There is no other way to register an action for each member of a depset than # flattening the depset as of 2021-10-12. Luckily, usually there is only one linkstamp # in a build, and we only flatten the list on binary targets that perform transitive linking, @@ -1011,6 +1016,19 @@ def rustc_compile_action( cc_toolchain, feature_configuration = find_cc_toolchain(ctx) + # Determine whether to use cc_common.link: + # * either if experimental_use_cc_common_link is 1, + # * or if experimental_use_cc_common_link is -1 and + # the toolchain experimental_use_cc_common_link is true. + experimental_use_cc_common_link = False + if hasattr(ctx.attr, "experimental_use_cc_common_link"): + if ctx.attr.experimental_use_cc_common_link == 0: + experimental_use_cc_common_link = False + elif ctx.attr.experimental_use_cc_common_link == 1: + experimental_use_cc_common_link = True + elif ctx.attr.experimental_use_cc_common_link == -1: + experimental_use_cc_common_link = toolchain._experimental_use_cc_common_link + dep_info, build_info, linkstamps = collect_deps( deps = crate_info.deps, proc_macro_deps = crate_info.proc_macro_deps, @@ -1036,15 +1054,22 @@ def rustc_compile_action( dep_info = dep_info, build_info = build_info, stamp = stamp, + experimental_use_cc_common_link = experimental_use_cc_common_link, ) + # The types of rustc outputs to emit. # If we build metadata, we need to keep the command line of the two invocations # (rlib and rmeta) as similar as possible, otherwise rustc rejects the rmeta as # a candidate. # Because of that we need to add emit=metadata to both the rlib and rmeta invocation. + # + # When cc_common linking is enabled, emit a `.o` file, which is later + # passed to the cc_common.link action. emit = ["dep-info", "link"] if build_metadata: emit.append("metadata") + if experimental_use_cc_common_link: + emit = ["obj"] args, env_from_args = construct_arguments( ctx = ctx, @@ -1103,8 +1128,18 @@ def rustc_compile_action( else: formatted_version = "" + # Declares the outputs of the rustc compile action. + # By default this is the binary output; if cc_common.link is used, this is + # the main `.o` file (`output_o` below). outputs = [crate_info.output] + # The `.o` output file, only used for linking via cc_common.link. + output_o = None + if experimental_use_cc_common_link: + obj_ext = ".o" + output_o = ctx.actions.declare_file(crate_info.name + obj_ext, sibling = crate_info.output) + outputs = [output_o] + # For a cdylib that might be added as a dependency to a cc_* target on Windows, it is important to include the # interface library that rustc generates in the output files. interface_library = None @@ -1179,6 +1214,52 @@ def rustc_compile_action( ), ) + if experimental_use_cc_common_link: + # Wrap the main `.o` file into a compilation output suitable for + # cc_common.link. The main `.o` file is useful in both PIC and non-PIC + # modes. + compilation_outputs = cc_common.create_compilation_outputs( + objects = depset([output_o]), + pic_objects = depset([output_o]), + ) + + # Collect the linking contexts of the standard library and dependencies. + linking_contexts = [toolchain.libstd_and_allocator_ccinfo.linking_context, toolchain.stdlib_linkflags.linking_context] + + for dep in crate_info.deps.to_list(): + if dep.cc_info: + linking_contexts.append(dep.cc_info.linking_context) + + # In the cc_common.link action we need to pass the name of the final + # binary (output) relative to the package of this target. + # We compute it by stripping the path to the package directory, + # which is a prefix of the path of `crate_info.output`. + + # The path to the package dir, including a trailing "/". + package_dir = ctx.bin_dir.path + "/" + if ctx.label.workspace_root: + package_dir = package_dir + ctx.label.workspace_root + "/" + if ctx.label.package: + package_dir = package_dir + ctx.label.package + "/" + + if not crate_info.output.path.startswith(package_dir): + fail("The package dir path {} should be a prefix of the crate_info.output.path {}", package_dir, crate_info.output.path) + + output_relative_to_package = crate_info.output.path[len(package_dir):] + + cc_common.link( + actions = ctx.actions, + feature_configuration = feature_configuration, + cc_toolchain = cc_toolchain, + linking_contexts = linking_contexts, + compilation_outputs = compilation_outputs, + name = output_relative_to_package, + grep_includes = ctx.file._grep_includes, + stamp = ctx.attr.stamp, + ) + + outputs = [crate_info.output] + coverage_runfiles = [] if toolchain.llvm_cov and ctx.configuration.coverage_enabled and crate_info.is_test: coverage_runfiles = [toolchain.llvm_cov, toolchain.llvm_profdata] diff --git a/rust/repositories.bzl b/rust/repositories.bzl index 3fcfba3dfb..77b4bac5bc 100644 --- a/rust/repositories.bzl +++ b/rust/repositories.bzl @@ -92,6 +92,7 @@ def rust_register_toolchains( dev_components = False, edition = None, include_rustc_srcs = False, + allocator_library = None, iso_date = None, register_toolchains = True, rustfmt_version = None, @@ -122,6 +123,7 @@ def rust_register_toolchains( edition (str, optional): The rust edition to be used by default (2015, 2018, or 2021). If absent, every target is required to specify its `edition` attribute. include_rustc_srcs (bool, optional): Whether to download rustc's src code. This is required in order to use rust-analyzer support. See [rust_toolchain_repository.include_rustc_srcs](#rust_toolchain_repository-include_rustc_srcs). for more details + allocator_library (str, optional): Target that provides allocator functions when rust_library targets are embedded in a cc_binary. iso_date (str, optional): The date of the nightly or beta release (ignored if the version is a specific version). register_toolchains (bool): If true, repositories will be generated to produce and register `rust_toolchain` targets. rustfmt_version (str, optional): The version of rustfmt. Either "nightly", "beta", or an exact version. Defaults to `version` if not specified. @@ -166,6 +168,7 @@ def rust_register_toolchains( exec_triple = exec_triple, extra_target_triples = extra_target_triples, include_rustc_srcs = include_rustc_srcs, + allocator_library = allocator_library, iso_date = iso_date, register_toolchain = register_toolchains, rustfmt_version = rustfmt_version, @@ -219,6 +222,7 @@ def _rust_toolchain_tools_repository_impl(ctx): name = "rust_toolchain", exec_triple = ctx.attr.exec_triple, include_rustc_srcs = should_include_rustc_srcs(ctx), + allocator_library = ctx.attr.allocator_library, target_triple = ctx.attr.target_triple, stdlib_linkflags = stdlib_linkflags, workspace_name = ctx.attr.name, @@ -244,6 +248,9 @@ rust_toolchain_tools_repository = repository_rule( "selection from toolchain fetching." ), attrs = { + "allocator_library": attr.string( + doc = "Target that provides allocator functions when rust_library targets are embedded in a cc_binary.", + ), "auth": attr.string_dict( doc = ( "Auth object compatible with repository_ctx.download to use when downloading files. " + @@ -348,6 +355,7 @@ def rust_toolchain_repository( exec_compatible_with = None, target_compatible_with = None, include_rustc_srcs = False, + allocator_library = None, iso_date = None, rustfmt_version = None, edition = None, @@ -369,6 +377,7 @@ def rust_toolchain_repository( exec_compatible_with (list, optional): A list of constraints for the execution platform for this toolchain. target_compatible_with (list, optional): A list of constraints for the target platform for this toolchain. include_rustc_srcs (bool, optional): Whether to download rustc's src code. This is required in order to use rust-analyzer support. + allocator_library (str, optional): Target that provides allocator functions when rust_library targets are embedded in a cc_binary. iso_date (str, optional): The date of the tool. rustfmt_version (str, optional): The version of rustfmt to be associated with the toolchain. @@ -395,6 +404,7 @@ def rust_toolchain_repository( name = name + "_tools", exec_triple = exec_triple, include_rustc_srcs = include_rustc_srcs, + allocator_library = allocator_library, target_triple = target_triple, iso_date = iso_date, version = version, @@ -532,6 +542,7 @@ def rust_repository_set( version, exec_triple, include_rustc_srcs = False, + allocator_library = None, extra_target_triples = [], iso_date = None, rustfmt_version = None, @@ -552,6 +563,7 @@ def rust_repository_set( version (str): The version of the tool among "nightly", "beta', or an exact version. exec_triple (str): The Rust-style target that this compiler runs on include_rustc_srcs (bool, optional): Whether to download rustc's src code. This is required in order to use rust-analyzer support. Defaults to False. + allocator_library (str, optional): Target that provides allocator functions when rust_library targets are embedded in a cc_binary. extra_target_triples (list, optional): Additional rust-style targets that this set of toolchains should support. Defaults to []. iso_date (str, optional): The date of the tool. Defaults to None. @@ -575,6 +587,7 @@ def rust_repository_set( name = toolchain_name, exec_triple = exec_triple, include_rustc_srcs = include_rustc_srcs, + allocator_library = allocator_library, target_triple = target_triple, iso_date = iso_date, version = version, diff --git a/rust/settings/BUILD.bazel b/rust/settings/BUILD.bazel index ffdba06ff6..3171bc9551 100644 --- a/rust/settings/BUILD.bazel +++ b/rust/settings/BUILD.bazel @@ -37,6 +37,13 @@ bool_flag( build_setting_default = False, ) +# A flag to control whether to link rust_binary and rust_test targets using +# cc_common.link instead of rustc. +bool_flag( + name = "experimental_use_cc_common_link", + build_setting_default = False, +) + bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index 90a3c593c2..45fd8925e3 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -428,6 +428,10 @@ def _rust_toolchain_impl(ctx): third_party_dir = ctx.attr._third_party_dir[BuildSettingInfo].value pipelined_compilation = ctx.attr._pipelined_compilation[BuildSettingInfo].value + experimental_use_cc_common_link = ctx.attr.experimental_use_cc_common_link[BuildSettingInfo].value + if experimental_use_cc_common_link and not ctx.attr.allocator_library: + fail("rust_toolchain.experimental_use_cc_common_link requires rust_toolchain.allocator_library to be set") + if ctx.attr.rust_lib: # buildifier: disable=print print("`rust_toolchain.rust_lib` is deprecated. Please update {} to use `rust_toolchain.rust_std`".format( @@ -538,6 +542,7 @@ def _rust_toolchain_impl(ctx): _rename_first_party_crates = rename_first_party_crates, _third_party_dir = third_party_dir, _pipelined_compilation = pipelined_compilation, + _experimental_use_cc_common_link = experimental_use_cc_common_link, ) return [ toolchain, @@ -593,6 +598,10 @@ rust_toolchain = rule( ), mandatory = True, ), + "experimental_use_cc_common_link": attr.label( + default = Label("//rust/settings:experimental_use_cc_common_link"), + doc = "Label to a boolean build setting that controls whether cc_common.link is used to link rust binaries.", + ), "llvm_cov": attr.label( doc = "The location of the `llvm-cov` binary. Can be a direct source or a filegroup containing one item. If None, rust code is not instrumented for coverage.", allow_single_file = True, diff --git a/test/cc_common_link/BUILD.bazel b/test/cc_common_link/BUILD.bazel new file mode 100644 index 0000000000..e996993f57 --- /dev/null +++ b/test/cc_common_link/BUILD.bazel @@ -0,0 +1,36 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") +load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test") + +cc_library( + name = "allocator_library", + srcs = ["allocator_library.cc"], + visibility = ["//visibility:public"], +) + +cc_library( + name = "cclinkstampdep", + linkstamp = "cclinkstampdep.cc", +) + +rust_library( + name = "rdep", + srcs = ["rdep.rs"], + edition = "2021", +) + +rust_binary( + name = "bin", + srcs = ["bin.rs"], + edition = "2021", + deps = [ + ":cclinkstampdep", + ":rdep", + ], +) + +rust_test( + name = "test", + srcs = ["test.rs"], + edition = "2021", + deps = [":rdep"], +) diff --git a/test/cc_common_link/WORKSPACE.bazel b/test/cc_common_link/WORKSPACE.bazel new file mode 100644 index 0000000000..b2138761d4 --- /dev/null +++ b/test/cc_common_link/WORKSPACE.bazel @@ -0,0 +1,15 @@ +workspace(name = "test_cc_common_link") + +local_repository( + name = "rules_rust", + path = "../../", +) + +load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains") + +rules_rust_dependencies() + +rust_register_toolchains( + allocator_library = "@test_cc_common_link//:allocator_library", + edition = "2018", +) diff --git a/test/cc_common_link/allocator_library.cc b/test/cc_common_link/allocator_library.cc new file mode 100644 index 0000000000..be82631b07 --- /dev/null +++ b/test/cc_common_link/allocator_library.cc @@ -0,0 +1,52 @@ +#include + +// This file has some exciting magic to get Rust code linking in a cc_binary. +// The Rust compiler generates some similar symbol aliases when it links, so we +// have to do it manually. We mark all our symbols as weak so that linking this +// via Rust tooling to produce a binary with a Rust main works. +// +// It is intended to be used in rust_toolchain.allocator_library. +// +// https://github.com/rust-lang/rust/blob/master/library/alloc/src/alloc.rs +// and https://github.com/rust-lang/rust/blob/master/library/std/src/alloc.rs +// are the best source of docs I've found on these functions and variables. +// https://doc.rust-lang.org/std/alloc/index.html talks about how this is +// intended to be used. +// +// Also note +// https://rust-lang.github.io/unsafe-code-guidelines/layout/scalars.html for +// the sizes of the various integer types. +// +// This file strongly assumes that the default allocator is used. It will +// not work with any other allocated switched in via `#[global_allocator]`. + +// New feature as of https://github.com/rust-lang/rust/pull/88098. +__attribute__((weak)) uint8_t __rust_alloc_error_handler_should_panic = 0; + +extern "C" uint8_t *__rdl_alloc(uintptr_t size, uintptr_t align); +extern "C" __attribute__((weak)) +uint8_t *__rust_alloc(uintptr_t size, uintptr_t align) { + return __rdl_alloc(size, align); +} +extern "C" void __rdl_dealloc(uint8_t *ptr, uintptr_t size, uintptr_t align); +extern "C" __attribute__((weak)) +void __rust_dealloc(uint8_t *ptr, uintptr_t size, uintptr_t align) { + __rdl_dealloc(ptr, size, align); +} +extern "C" uint8_t *__rdl_realloc(uint8_t *ptr, uintptr_t old_size, uintptr_t align, + uintptr_t new_size); +extern "C" __attribute__((weak)) +uint8_t *__rust_realloc(uint8_t *ptr, uintptr_t old_size, uintptr_t align, + uintptr_t new_size) { + return __rdl_realloc(ptr, old_size, align, new_size); +} +extern "C" uint8_t *__rdl_alloc_zeroed(uintptr_t size, uintptr_t align); +extern "C" __attribute__((weak)) +uint8_t *__rust_alloc_zeroed(uintptr_t size, uintptr_t align) { + return __rdl_alloc_zeroed(size, align); +} +extern "C" void __rdl_oom(uintptr_t size, uintptr_t align); +extern "C" __attribute__((weak)) +void __rust_alloc_error_handler(uintptr_t size, uintptr_t align) { + __rdl_oom(size, align); +} diff --git a/test/cc_common_link/bin.rs b/test/cc_common_link/bin.rs new file mode 100644 index 0000000000..b50ff14ffb --- /dev/null +++ b/test/cc_common_link/bin.rs @@ -0,0 +1,10 @@ +use std::os::raw::c_int; + +extern "C" { + pub fn cclinkstampdep() -> c_int; +} + +fn main() { + println!("bin rdep: {}", rdep::rdep()); + println!("cclinkstampdep: {}", unsafe { cclinkstampdep() }); +} diff --git a/test/cc_common_link/cclinkstampdep.cc b/test/cc_common_link/cclinkstampdep.cc new file mode 100644 index 0000000000..eda3948d4b --- /dev/null +++ b/test/cc_common_link/cclinkstampdep.cc @@ -0,0 +1,3 @@ +extern "C" int cclinkstampdep() { + return 121; +} diff --git a/test/cc_common_link/rdep.rs b/test/cc_common_link/rdep.rs new file mode 100644 index 0000000000..249953f43d --- /dev/null +++ b/test/cc_common_link/rdep.rs @@ -0,0 +1,3 @@ +pub fn rdep() -> i32 { + 43 +} diff --git a/test/cc_common_link/test.rs b/test/cc_common_link/test.rs new file mode 100644 index 0000000000..4dfb909092 --- /dev/null +++ b/test/cc_common_link/test.rs @@ -0,0 +1,4 @@ +#[test] +fn test() { + assert_eq!(43, rdep::rdep()); +} From 3a69ce09b233a4fa1fbe9b1e8cc74a6126e73522 Mon Sep 17 00:00:00 2001 From: ImJeremyHe <297323986@qq.com> Date: Mon, 15 Aug 2022 13:38:21 +0800 Subject: [PATCH 20/26] Update wasm_bindgen to 0.2.82 (#1513) --- wasm_bindgen/3rdparty/Cargo.Bazel.lock | 171 ++++---- ...UILD.android_system_properties-0.1.4.bazel | 91 +++++ ...1.0.58.bazel => BUILD.anyhow-1.0.61.bazel} | 6 +- .../3rdparty/crates/BUILD.atty-0.2.14.bazel | 2 +- wasm_bindgen/3rdparty/crates/BUILD.bazel | 16 +- ...0.4.19.bazel => BUILD.chrono-0.4.22.bazel} | 10 +- .../BUILD.core-foundation-sys-0.8.3.bazel | 174 ++++++++ ...el => BUILD.crossbeam-channel-0.5.6.bazel} | 4 +- ...azel => BUILD.crossbeam-deque-0.8.2.bazel} | 6 +- ...zel => BUILD.crossbeam-epoch-0.9.10.bazel} | 8 +- ...zel => BUILD.crossbeam-utils-0.8.11.bazel} | 6 +- ...l-0.4.43.bazel => BUILD.curl-0.4.44.bazel} | 24 +- ...> BUILD.curl-sys-0.4.56+curl-7.83.1.bazel} | 8 +- .../3rdparty/crates/BUILD.docopt-1.1.1.bazel | 4 +- ...1.7.0.bazel => BUILD.fastrand-1.8.0.bazel} | 2 +- .../crates/BUILD.filetime-0.2.17.bazel | 4 +- .../crates/BUILD.getrandom-0.2.7.bazel | 2 +- .../crates/BUILD.hermit-abi-0.1.19.bazel | 2 +- .../crates/BUILD.iana-time-zone-0.1.44.bazel | 138 +++++++ ...toa-1.0.2.bazel => BUILD.itoa-1.0.3.bazel} | 2 +- .../3rdparty/crates/BUILD.js-sys-0.3.59.bazel | 91 +++++ ...0.2.126.bazel => BUILD.libc-0.2.131.bazel} | 6 +- .../crates/BUILD.libz-sys-1.1.8.bazel | 2 +- .../crates/BUILD.num_cpus-1.13.1.bazel | 2 +- .../crates/BUILD.num_threads-0.1.6.bazel | 2 +- .../crates/BUILD.openssl-sys-0.9.75.bazel | 2 +- ...0.bazel => BUILD.proc-macro2-1.0.43.bazel} | 8 +- ...-1.0.20.bazel => BUILD.quote-1.0.21.bazel} | 8 +- .../3rdparty/crates/BUILD.rand-0.8.5.bazel | 2 +- .../3rdparty/crates/BUILD.rayon-1.5.3.bazel | 2 +- .../crates/BUILD.rayon-core-1.9.3.bazel | 6 +- ...bazel => BUILD.redox_syscall-0.2.16.bazel} | 2 +- .../3rdparty/crates/BUILD.rouille-3.5.0.bazel | 10 +- ...yu-1.0.10.bazel => BUILD.ryu-1.0.11.bazel} | 2 +- ....0.139.bazel => BUILD.serde-1.0.143.bazel} | 8 +- ...bazel => BUILD.serde_derive-1.0.143.bazel} | 12 +- ...82.bazel => BUILD.serde_json-1.0.83.bazel} | 12 +- .../3rdparty/crates/BUILD.socket2-0.4.4.bazel | 2 +- ...yn-1.0.98.bazel => BUILD.syn-1.0.99.bazel} | 12 +- .../crates/BUILD.tempfile-3.3.0.bazel | 10 +- ...e-0.3.11.bazel => BUILD.time-0.3.13.bazel} | 4 +- .../crates/BUILD.tiny_http-0.8.2.bazel | 2 +- ....bazel => BUILD.unicode-ident-1.0.3.bazel} | 4 +- .../crates/BUILD.wait-timeout-0.2.0.bazel | 8 +- .../3rdparty/crates/BUILD.walrus-0.19.0.bazel | 2 +- .../crates/BUILD.walrus-macro-0.19.0.bazel | 6 +- ....bazel => BUILD.wasm-bindgen-0.2.82.bazel} | 8 +- ...> BUILD.wasm-bindgen-backend-0.2.82.bazel} | 12 +- ...ILD.wasm-bindgen-cli-support-0.2.82.bazel} | 18 +- ...wasm-bindgen-externref-xform-0.2.82.bazel} | 4 +- ... => BUILD.wasm-bindgen-macro-0.2.82.bazel} | 6 +- ...D.wasm-bindgen-macro-support-0.2.82.bazel} | 12 +- ...sm-bindgen-multi-value-xform-0.2.82.bazel} | 4 +- ...=> BUILD.wasm-bindgen-shared-0.2.82.bazel} | 6 +- ...D.wasm-bindgen-threads-xform-0.2.82.bazel} | 6 +- ...asm-bindgen-wasm-conventions-0.2.82.bazel} | 4 +- ...asm-bindgen-wasm-interpreter-0.2.82.bazel} | 6 +- .../crates/BUILD.wasmprinter-0.2.33.bazel | 2 +- .../3rdparty/crates/BUILD.winapi-0.3.9.bazel | 10 + .../crates/BUILD.wit-parser-0.2.0.bazel | 2 +- .../crates/BUILD.wit-printer-0.2.0.bazel | 2 +- .../crates/BUILD.wit-text-0.8.0.bazel | 2 +- .../crates/BUILD.wit-validator-0.2.1.bazel | 2 +- .../crates/BUILD.wit-walrus-0.6.0.bazel | 2 +- wasm_bindgen/3rdparty/crates/defs.bzl | 379 ++++++++++-------- wasm_bindgen/repositories.bzl | 4 +- 66 files changed, 991 insertions(+), 407 deletions(-) create mode 100644 wasm_bindgen/3rdparty/crates/BUILD.android_system_properties-0.1.4.bazel rename wasm_bindgen/3rdparty/crates/{BUILD.anyhow-1.0.58.bazel => BUILD.anyhow-1.0.61.bazel} (97%) rename wasm_bindgen/3rdparty/crates/{BUILD.chrono-0.4.19.bazel => BUILD.chrono-0.4.22.bazel} (92%) create mode 100644 wasm_bindgen/3rdparty/crates/BUILD.core-foundation-sys-0.8.3.bazel rename wasm_bindgen/3rdparty/crates/{BUILD.crossbeam-channel-0.5.5.bazel => BUILD.crossbeam-channel-0.5.6.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.crossbeam-deque-0.8.1.bazel => BUILD.crossbeam-deque-0.8.2.bazel} (93%) rename wasm_bindgen/3rdparty/crates/{BUILD.crossbeam-epoch-0.9.9.bazel => BUILD.crossbeam-epoch-0.9.10.bazel} (95%) rename wasm_bindgen/3rdparty/crates/{BUILD.crossbeam-utils-0.8.10.bazel => BUILD.crossbeam-utils-0.8.11.bazel} (97%) rename wasm_bindgen/3rdparty/crates/{BUILD.curl-0.4.43.bazel => BUILD.curl-0.4.44.bazel} (90%) rename wasm_bindgen/3rdparty/crates/{BUILD.curl-sys-0.4.55+curl-7.83.1.bazel => BUILD.curl-sys-0.4.56+curl-7.83.1.bazel} (94%) rename wasm_bindgen/3rdparty/crates/{BUILD.fastrand-1.7.0.bazel => BUILD.fastrand-1.8.0.bazel} (99%) create mode 100644 wasm_bindgen/3rdparty/crates/BUILD.iana-time-zone-0.1.44.bazel rename wasm_bindgen/3rdparty/crates/{BUILD.itoa-1.0.2.bazel => BUILD.itoa-1.0.3.bazel} (98%) create mode 100644 wasm_bindgen/3rdparty/crates/BUILD.js-sys-0.3.59.bazel rename wasm_bindgen/3rdparty/crates/{BUILD.libc-0.2.126.bazel => BUILD.libc-0.2.131.bazel} (97%) rename wasm_bindgen/3rdparty/crates/{BUILD.proc-macro2-1.0.40.bazel => BUILD.proc-macro2-1.0.43.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.quote-1.0.20.bazel => BUILD.quote-1.0.21.bazel} (95%) rename wasm_bindgen/3rdparty/crates/{BUILD.redox_syscall-0.2.13.bazel => BUILD.redox_syscall-0.2.16.bazel} (98%) rename wasm_bindgen/3rdparty/crates/{BUILD.ryu-1.0.10.bazel => BUILD.ryu-1.0.11.bazel} (98%) rename wasm_bindgen/3rdparty/crates/{BUILD.serde-1.0.139.bazel => BUILD.serde-1.0.143.bazel} (95%) rename wasm_bindgen/3rdparty/crates/{BUILD.serde_derive-1.0.139.bazel => BUILD.serde_derive-1.0.143.bazel} (93%) rename wasm_bindgen/3rdparty/crates/{BUILD.serde_json-1.0.82.bazel => BUILD.serde_json-1.0.83.bazel} (93%) rename wasm_bindgen/3rdparty/crates/{BUILD.syn-1.0.98.bazel => BUILD.syn-1.0.99.bazel} (93%) rename wasm_bindgen/3rdparty/crates/{BUILD.time-0.3.11.bazel => BUILD.time-0.3.13.bazel} (97%) rename wasm_bindgen/3rdparty/crates/{BUILD.unicode-ident-1.0.1.bazel => BUILD.unicode-ident-1.0.3.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-0.2.81.bazel => BUILD.wasm-bindgen-0.2.82.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-backend-0.2.81.bazel => BUILD.wasm-bindgen-backend-0.2.82.bazel} (88%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-cli-support-0.2.81.bazel => BUILD.wasm-bindgen-cli-support-0.2.82.bazel} (88%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-externref-xform-0.2.81.bazel => BUILD.wasm-bindgen-externref-xform-0.2.82.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-macro-0.2.81.bazel => BUILD.wasm-bindgen-macro-0.2.82.bazel} (94%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-macro-support-0.2.81.bazel => BUILD.wasm-bindgen-macro-support-0.2.82.bazel} (89%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-multi-value-xform-0.2.81.bazel => BUILD.wasm-bindgen-multi-value-xform-0.2.82.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-shared-0.2.81.bazel => BUILD.wasm-bindgen-shared-0.2.82.bazel} (98%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-threads-xform-0.2.81.bazel => BUILD.wasm-bindgen-threads-xform-0.2.82.bazel} (94%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-wasm-conventions-0.2.81.bazel => BUILD.wasm-bindgen-wasm-conventions-0.2.82.bazel} (96%) rename wasm_bindgen/3rdparty/crates/{BUILD.wasm-bindgen-wasm-interpreter-0.2.81.bazel => BUILD.wasm-bindgen-wasm-interpreter-0.2.82.bazel} (94%) diff --git a/wasm_bindgen/3rdparty/Cargo.Bazel.lock b/wasm_bindgen/3rdparty/Cargo.Bazel.lock index 3e11ceb783..8820fe762a 100644 --- a/wasm_bindgen/3rdparty/Cargo.Bazel.lock +++ b/wasm_bindgen/3rdparty/Cargo.Bazel.lock @@ -11,11 +11,20 @@ dependencies = [ "memchr", ] +[[package]] +name = "android_system_properties" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7ed72e1635e121ca3e79420540282af22da58be50de153d36f81ddc6b83aa9e" +dependencies = [ + "libc", +] + [[package]] name = "anyhow" -version = "1.0.58" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704" +checksum = "508b352bb5c066aac251f6daf6b36eccd03e8a88e8081cd44959ea277a3af9a8" [[package]] name = "ascii" @@ -123,11 +132,11 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.19" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" +checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1" dependencies = [ - "libc", + "iana-time-zone", "num-integer", "num-traits", "winapi", @@ -139,11 +148,17 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e" +[[package]] +name = "core-foundation-sys" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" + [[package]] name = "crossbeam-channel" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c02a4d71819009c192cf4872265391563fd6a84c81ff2c0f2a7026ca4c1d85c" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" dependencies = [ "cfg-if", "crossbeam-utils", @@ -151,9 +166,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -162,9 +177,9 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07db9d94cbd326813772c968ccd25999e5f8ae22f4f8d1b11effa37ef6ce281d" +checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1" dependencies = [ "autocfg", "cfg-if", @@ -176,9 +191,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d82ee10ce34d7bc12c2122495e7593a9c41347ecdd64185af4ecf72cb1a7f83" +checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc" dependencies = [ "cfg-if", "once_cell", @@ -186,9 +201,9 @@ dependencies = [ [[package]] name = "curl" -version = "0.4.43" +version = "0.4.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d855aeef205b43f65a5001e0997d81f8efca7badad4fad7d897aa7f0d0651f" +checksum = "509bd11746c7ac09ebd19f0b17782eae80aadee26237658a6b4808afb5c11a22" dependencies = [ "curl-sys", "libc", @@ -201,9 +216,9 @@ dependencies = [ [[package]] name = "curl-sys" -version = "0.4.55+curl-7.83.1" +version = "0.4.56+curl-7.83.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23734ec77368ec583c2e61dd3f0b0e5c98b93abe6d2a004ca06b91dd7e3e2762" +checksum = "6093e169dd4de29e468fa649fbae11cdcd5551c81fe5bf1b0677adad7ef3d26f" dependencies = [ "cc", "libc", @@ -271,9 +286,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" +checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" dependencies = [ "instant", ] @@ -365,6 +380,19 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" +[[package]] +name = "iana-time-zone" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808cf7d67cf4a22adc5be66e75ebdf769b3f2ea032041437a7061f97a63dad4b" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "js-sys", + "wasm-bindgen", + "winapi", +] + [[package]] name = "id-arena" version = "2.2.1" @@ -405,9 +433,18 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754" + +[[package]] +name = "js-sys" +version = "0.3.59" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2" +dependencies = [ + "wasm-bindgen", +] [[package]] name = "lazy_static" @@ -423,9 +460,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.126" +version = "0.2.131" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" +checksum = "04c3b4822ccebfa39c02fc03d1534441b22ead323fa0f48bb7ddd8e6ba076a40" [[package]] name = "libz-sys" @@ -668,9 +705,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.40" +version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" +checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab" dependencies = [ "unicode-ident", ] @@ -683,9 +720,9 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quote" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" dependencies = [ "proc-macro2", ] @@ -746,9 +783,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.13" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ "bitflags", ] @@ -816,9 +853,9 @@ checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" [[package]] name = "ryu" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" +checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "safemem" @@ -844,18 +881,18 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "serde" -version = "1.0.139" +version = "1.0.143" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6" +checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.139" +version = "1.0.143" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb" +checksum = "d3d8e8de557aee63c26b85b947f5e59b690d0454c753f3adeb5cd7835ab88391" dependencies = [ "proc-macro2", "quote", @@ -864,9 +901,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.82" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7" +checksum = "38dd04e3c8279e75b31ef29dbdceebfe5ad89f4d0937213c53f7d49d01b3d5a7" dependencies = [ "itoa", "ryu", @@ -906,9 +943,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "syn" -version = "1.0.98" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13" dependencies = [ "proc-macro2", "quote", @@ -955,9 +992,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.11" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217" +checksum = "db76ff9fa4b1458b3c7f077f3ff9887394058460d21e634355b273aaf11eea45" dependencies = [ "libc", "num_threads", @@ -1017,9 +1054,9 @@ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" +checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf" [[package]] name = "unicode-normalization" @@ -1104,9 +1141,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" +checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -1114,13 +1151,13 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a" +checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f" dependencies = [ "bumpalo", - "lazy_static", "log", + "once_cell", "proc-macro2", "quote", "syn", @@ -1129,7 +1166,7 @@ dependencies = [ [[package]] name = "wasm-bindgen-cli" -version = "0.2.81" +version = "0.2.82" dependencies = [ "anyhow", "assert_cmd", @@ -1159,9 +1196,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-cli-support" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4016fbd42224de21aab2f009aeaec61067d278a298ba7f8f7f8d40fbffea0822" +checksum = "f583642dbe7dcd382bdefe7d66bfc1b9915677aebafe90da5b30c1951b8eb6b4" dependencies = [ "anyhow", "base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1183,9 +1220,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-externref-xform" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f33c8e2d3f3b6f6647f982911eb4cb44998c8cca97a4fe7afc99f616ebb33a73" +checksum = "160edba014673ad3d778bf6455a29ebf34eeec826205fd827ab77d2c5facb4ff" dependencies = [ "anyhow", "walrus", @@ -1193,9 +1230,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa" +checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1203,9 +1240,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048" +checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da" dependencies = [ "proc-macro2", "quote", @@ -1216,9 +1253,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-multi-value-xform" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7015b54357604811162710d5cf274ab85d974fe1e324222dd5b2133afdefe9b9" +checksum = "f325e04a6c8054111290e264928836909af56d702ee4cf66e453951365a18b13" dependencies = [ "anyhow", "walrus", @@ -1226,15 +1263,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be" +checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a" [[package]] name = "wasm-bindgen-threads-xform" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6961b838d9a9c121ba4a1eea1628014cc759469e3defb42bbac9c5ed0f65be14" +checksum = "49a8f631f078e8e8dedec16ca98dc23cc47d4b63db9bf067cb4471aa768d7256" dependencies = [ "anyhow", "walrus", @@ -1243,9 +1280,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-wasm-conventions" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0a0eca38fe89471f57d6903f3e17e732d2d6f995a7af5b23f27df7fee0f0d18" +checksum = "f550ec6c59aad41a02ba60f59aa92bca03ada228e0a01fd5d5f21d889ef97a23" dependencies = [ "anyhow", "walrus", @@ -1253,9 +1290,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-wasm-interpreter" -version = "0.2.81" +version = "0.2.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b1c9fb7f71137840932bbb853ef1f83d68c88584b716c9bbae38675c9fb8b86" +checksum = "9c736fc384fa38ac5a906f7409d0e99832a79993dd76315d3befc3471d494141" dependencies = [ "anyhow", "log", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.android_system_properties-0.1.4.bazel b/wasm_bindgen/3rdparty/crates/BUILD.android_system_properties-0.1.4.bazel new file mode 100644 index 0000000000..bea79678af --- /dev/null +++ b/wasm_bindgen/3rdparty/crates/BUILD.android_system_properties-0.1.4.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //wasm_bindgen/3rdparty:crates_vendor +############################################################################### + +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 = "android_system_properties", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", + ], + }), +) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.anyhow-1.0.58.bazel b/wasm_bindgen/3rdparty/crates/BUILD.anyhow-1.0.61.bazel similarity index 97% rename from wasm_bindgen/3rdparty/crates/BUILD.anyhow-1.0.58.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.anyhow-1.0.61.bazel index 07f7a98ed4..8a71dd905b 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.anyhow-1.0.58.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.anyhow-1.0.61.bazel @@ -87,11 +87,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.58", + version = "1.0.61", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:build_script_build", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:build_script_build", ], }), ) @@ -155,7 +155,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.58", + version = "1.0.61", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.atty-0.2.14.bazel b/wasm_bindgen/3rdparty/crates/BUILD.atty-0.2.14.bazel index f3bc4d89c5..cc549f5ea9 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.atty-0.2.14.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.atty-0.2.14.bazel @@ -112,7 +112,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.bazel b/wasm_bindgen/3rdparty/crates/BUILD.bazel index 09fec3a3f6..9eaffecfd1 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.bazel @@ -29,7 +29,7 @@ filegroup( # Workspace Member Dependencies alias( name = "anyhow", - actual = "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + actual = "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", tags = ["manual"], ) @@ -41,7 +41,7 @@ alias( alias( name = "curl", - actual = "@rules_rust_wasm_bindgen__curl-0.4.43//:curl", + actual = "@rules_rust_wasm_bindgen__curl-0.4.44//:curl", tags = ["manual"], ) @@ -89,19 +89,19 @@ alias( alias( name = "serde", - actual = "@rules_rust_wasm_bindgen__serde-1.0.139//:serde", + actual = "@rules_rust_wasm_bindgen__serde-1.0.143//:serde", tags = ["manual"], ) alias( name = "serde_derive", - actual = "@rules_rust_wasm_bindgen__serde_derive-1.0.139//:serde_derive", + actual = "@rules_rust_wasm_bindgen__serde_derive-1.0.143//:serde_derive", tags = ["manual"], ) alias( name = "serde_json", - actual = "@rules_rust_wasm_bindgen__serde_json-1.0.82//:serde_json", + actual = "@rules_rust_wasm_bindgen__serde_json-1.0.83//:serde_json", tags = ["manual"], ) @@ -119,19 +119,19 @@ alias( alias( name = "wasm-bindgen", - actual = "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.81//:wasm_bindgen", + actual = "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.82//:wasm_bindgen", tags = ["manual"], ) alias( name = "wasm-bindgen-cli-support", - actual = "@rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.81//:wasm_bindgen_cli_support", + actual = "@rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.82//:wasm_bindgen_cli_support", tags = ["manual"], ) alias( name = "wasm-bindgen-shared", - actual = "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81//:wasm_bindgen_shared", + actual = "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82//:wasm_bindgen_shared", tags = ["manual"], ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.chrono-0.4.19.bazel b/wasm_bindgen/3rdparty/crates/BUILD.chrono-0.4.22.bazel similarity index 92% rename from wasm_bindgen/3rdparty/crates/BUILD.chrono-0.4.19.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.chrono-0.4.22.bazel index fe8b62c35e..3c53d3e094 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.chrono-0.4.19.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.chrono-0.4.22.bazel @@ -51,7 +51,7 @@ rust_library( }), crate_features = [ "clock", - "libc", + "iana-time-zone", "std", "winapi", ], @@ -60,7 +60,7 @@ rust_library( "//conditions:default": [ ], }), - edition = "2015", + edition = "2018", proc_macro_deps = [ ] + select_with_or({ "//conditions:default": [ @@ -85,7 +85,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.4.19", + version = "0.4.22", deps = [ ] + select_with_or({ # cfg(windows) @@ -97,12 +97,12 @@ rust_library( "@rules_rust_wasm_bindgen__winapi-0.3.9//:winapi", # Common Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__iana-time-zone-0.1.44//:iana_time_zone", "@rules_rust_wasm_bindgen__num-integer-0.1.45//:num_integer", "@rules_rust_wasm_bindgen__num-traits-0.2.15//:num_traits", ], "//conditions:default": [ - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__iana-time-zone-0.1.44//:iana_time_zone", "@rules_rust_wasm_bindgen__num-integer-0.1.45//:num_integer", "@rules_rust_wasm_bindgen__num-traits-0.2.15//:num_traits", ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.core-foundation-sys-0.8.3.bazel b/wasm_bindgen/3rdparty/crates/BUILD.core-foundation-sys-0.8.3.bazel new file mode 100644 index 0000000000..c583689873 --- /dev/null +++ b/wasm_bindgen/3rdparty/crates/BUILD.core-foundation-sys-0.8.3.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //wasm_bindgen/3rdparty:crates_vendor +############################################################################### + +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 = "core_foundation_sys", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_wasm_bindgen__core-foundation-sys-0.8.3//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "core-foundation-sys_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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.8.3", + 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 = "core-foundation-sys_build_script", + tags = [ + "manual", + ], +) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-channel-0.5.5.bazel b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-channel-0.5.6.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.crossbeam-channel-0.5.5.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.crossbeam-channel-0.5.6.bazel index 8117a186a1..ee7d158dc8 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-channel-0.5.5.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-channel-0.5.6.bazel @@ -84,12 +84,12 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.5.5", + version = "0.5.6", deps = [ ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.10//:crossbeam_utils", + "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.11//:crossbeam_utils", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-deque-0.8.1.bazel b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-deque-0.8.2.bazel similarity index 93% rename from wasm_bindgen/3rdparty/crates/BUILD.crossbeam-deque-0.8.1.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.crossbeam-deque-0.8.2.bazel index 2d5ae16ca1..5afa1e62c9 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-deque-0.8.1.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-deque-0.8.2.bazel @@ -85,13 +85,13 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.8.1", + version = "0.8.2", deps = [ ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__crossbeam-epoch-0.9.9//:crossbeam_epoch", - "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.10//:crossbeam_utils", + "@rules_rust_wasm_bindgen__crossbeam-epoch-0.9.10//:crossbeam_epoch", + "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.11//:crossbeam_utils", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-epoch-0.9.9.bazel b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-epoch-0.9.10.bazel similarity index 95% rename from wasm_bindgen/3rdparty/crates/BUILD.crossbeam-epoch-0.9.9.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.crossbeam-epoch-0.9.10.bazel index 3563114851..67c4cb824d 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-epoch-0.9.9.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-epoch-0.9.10.bazel @@ -88,13 +88,13 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.9.9", + version = "0.9.10", deps = [ ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__crossbeam-epoch-0.9.9//:build_script_build", - "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.10//:crossbeam_utils", + "@rules_rust_wasm_bindgen__crossbeam-epoch-0.9.10//:build_script_build", + "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.11//:crossbeam_utils", "@rules_rust_wasm_bindgen__memoffset-0.6.5//:memoffset", "@rules_rust_wasm_bindgen__once_cell-1.13.0//:once_cell", "@rules_rust_wasm_bindgen__scopeguard-1.1.0//:scopeguard", @@ -162,7 +162,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "0.9.9", + version = "0.9.10", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-utils-0.8.10.bazel b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-utils-0.8.11.bazel similarity index 97% rename from wasm_bindgen/3rdparty/crates/BUILD.crossbeam-utils-0.8.10.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.crossbeam-utils-0.8.11.bazel index f126f64a91..0e198e29b8 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-utils-0.8.10.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.crossbeam-utils-0.8.11.bazel @@ -88,12 +88,12 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.8.10", + version = "0.8.11", deps = [ ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.10//:build_script_build", + "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.11//:build_script_build", "@rules_rust_wasm_bindgen__once_cell-1.13.0//:once_cell", ], }), @@ -159,7 +159,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "0.8.10", + version = "0.8.11", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.curl-0.4.43.bazel b/wasm_bindgen/3rdparty/crates/BUILD.curl-0.4.44.bazel similarity index 90% rename from wasm_bindgen/3rdparty/crates/BUILD.curl-0.4.43.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.curl-0.4.44.bazel index 715ad41d75..1a687ae3fc 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.curl-0.4.43.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.curl-0.4.44.bazel @@ -89,7 +89,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.4.43", + version = "0.4.44", deps = [ ] + select_with_or({ # cfg(all(unix, not(target_os = "macos"))) @@ -116,9 +116,9 @@ rust_library( "@rules_rust_wasm_bindgen__openssl-sys-0.9.75//:openssl_sys", # Common Deps - "@rules_rust_wasm_bindgen__curl-0.4.43//:build_script_build", - "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys", - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__curl-0.4.44//:build_script_build", + "@rules_rust_wasm_bindgen__curl-sys-0.4.56-curl-7.83.1//:curl_sys", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__socket2-0.4.4//:socket2", ], # cfg(target_env = "msvc") @@ -131,15 +131,15 @@ rust_library( "@rules_rust_wasm_bindgen__winapi-0.3.9//:winapi", # Common Deps - "@rules_rust_wasm_bindgen__curl-0.4.43//:build_script_build", - "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys", - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__curl-0.4.44//:build_script_build", + "@rules_rust_wasm_bindgen__curl-sys-0.4.56-curl-7.83.1//:curl_sys", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__socket2-0.4.4//:socket2", ], "//conditions:default": [ - "@rules_rust_wasm_bindgen__curl-0.4.43//:build_script_build", - "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys", - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__curl-0.4.44//:build_script_build", + "@rules_rust_wasm_bindgen__curl-sys-0.4.56-curl-7.83.1//:curl_sys", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__socket2-0.4.4//:socket2", ], }), @@ -206,12 +206,12 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "0.4.43", + version = "0.4.44", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1//:curl_sys", + "@rules_rust_wasm_bindgen__curl-sys-0.4.56-curl-7.83.1//:curl_sys", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.curl-sys-0.4.55+curl-7.83.1.bazel b/wasm_bindgen/3rdparty/crates/BUILD.curl-sys-0.4.56+curl-7.83.1.bazel similarity index 94% rename from wasm_bindgen/3rdparty/crates/BUILD.curl-sys-0.4.55+curl-7.83.1.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.curl-sys-0.4.56+curl-7.83.1.bazel index d79622e8fb..c33ce7ae73 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.curl-sys-0.4.55+curl-7.83.1.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.curl-sys-0.4.56+curl-7.83.1.bazel @@ -83,7 +83,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.4.55+curl-7.83.1", + version = "0.4.56+curl-7.83.1", deps = [ ] + select_with_or({ # cfg(all(unix, not(target_os = "macos"))) @@ -109,7 +109,7 @@ rust_library( "@rules_rust_wasm_bindgen__openssl-sys-0.9.75//:openssl_sys", # Common Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__libz-sys-1.1.8//:libz_sys", ], # cfg(windows) @@ -121,11 +121,11 @@ rust_library( "@rules_rust_wasm_bindgen__winapi-0.3.9//:winapi", # Common Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__libz-sys-1.1.8//:libz_sys", ], "//conditions:default": [ - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__libz-sys-1.1.8//:libz_sys", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.docopt-1.1.1.bazel b/wasm_bindgen/3rdparty/crates/BUILD.docopt-1.1.1.bazel index 2443ad6fc0..c260f51423 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.docopt-1.1.1.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.docopt-1.1.1.bazel @@ -88,7 +88,7 @@ rust_library( "//conditions:default": [ "@rules_rust_wasm_bindgen__lazy_static-1.4.0//:lazy_static", "@rules_rust_wasm_bindgen__regex-1.6.0//:regex", - "@rules_rust_wasm_bindgen__serde-1.0.139//:serde", + "@rules_rust_wasm_bindgen__serde-1.0.143//:serde", "@rules_rust_wasm_bindgen__strsim-0.10.0//:strsim", ], }), @@ -158,7 +158,7 @@ rust_binary( "//conditions:default": [ "@rules_rust_wasm_bindgen__lazy_static-1.4.0//:lazy_static", "@rules_rust_wasm_bindgen__regex-1.6.0//:regex", - "@rules_rust_wasm_bindgen__serde-1.0.139//:serde", + "@rules_rust_wasm_bindgen__serde-1.0.143//:serde", "@rules_rust_wasm_bindgen__strsim-0.10.0//:strsim", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.fastrand-1.7.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.fastrand-1.8.0.bazel similarity index 99% rename from wasm_bindgen/3rdparty/crates/BUILD.fastrand-1.7.0.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.fastrand-1.8.0.bazel index 1d164f4c3d..0c63347685 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.fastrand-1.7.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.fastrand-1.8.0.bazel @@ -81,7 +81,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.7.0", + version = "1.8.0", deps = [ ] + select_with_or({ # cfg(target_arch = "wasm32") diff --git a/wasm_bindgen/3rdparty/crates/BUILD.filetime-0.2.17.bazel b/wasm_bindgen/3rdparty/crates/BUILD.filetime-0.2.17.bazel index 454efa16f4..970b578d9f 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.filetime-0.2.17.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.filetime-0.2.17.bazel @@ -87,7 +87,7 @@ rust_library( # cfg(target_os = "redox") # # No supported platform triples for cfg: 'cfg(target_os = "redox")' - # Skipped dependencies: [{"id":"redox_syscall 0.2.13","target":"syscall"}] + # Skipped dependencies: [{"id":"redox_syscall 0.2.16","target":"syscall"}] # # cfg(unix) ( @@ -112,7 +112,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.getrandom-0.2.7.bazel b/wasm_bindgen/3rdparty/crates/BUILD.getrandom-0.2.7.bazel index 457c79cb46..ab3352548d 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.getrandom-0.2.7.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.getrandom-0.2.7.bazel @@ -118,7 +118,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel b/wasm_bindgen/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel index 66f549db00..61516a3123 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel @@ -86,7 +86,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.iana-time-zone-0.1.44.bazel b/wasm_bindgen/3rdparty/crates/BUILD.iana-time-zone-0.1.44.bazel new file mode 100644 index 0000000000..83985a8393 --- /dev/null +++ b/wasm_bindgen/3rdparty/crates/BUILD.iana-time-zone-0.1.44.bazel @@ -0,0 +1,138 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //wasm_bindgen/3rdparty:crates_vendor +############################################################################### + +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 = "iana_time_zone", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "fallback", + ], + 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", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.44", + deps = [ + ] + select_with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + ): [ + # Target Deps + "@rules_rust_wasm_bindgen__core-foundation-sys-0.8.3//:core_foundation_sys", + + # Common Deps + ], + # cfg(target_arch = "wasm32") + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + # Target Deps + "@rules_rust_wasm_bindgen__js-sys-0.3.59//:js_sys", + "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.82//:wasm_bindgen", + + # Common Deps + ], + # cfg(target_os = "android") + ( + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:armv7-linux-androideabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:x86_64-linux-android", + ): [ + # Target Deps + "@rules_rust_wasm_bindgen__android_system_properties-0.1.4//:android_system_properties", + + # Common Deps + ], + # cfg(target_os = "windows") + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_wasm_bindgen__winapi-0.3.9//:winapi", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.itoa-1.0.2.bazel b/wasm_bindgen/3rdparty/crates/BUILD.itoa-1.0.3.bazel similarity index 98% rename from wasm_bindgen/3rdparty/crates/BUILD.itoa-1.0.2.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.itoa-1.0.3.bazel index d5ef0debb4..7119e54927 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.itoa-1.0.2.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.itoa-1.0.3.bazel @@ -81,7 +81,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.2", + version = "1.0.3", deps = [ ] + select_with_or({ "//conditions:default": [ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.js-sys-0.3.59.bazel b/wasm_bindgen/3rdparty/crates/BUILD.js-sys-0.3.59.bazel new file mode 100644 index 0000000000..85e2ab866f --- /dev/null +++ b/wasm_bindgen/3rdparty/crates/BUILD.js-sys-0.3.59.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //wasm_bindgen/3rdparty:crates_vendor +############################################################################### + +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 = "js_sys", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.59", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.82//:wasm_bindgen", + ], + }), +) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.libc-0.2.126.bazel b/wasm_bindgen/3rdparty/crates/BUILD.libc-0.2.131.bazel similarity index 97% rename from wasm_bindgen/3rdparty/crates/BUILD.libc-0.2.126.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.libc-0.2.131.bazel index 4c6b36bed4..5f2767f361 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.libc-0.2.126.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.libc-0.2.131.bazel @@ -87,11 +87,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.126", + version = "0.2.131", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__libc-0.2.126//:build_script_build", + "@rules_rust_wasm_bindgen__libc-0.2.131//:build_script_build", ], }), ) @@ -155,7 +155,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "0.2.126", + version = "0.2.131", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel b/wasm_bindgen/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel index ce3481b6bf..3635e36c85 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.libz-sys-1.1.8.bazel @@ -90,7 +90,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__libz-sys-1.1.8//:build_script_build", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel b/wasm_bindgen/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel index 8c4a833fcb..786681ba25 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.num_cpus-1.13.1.bazel @@ -115,7 +115,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.num_threads-0.1.6.bazel b/wasm_bindgen/3rdparty/crates/BUILD.num_threads-0.1.6.bazel index 1d9683b992..5abe8d59f2 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.num_threads-0.1.6.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.num_threads-0.1.6.bazel @@ -96,7 +96,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.openssl-sys-0.9.75.bazel b/wasm_bindgen/3rdparty/crates/BUILD.openssl-sys-0.9.75.bazel index b858e15c80..5101219f25 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.openssl-sys-0.9.75.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.openssl-sys-0.9.75.bazel @@ -100,7 +100,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel b/wasm_bindgen/3rdparty/crates/BUILD.proc-macro2-1.0.43.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.proc-macro2-1.0.43.bazel index 0542dc46e9..d3d0ef3bc2 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.proc-macro2-1.0.43.bazel @@ -90,12 +90,12 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.40", + version = "1.0.43", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:build_script_build", - "@rules_rust_wasm_bindgen__unicode-ident-1.0.1//:unicode_ident", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:build_script_build", + "@rules_rust_wasm_bindgen__unicode-ident-1.0.3//:unicode_ident", ], }), ) @@ -162,7 +162,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.40", + version = "1.0.43", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.quote-1.0.20.bazel b/wasm_bindgen/3rdparty/crates/BUILD.quote-1.0.21.bazel similarity index 95% rename from wasm_bindgen/3rdparty/crates/BUILD.quote-1.0.20.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.quote-1.0.21.bazel index a8d8da9591..905d83ee92 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.quote-1.0.20.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.quote-1.0.21.bazel @@ -87,12 +87,12 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.20", + version = "1.0.21", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:proc_macro2", - "@rules_rust_wasm_bindgen__quote-1.0.20//:build_script_build", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:proc_macro2", + "@rules_rust_wasm_bindgen__quote-1.0.21//:build_script_build", ], }), ) @@ -156,7 +156,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.20", + version = "1.0.21", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.rand-0.8.5.bazel b/wasm_bindgen/3rdparty/crates/BUILD.rand-0.8.5.bazel index af2097b6d8..2e6d6d150f 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.rand-0.8.5.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.rand-0.8.5.bazel @@ -114,7 +114,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps "@rules_rust_wasm_bindgen__rand_chacha-0.3.1//:rand_chacha", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.rayon-1.5.3.bazel b/wasm_bindgen/3rdparty/crates/BUILD.rayon-1.5.3.bazel index 3ef8ea85db..a0d0f91026 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.rayon-1.5.3.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.rayon-1.5.3.bazel @@ -89,7 +89,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__crossbeam-deque-0.8.1//:crossbeam_deque", + "@rules_rust_wasm_bindgen__crossbeam-deque-0.8.2//:crossbeam_deque", "@rules_rust_wasm_bindgen__either-1.7.0//:either", "@rules_rust_wasm_bindgen__rayon-1.5.3//:build_script_build", "@rules_rust_wasm_bindgen__rayon-core-1.9.3//:rayon_core", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.rayon-core-1.9.3.bazel b/wasm_bindgen/3rdparty/crates/BUILD.rayon-core-1.9.3.bazel index 6155a4548e..54bcc0a81d 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.rayon-core-1.9.3.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.rayon-core-1.9.3.bazel @@ -89,9 +89,9 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__crossbeam-channel-0.5.5//:crossbeam_channel", - "@rules_rust_wasm_bindgen__crossbeam-deque-0.8.1//:crossbeam_deque", - "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.10//:crossbeam_utils", + "@rules_rust_wasm_bindgen__crossbeam-channel-0.5.6//:crossbeam_channel", + "@rules_rust_wasm_bindgen__crossbeam-deque-0.8.2//:crossbeam_deque", + "@rules_rust_wasm_bindgen__crossbeam-utils-0.8.11//:crossbeam_utils", "@rules_rust_wasm_bindgen__num_cpus-1.13.1//:num_cpus", "@rules_rust_wasm_bindgen__rayon-core-1.9.3//:build_script_build", ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.redox_syscall-0.2.13.bazel b/wasm_bindgen/3rdparty/crates/BUILD.redox_syscall-0.2.16.bazel similarity index 98% rename from wasm_bindgen/3rdparty/crates/BUILD.redox_syscall-0.2.13.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.redox_syscall-0.2.16.bazel index 09652eb1ed..112eef009b 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.redox_syscall-0.2.13.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.redox_syscall-0.2.16.bazel @@ -81,7 +81,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.13", + version = "0.2.16", deps = [ ] + select_with_or({ "//conditions:default": [ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.rouille-3.5.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.rouille-3.5.0.bazel index c510e87d31..e913b34c76 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.rouille-3.5.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.rouille-3.5.0.bazel @@ -60,7 +60,7 @@ rust_library( proc_macro_deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__serde_derive-1.0.139//:serde_derive", + "@rules_rust_wasm_bindgen__serde_derive-1.0.143//:serde_derive", ], }), rustc_env = { @@ -87,17 +87,17 @@ rust_library( ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__base64-0.13.0//:base64", - "@rules_rust_wasm_bindgen__chrono-0.4.19//:chrono", + "@rules_rust_wasm_bindgen__chrono-0.4.22//:chrono", "@rules_rust_wasm_bindgen__filetime-0.2.17//:filetime", "@rules_rust_wasm_bindgen__multipart-0.18.0//:multipart", "@rules_rust_wasm_bindgen__num_cpus-1.13.1//:num_cpus", "@rules_rust_wasm_bindgen__percent-encoding-2.1.0//:percent_encoding", "@rules_rust_wasm_bindgen__rand-0.8.5//:rand", - "@rules_rust_wasm_bindgen__serde-1.0.139//:serde", - "@rules_rust_wasm_bindgen__serde_json-1.0.82//:serde_json", + "@rules_rust_wasm_bindgen__serde-1.0.143//:serde", + "@rules_rust_wasm_bindgen__serde_json-1.0.83//:serde_json", "@rules_rust_wasm_bindgen__sha1-0.6.1//:sha1", "@rules_rust_wasm_bindgen__threadpool-1.8.1//:threadpool", - "@rules_rust_wasm_bindgen__time-0.3.11//:time", + "@rules_rust_wasm_bindgen__time-0.3.13//:time", "@rules_rust_wasm_bindgen__tiny_http-0.8.2//:tiny_http", "@rules_rust_wasm_bindgen__url-2.2.2//:url", ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.ryu-1.0.10.bazel b/wasm_bindgen/3rdparty/crates/BUILD.ryu-1.0.11.bazel similarity index 98% rename from wasm_bindgen/3rdparty/crates/BUILD.ryu-1.0.10.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.ryu-1.0.11.bazel index 75727414bc..16f9ad1e24 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.ryu-1.0.10.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.ryu-1.0.11.bazel @@ -81,7 +81,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.10", + version = "1.0.11", deps = [ ] + select_with_or({ "//conditions:default": [ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.serde-1.0.139.bazel b/wasm_bindgen/3rdparty/crates/BUILD.serde-1.0.143.bazel similarity index 95% rename from wasm_bindgen/3rdparty/crates/BUILD.serde-1.0.139.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.serde-1.0.143.bazel index dbc8f93185..99ead54307 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.serde-1.0.139.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.serde-1.0.143.bazel @@ -68,7 +68,7 @@ rust_library( proc_macro_deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__serde_derive-1.0.139//:serde_derive", + "@rules_rust_wasm_bindgen__serde_derive-1.0.143//:serde_derive", ], }), rustc_env = { @@ -90,11 +90,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.139", + version = "1.0.143", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__serde-1.0.139//:build_script_build", + "@rules_rust_wasm_bindgen__serde-1.0.143//:build_script_build", ], }), ) @@ -160,7 +160,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.139", + version = "1.0.143", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel b/wasm_bindgen/3rdparty/crates/BUILD.serde_derive-1.0.143.bazel similarity index 93% rename from wasm_bindgen/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.serde_derive-1.0.143.bazel index 2f40056598..36fc48b77a 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.serde_derive-1.0.143.bazel @@ -86,14 +86,14 @@ rust_proc_macro( "noclippy", "norustfmt", ], - version = "1.0.139", + version = "1.0.143", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:proc_macro2", - "@rules_rust_wasm_bindgen__quote-1.0.20//:quote", - "@rules_rust_wasm_bindgen__serde_derive-1.0.139//:build_script_build", - "@rules_rust_wasm_bindgen__syn-1.0.98//:syn", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:proc_macro2", + "@rules_rust_wasm_bindgen__quote-1.0.21//:quote", + "@rules_rust_wasm_bindgen__serde_derive-1.0.143//:build_script_build", + "@rules_rust_wasm_bindgen__syn-1.0.99//:syn", ], }), ) @@ -156,7 +156,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.139", + version = "1.0.143", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.serde_json-1.0.82.bazel b/wasm_bindgen/3rdparty/crates/BUILD.serde_json-1.0.83.bazel similarity index 93% rename from wasm_bindgen/3rdparty/crates/BUILD.serde_json-1.0.82.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.serde_json-1.0.83.bazel index 54bf4afdef..29cbe743f5 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.serde_json-1.0.82.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.serde_json-1.0.83.bazel @@ -87,14 +87,14 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.82", + version = "1.0.83", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__itoa-1.0.2//:itoa", - "@rules_rust_wasm_bindgen__ryu-1.0.10//:ryu", - "@rules_rust_wasm_bindgen__serde-1.0.139//:serde", - "@rules_rust_wasm_bindgen__serde_json-1.0.82//:build_script_build", + "@rules_rust_wasm_bindgen__itoa-1.0.3//:itoa", + "@rules_rust_wasm_bindgen__ryu-1.0.11//:ryu", + "@rules_rust_wasm_bindgen__serde-1.0.143//:serde", + "@rules_rust_wasm_bindgen__serde_json-1.0.83//:build_script_build", ], }), ) @@ -158,7 +158,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.82", + version = "1.0.83", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.socket2-0.4.4.bazel b/wasm_bindgen/3rdparty/crates/BUILD.socket2-0.4.4.bazel index d9f1de7da2..6b13f8f4a8 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.socket2-0.4.4.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.socket2-0.4.4.bazel @@ -107,7 +107,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.syn-1.0.98.bazel b/wasm_bindgen/3rdparty/crates/BUILD.syn-1.0.99.bazel similarity index 93% rename from wasm_bindgen/3rdparty/crates/BUILD.syn-1.0.98.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.syn-1.0.99.bazel index 26500eb0b4..ffb148f5fd 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.syn-1.0.98.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.syn-1.0.99.bazel @@ -95,14 +95,14 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.98", + version = "1.0.99", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:proc_macro2", - "@rules_rust_wasm_bindgen__quote-1.0.20//:quote", - "@rules_rust_wasm_bindgen__syn-1.0.98//:build_script_build", - "@rules_rust_wasm_bindgen__unicode-ident-1.0.1//:unicode_ident", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:proc_macro2", + "@rules_rust_wasm_bindgen__quote-1.0.21//:quote", + "@rules_rust_wasm_bindgen__syn-1.0.99//:build_script_build", + "@rules_rust_wasm_bindgen__unicode-ident-1.0.3//:unicode_ident", ], }), ) @@ -174,7 +174,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "1.0.98", + version = "1.0.99", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.tempfile-3.3.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.tempfile-3.3.0.bazel index 62814bff51..a510896f41 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.tempfile-3.3.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.tempfile-3.3.0.bazel @@ -108,17 +108,17 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__fastrand-1.7.0//:fastrand", + "@rules_rust_wasm_bindgen__fastrand-1.8.0//:fastrand", "@rules_rust_wasm_bindgen__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.13","target":"syscall"}] + # Skipped dependencies: [{"id":"redox_syscall 0.2.16","target":"syscall"}] # # cfg(windows) ( @@ -130,12 +130,12 @@ rust_library( # Common Deps "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__fastrand-1.7.0//:fastrand", + "@rules_rust_wasm_bindgen__fastrand-1.8.0//:fastrand", "@rules_rust_wasm_bindgen__remove_dir_all-0.5.3//:remove_dir_all", ], "//conditions:default": [ "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__fastrand-1.7.0//:fastrand", + "@rules_rust_wasm_bindgen__fastrand-1.8.0//:fastrand", "@rules_rust_wasm_bindgen__remove_dir_all-0.5.3//:remove_dir_all", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.time-0.3.11.bazel b/wasm_bindgen/3rdparty/crates/BUILD.time-0.3.13.bazel similarity index 97% rename from wasm_bindgen/3rdparty/crates/BUILD.time-0.3.11.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.time-0.3.13.bazel index e2048ce389..76edf7546f 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.time-0.3.11.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.time-0.3.13.bazel @@ -85,7 +85,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.3.11", + version = "0.3.13", deps = [ ] + select_with_or({ # cfg(target_family = "unix") @@ -111,7 +111,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", "@rules_rust_wasm_bindgen__num_threads-0.1.6//:num_threads", # Common Deps diff --git a/wasm_bindgen/3rdparty/crates/BUILD.tiny_http-0.8.2.bazel b/wasm_bindgen/3rdparty/crates/BUILD.tiny_http-0.8.2.bazel index e2078f9d84..3b44650ca4 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.tiny_http-0.8.2.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.tiny_http-0.8.2.bazel @@ -87,7 +87,7 @@ rust_library( ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__ascii-1.0.0//:ascii", - "@rules_rust_wasm_bindgen__chrono-0.4.19//:chrono", + "@rules_rust_wasm_bindgen__chrono-0.4.22//:chrono", "@rules_rust_wasm_bindgen__chunked_transfer-1.4.0//:chunked_transfer", "@rules_rust_wasm_bindgen__log-0.4.17//:log", "@rules_rust_wasm_bindgen__url-2.2.2//:url", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel b/wasm_bindgen/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel index b43862964e..977847cc14 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.unicode-ident-1.0.3.bazel @@ -21,7 +21,7 @@ load( package(default_visibility = ["//visibility:public"]) # licenses([ -# "TODO", # MIT OR Apache-2.0 +# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # ]) rust_library( @@ -81,7 +81,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.0.1", + version = "1.0.3", deps = [ ] + select_with_or({ "//conditions:default": [ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wait-timeout-0.2.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wait-timeout-0.2.0.bazel index 5e7824a683..2b196d7b73 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wait-timeout-0.2.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wait-timeout-0.2.0.bazel @@ -108,7 +108,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], @@ -201,7 +201,7 @@ rust_binary( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], @@ -294,7 +294,7 @@ rust_binary( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], @@ -387,7 +387,7 @@ rust_binary( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ # Target Deps - "@rules_rust_wasm_bindgen__libc-0.2.126//:libc", + "@rules_rust_wasm_bindgen__libc-0.2.131//:libc", # Common Deps ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.walrus-0.19.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.walrus-0.19.0.bazel index 2f97c8fad1..0bd68f4f13 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.walrus-0.19.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.walrus-0.19.0.bazel @@ -88,7 +88,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__id-arena-2.2.1//:id_arena", "@rules_rust_wasm_bindgen__leb128-0.2.5//:leb128", "@rules_rust_wasm_bindgen__log-0.4.17//:log", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.walrus-macro-0.19.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.walrus-macro-0.19.0.bazel index c18dbe0f05..662d6dc224 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.walrus-macro-0.19.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.walrus-macro-0.19.0.bazel @@ -86,9 +86,9 @@ rust_proc_macro( ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__heck-0.3.3//:heck", - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:proc_macro2", - "@rules_rust_wasm_bindgen__quote-1.0.20//:quote", - "@rules_rust_wasm_bindgen__syn-1.0.98//:syn", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:proc_macro2", + "@rules_rust_wasm_bindgen__quote-1.0.21//:quote", + "@rules_rust_wasm_bindgen__syn-1.0.99//:syn", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-0.2.82.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-0.2.82.bazel index 8e4a7d7191..84ca77b4fe 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-0.2.82.bazel @@ -67,7 +67,7 @@ rust_library( proc_macro_deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__wasm-bindgen-macro-0.2.81//:wasm_bindgen_macro", + "@rules_rust_wasm_bindgen__wasm-bindgen-macro-0.2.82//:wasm_bindgen_macro", ], }), rustc_env = { @@ -89,12 +89,12 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__cfg-if-1.0.0//:cfg_if", - "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.81//:build_script_build", + "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.82//:build_script_build", ], }), ) @@ -159,7 +159,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "0.2.81", + version = "0.2.82", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-backend-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-backend-0.2.82.bazel similarity index 88% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-backend-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-backend-0.2.82.bazel index b5f9098ff9..69100be485 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-backend-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-backend-0.2.82.bazel @@ -82,17 +82,17 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ "@rules_rust_wasm_bindgen__bumpalo-3.10.0//:bumpalo", - "@rules_rust_wasm_bindgen__lazy_static-1.4.0//:lazy_static", "@rules_rust_wasm_bindgen__log-0.4.17//:log", - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:proc_macro2", - "@rules_rust_wasm_bindgen__quote-1.0.20//:quote", - "@rules_rust_wasm_bindgen__syn-1.0.98//:syn", - "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81//:wasm_bindgen_shared", + "@rules_rust_wasm_bindgen__once_cell-1.13.0//:once_cell", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:proc_macro2", + "@rules_rust_wasm_bindgen__quote-1.0.21//:quote", + "@rules_rust_wasm_bindgen__syn-1.0.99//:syn", + "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82//:wasm_bindgen_shared", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-cli-support-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-cli-support-0.2.82.bazel similarity index 88% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-cli-support-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-cli-support-0.2.82.bazel index a05884243a..37774ece34 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-cli-support-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-cli-support-0.2.82.bazel @@ -81,23 +81,23 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__base64-0.9.3//:base64", "@rules_rust_wasm_bindgen__log-0.4.17//:log", "@rules_rust_wasm_bindgen__rustc-demangle-0.1.21//:rustc_demangle", - "@rules_rust_wasm_bindgen__serde_json-1.0.82//:serde_json", + "@rules_rust_wasm_bindgen__serde_json-1.0.83//:serde_json", "@rules_rust_wasm_bindgen__tempfile-3.3.0//:tempfile", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", - "@rules_rust_wasm_bindgen__wasm-bindgen-externref-xform-0.2.81//:wasm_bindgen_externref_xform", - "@rules_rust_wasm_bindgen__wasm-bindgen-multi-value-xform-0.2.81//:wasm_bindgen_multi_value_xform", - "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81//:wasm_bindgen_shared", - "@rules_rust_wasm_bindgen__wasm-bindgen-threads-xform-0.2.81//:wasm_bindgen_threads_xform", - "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.81//:wasm_bindgen_wasm_conventions", - "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-interpreter-0.2.81//:wasm_bindgen_wasm_interpreter", + "@rules_rust_wasm_bindgen__wasm-bindgen-externref-xform-0.2.82//:wasm_bindgen_externref_xform", + "@rules_rust_wasm_bindgen__wasm-bindgen-multi-value-xform-0.2.82//:wasm_bindgen_multi_value_xform", + "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82//:wasm_bindgen_shared", + "@rules_rust_wasm_bindgen__wasm-bindgen-threads-xform-0.2.82//:wasm_bindgen_threads_xform", + "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.82//:wasm_bindgen_wasm_conventions", + "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-interpreter-0.2.82//:wasm_bindgen_wasm_interpreter", "@rules_rust_wasm_bindgen__wit-text-0.8.0//:wit_text", "@rules_rust_wasm_bindgen__wit-validator-0.2.1//:wit_validator", "@rules_rust_wasm_bindgen__wit-walrus-0.6.0//:wit_walrus", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-externref-xform-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-externref-xform-0.2.82.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-externref-xform-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-externref-xform-0.2.82.bazel index d8352e8862..42925b9324 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-externref-xform-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-externref-xform-0.2.82.bazel @@ -81,11 +81,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-0.2.82.bazel similarity index 94% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-0.2.82.bazel index 13c0e9e95e..25c309cb0e 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-0.2.82.bazel @@ -82,12 +82,12 @@ rust_proc_macro( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__quote-1.0.20//:quote", - "@rules_rust_wasm_bindgen__wasm-bindgen-macro-support-0.2.81//:wasm_bindgen_macro_support", + "@rules_rust_wasm_bindgen__quote-1.0.21//:quote", + "@rules_rust_wasm_bindgen__wasm-bindgen-macro-support-0.2.82//:wasm_bindgen_macro_support", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-support-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-support-0.2.82.bazel similarity index 89% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-support-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-support-0.2.82.bazel index 3e9ac865e2..7b12a5d67f 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-support-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-macro-support-0.2.82.bazel @@ -82,15 +82,15 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__proc-macro2-1.0.40//:proc_macro2", - "@rules_rust_wasm_bindgen__quote-1.0.20//:quote", - "@rules_rust_wasm_bindgen__syn-1.0.98//:syn", - "@rules_rust_wasm_bindgen__wasm-bindgen-backend-0.2.81//:wasm_bindgen_backend", - "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81//:wasm_bindgen_shared", + "@rules_rust_wasm_bindgen__proc-macro2-1.0.43//:proc_macro2", + "@rules_rust_wasm_bindgen__quote-1.0.21//:quote", + "@rules_rust_wasm_bindgen__syn-1.0.99//:syn", + "@rules_rust_wasm_bindgen__wasm-bindgen-backend-0.2.82//:wasm_bindgen_backend", + "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82//:wasm_bindgen_shared", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-multi-value-xform-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-multi-value-xform-0.2.82.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-multi-value-xform-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-multi-value-xform-0.2.82.bazel index def5ed7fda..b7c3af2bd4 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-multi-value-xform-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-multi-value-xform-0.2.82.bazel @@ -81,11 +81,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-shared-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-shared-0.2.82.bazel similarity index 98% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-shared-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-shared-0.2.82.bazel index c3c64410c8..c5cc9004de 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-shared-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-shared-0.2.82.bazel @@ -85,11 +85,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81//:build_script_build", + "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82//:build_script_build", ], }), ) @@ -152,7 +152,7 @@ cargo_build_script( "//conditions:default": [ ], }), - version = "0.2.81", + version = "0.2.82", visibility = ["//visibility:private"], deps = [ ] + select_with_or({ diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-threads-xform-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-threads-xform-0.2.82.bazel similarity index 94% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-threads-xform-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-threads-xform-0.2.82.bazel index 4bd1ec81b1..2655ac204c 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-threads-xform-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-threads-xform-0.2.82.bazel @@ -81,13 +81,13 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", - "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.81//:wasm_bindgen_wasm_conventions", + "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.82//:wasm_bindgen_wasm_conventions", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-conventions-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-conventions-0.2.82.bazel similarity index 96% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-conventions-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-conventions-0.2.82.bazel index 1a0acd6373..0dbab93c09 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-conventions-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-conventions-0.2.82.bazel @@ -81,11 +81,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-interpreter-0.2.81.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-interpreter-0.2.82.bazel similarity index 94% rename from wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-interpreter-0.2.81.bazel rename to wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-interpreter-0.2.82.bazel index 307ce8c3e8..b7b1e12aba 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-interpreter-0.2.81.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasm-bindgen-wasm-interpreter-0.2.82.bazel @@ -81,14 +81,14 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.81", + version = "0.2.82", deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__log-0.4.17//:log", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", - "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.81//:wasm_bindgen_wasm_conventions", + "@rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.82//:wasm_bindgen_wasm_conventions", ], }), ) diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wasmprinter-0.2.33.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wasmprinter-0.2.33.bazel index bad2b43df5..4b106ec869 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wasmprinter-0.2.33.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wasmprinter-0.2.33.bazel @@ -85,7 +85,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__wasmparser-0.83.0//:wasmparser", ], }), diff --git a/wasm_bindgen/3rdparty/crates/BUILD.winapi-0.3.9.bazel b/wasm_bindgen/3rdparty/crates/BUILD.winapi-0.3.9.bazel index a28fc09fcb..9289bba84d 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.winapi-0.3.9.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.winapi-0.3.9.bazel @@ -54,6 +54,8 @@ rust_library( ], }), crate_features = [ + "activation", + "combaseapi", "consoleapi", "errhandlingapi", "fileapi", @@ -61,7 +63,9 @@ rust_library( "libloaderapi", "minwinbase", "minwindef", + "objbase", "processenv", + "roapi", "std", "timezoneapi", "winbase", @@ -70,6 +74,7 @@ rust_library( "winerror", "winnt", "winsock2", + "winstring", "ws2def", "ws2ipdef", "ws2tcpip", @@ -144,6 +149,8 @@ cargo_build_script( ], }), crate_features = [ + "activation", + "combaseapi", "consoleapi", "errhandlingapi", "fileapi", @@ -151,7 +158,9 @@ cargo_build_script( "libloaderapi", "minwinbase", "minwindef", + "objbase", "processenv", + "roapi", "std", "timezoneapi", "winbase", @@ -160,6 +169,7 @@ cargo_build_script( "winerror", "winnt", "winsock2", + "winstring", "ws2def", "ws2ipdef", "ws2tcpip", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wit-parser-0.2.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wit-parser-0.2.0.bazel index 0d5950f60e..c493702d09 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wit-parser-0.2.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wit-parser-0.2.0.bazel @@ -85,7 +85,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__leb128-0.2.5//:leb128", "@rules_rust_wasm_bindgen__wit-schema-version-0.1.0//:wit_schema_version", ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wit-printer-0.2.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wit-printer-0.2.0.bazel index 1fb790c55e..8f9eb6dd8d 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wit-printer-0.2.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wit-printer-0.2.0.bazel @@ -85,7 +85,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__wasmprinter-0.2.33//:wasmprinter", "@rules_rust_wasm_bindgen__wit-parser-0.2.0//:wit_parser", "@rules_rust_wasm_bindgen__wit-schema-version-0.1.0//:wit_schema_version", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wit-text-0.8.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wit-text-0.8.0.bazel index 8d63c48bd2..72bb30e536 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wit-text-0.8.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wit-text-0.8.0.bazel @@ -85,7 +85,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__wast-21.0.0//:wast", "@rules_rust_wasm_bindgen__wit-writer-0.2.0//:wit_writer", ], diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wit-validator-0.2.1.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wit-validator-0.2.1.bazel index f79fa4ecbf..42b26be702 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wit-validator-0.2.1.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wit-validator-0.2.1.bazel @@ -85,7 +85,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__wasmparser-0.59.0//:wasmparser", "@rules_rust_wasm_bindgen__wit-parser-0.2.0//:wit_parser", "@rules_rust_wasm_bindgen__wit-schema-version-0.1.0//:wit_schema_version", diff --git a/wasm_bindgen/3rdparty/crates/BUILD.wit-walrus-0.6.0.bazel b/wasm_bindgen/3rdparty/crates/BUILD.wit-walrus-0.6.0.bazel index 74e41f753a..9a480f2951 100644 --- a/wasm_bindgen/3rdparty/crates/BUILD.wit-walrus-0.6.0.bazel +++ b/wasm_bindgen/3rdparty/crates/BUILD.wit-walrus-0.6.0.bazel @@ -85,7 +85,7 @@ rust_library( deps = [ ] + select_with_or({ "//conditions:default": [ - "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", + "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", "@rules_rust_wasm_bindgen__id-arena-2.2.1//:id_arena", "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", "@rules_rust_wasm_bindgen__wit-parser-0.2.0//:wit_parser", diff --git a/wasm_bindgen/3rdparty/crates/defs.bzl b/wasm_bindgen/3rdparty/crates/defs.bzl index 6cdc8e389b..4c46834ed7 100644 --- a/wasm_bindgen/3rdparty/crates/defs.bzl +++ b/wasm_bindgen/3rdparty/crates/defs.bzl @@ -291,18 +291,18 @@ def aliases( _NORMAL_DEPENDENCIES = { "": { _COMMON_CONDITION: { - "anyhow": "@rules_rust_wasm_bindgen__anyhow-1.0.58//:anyhow", - "curl": "@rules_rust_wasm_bindgen__curl-0.4.43//:curl", + "anyhow": "@rules_rust_wasm_bindgen__anyhow-1.0.61//:anyhow", + "curl": "@rules_rust_wasm_bindgen__curl-0.4.44//:curl", "docopt": "@rules_rust_wasm_bindgen__docopt-1.1.1//:docopt", "env_logger": "@rules_rust_wasm_bindgen__env_logger-0.8.4//:env_logger", "log": "@rules_rust_wasm_bindgen__log-0.4.17//:log", "rouille": "@rules_rust_wasm_bindgen__rouille-3.5.0//:rouille", - "serde": "@rules_rust_wasm_bindgen__serde-1.0.139//:serde", - "serde_json": "@rules_rust_wasm_bindgen__serde_json-1.0.82//:serde_json", + "serde": "@rules_rust_wasm_bindgen__serde-1.0.143//:serde", + "serde_json": "@rules_rust_wasm_bindgen__serde_json-1.0.83//:serde_json", "walrus": "@rules_rust_wasm_bindgen__walrus-0.19.0//:walrus", - "wasm-bindgen": "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.81//:wasm_bindgen", - "wasm-bindgen-cli-support": "@rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.81//:wasm_bindgen_cli_support", - "wasm-bindgen-shared": "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81//:wasm_bindgen_shared", + "wasm-bindgen": "@rules_rust_wasm_bindgen__wasm-bindgen-0.2.82//:wasm_bindgen", + "wasm-bindgen-cli-support": "@rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.82//:wasm_bindgen_cli_support", + "wasm-bindgen-shared": "@rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82//:wasm_bindgen_shared", }, }, } @@ -341,7 +341,7 @@ _NORMAL_DEV_ALIASES = { _PROC_MACRO_DEPENDENCIES = { "": { _COMMON_CONDITION: { - "serde_derive": "@rules_rust_wasm_bindgen__serde_derive-1.0.139//:serde_derive", + "serde_derive": "@rules_rust_wasm_bindgen__serde_derive-1.0.143//:serde_derive", }, }, } @@ -388,15 +388,18 @@ _CONDITIONS = { "aarch64-uwp-windows-msvc": [], "cfg(all(any(target_arch = \"x86_64\", target_arch = \"aarch64\"), target_os = \"hermit\"))": [], "cfg(all(unix, not(target_os = \"macos\")))": ["aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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", "aarch64-apple-ios-sim", "i686-apple-darwin", "x86_64-apple-darwin", "x86_64-apple-ios"], "cfg(any(target_os = \"macos\", target_os = \"ios\", target_os = \"freebsd\"))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "i686-apple-darwin", "i686-unknown-freebsd", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-unknown-freebsd"], "cfg(any(unix, target_os = \"wasi\"))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "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_family = \"unix\")": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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(target_os = \"android\")": ["aarch64-linux-android", "armv7-linux-androideabi", "i686-linux-android", "x86_64-linux-android"], "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-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "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": [], @@ -425,12 +428,22 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__anyhow-1.0.58", - sha256 = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704", + name = "rules_rust_wasm_bindgen__android_system_properties-0.1.4", + sha256 = "d7ed72e1635e121ca3e79420540282af22da58be50de153d36f81ddc6b83aa9e", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/anyhow/1.0.58/download"], - strip_prefix = "anyhow-1.0.58", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.anyhow-1.0.58.bazel"), + urls = ["https://crates.io/api/v1/crates/android_system_properties/0.1.4/download"], + strip_prefix = "android_system_properties-0.1.4", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.android_system_properties-0.1.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_wasm_bindgen__anyhow-1.0.61", + sha256 = "508b352bb5c066aac251f6daf6b36eccd03e8a88e8081cd44959ea277a3af9a8", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/anyhow/1.0.61/download"], + strip_prefix = "anyhow-1.0.61", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.anyhow-1.0.61.bazel"), ) maybe( @@ -565,12 +578,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__chrono-0.4.19", - sha256 = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73", + name = "rules_rust_wasm_bindgen__chrono-0.4.22", + sha256 = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/chrono/0.4.19/download"], - strip_prefix = "chrono-0.4.19", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.chrono-0.4.19.bazel"), + urls = ["https://crates.io/api/v1/crates/chrono/0.4.22/download"], + strip_prefix = "chrono-0.4.22", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.chrono-0.4.22.bazel"), ) maybe( @@ -585,62 +598,72 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__crossbeam-channel-0.5.5", - sha256 = "4c02a4d71819009c192cf4872265391563fd6a84c81ff2c0f2a7026ca4c1d85c", + name = "rules_rust_wasm_bindgen__core-foundation-sys-0.8.3", + sha256 = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/core-foundation-sys/0.8.3/download"], + strip_prefix = "core-foundation-sys-0.8.3", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.core-foundation-sys-0.8.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_wasm_bindgen__crossbeam-channel-0.5.6", + sha256 = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/crossbeam-channel/0.5.5/download"], - strip_prefix = "crossbeam-channel-0.5.5", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-channel-0.5.5.bazel"), + urls = ["https://crates.io/api/v1/crates/crossbeam-channel/0.5.6/download"], + strip_prefix = "crossbeam-channel-0.5.6", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-channel-0.5.6.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__crossbeam-deque-0.8.1", - sha256 = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e", + name = "rules_rust_wasm_bindgen__crossbeam-deque-0.8.2", + sha256 = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/crossbeam-deque/0.8.1/download"], - strip_prefix = "crossbeam-deque-0.8.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-deque-0.8.1.bazel"), + urls = ["https://crates.io/api/v1/crates/crossbeam-deque/0.8.2/download"], + strip_prefix = "crossbeam-deque-0.8.2", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-deque-0.8.2.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__crossbeam-epoch-0.9.9", - sha256 = "07db9d94cbd326813772c968ccd25999e5f8ae22f4f8d1b11effa37ef6ce281d", + name = "rules_rust_wasm_bindgen__crossbeam-epoch-0.9.10", + sha256 = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/crossbeam-epoch/0.9.9/download"], - strip_prefix = "crossbeam-epoch-0.9.9", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-epoch-0.9.9.bazel"), + urls = ["https://crates.io/api/v1/crates/crossbeam-epoch/0.9.10/download"], + strip_prefix = "crossbeam-epoch-0.9.10", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-epoch-0.9.10.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__crossbeam-utils-0.8.10", - sha256 = "7d82ee10ce34d7bc12c2122495e7593a9c41347ecdd64185af4ecf72cb1a7f83", + name = "rules_rust_wasm_bindgen__crossbeam-utils-0.8.11", + sha256 = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/crossbeam-utils/0.8.10/download"], - strip_prefix = "crossbeam-utils-0.8.10", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-utils-0.8.10.bazel"), + urls = ["https://crates.io/api/v1/crates/crossbeam-utils/0.8.11/download"], + strip_prefix = "crossbeam-utils-0.8.11", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.crossbeam-utils-0.8.11.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__curl-0.4.43", - sha256 = "37d855aeef205b43f65a5001e0997d81f8efca7badad4fad7d897aa7f0d0651f", + name = "rules_rust_wasm_bindgen__curl-0.4.44", + sha256 = "509bd11746c7ac09ebd19f0b17782eae80aadee26237658a6b4808afb5c11a22", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/curl/0.4.43/download"], - strip_prefix = "curl-0.4.43", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.curl-0.4.43.bazel"), + urls = ["https://crates.io/api/v1/crates/curl/0.4.44/download"], + strip_prefix = "curl-0.4.44", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.curl-0.4.44.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__curl-sys-0.4.55-curl-7.83.1", - sha256 = "23734ec77368ec583c2e61dd3f0b0e5c98b93abe6d2a004ca06b91dd7e3e2762", + name = "rules_rust_wasm_bindgen__curl-sys-0.4.56-curl-7.83.1", + sha256 = "6093e169dd4de29e468fa649fbae11cdcd5551c81fe5bf1b0677adad7ef3d26f", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/curl-sys/0.4.55+curl-7.83.1/download"], - strip_prefix = "curl-sys-0.4.55+curl-7.83.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.curl-sys-0.4.55+curl-7.83.1.bazel"), + urls = ["https://crates.io/api/v1/crates/curl-sys/0.4.56+curl-7.83.1/download"], + strip_prefix = "curl-sys-0.4.56+curl-7.83.1", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.curl-sys-0.4.56+curl-7.83.1.bazel"), ) maybe( @@ -715,12 +738,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__fastrand-1.7.0", - sha256 = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf", + name = "rules_rust_wasm_bindgen__fastrand-1.8.0", + sha256 = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/fastrand/1.7.0/download"], - strip_prefix = "fastrand-1.7.0", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.fastrand-1.7.0.bazel"), + urls = ["https://crates.io/api/v1/crates/fastrand/1.8.0/download"], + strip_prefix = "fastrand-1.8.0", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.fastrand-1.8.0.bazel"), ) maybe( @@ -803,6 +826,16 @@ def crate_repositories(): build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.humantime-2.1.0.bazel"), ) + maybe( + http_archive, + name = "rules_rust_wasm_bindgen__iana-time-zone-0.1.44", + sha256 = "808cf7d67cf4a22adc5be66e75ebdf769b3f2ea032041437a7061f97a63dad4b", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/iana-time-zone/0.1.44/download"], + strip_prefix = "iana-time-zone-0.1.44", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.iana-time-zone-0.1.44.bazel"), + ) + maybe( http_archive, name = "rules_rust_wasm_bindgen__id-arena-2.2.1", @@ -845,12 +878,22 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__itoa-1.0.2", - sha256 = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d", + name = "rules_rust_wasm_bindgen__itoa-1.0.3", + sha256 = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/itoa/1.0.3/download"], + strip_prefix = "itoa-1.0.3", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.itoa-1.0.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_wasm_bindgen__js-sys-0.3.59", + sha256 = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/itoa/1.0.2/download"], - strip_prefix = "itoa-1.0.2", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.itoa-1.0.2.bazel"), + urls = ["https://crates.io/api/v1/crates/js-sys/0.3.59/download"], + strip_prefix = "js-sys-0.3.59", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.js-sys-0.3.59.bazel"), ) maybe( @@ -875,12 +918,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__libc-0.2.126", - sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + name = "rules_rust_wasm_bindgen__libc-0.2.131", + sha256 = "04c3b4822ccebfa39c02fc03d1534441b22ead323fa0f48bb7ddd8e6ba076a40", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"], - strip_prefix = "libc-0.2.126", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.libc-0.2.126.bazel"), + urls = ["https://crates.io/api/v1/crates/libc/0.2.131/download"], + strip_prefix = "libc-0.2.131", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.libc-0.2.131.bazel"), ) maybe( @@ -1115,12 +1158,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__proc-macro2-1.0.40", - sha256 = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7", + name = "rules_rust_wasm_bindgen__proc-macro2-1.0.43", + sha256 = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.40/download"], - strip_prefix = "proc-macro2-1.0.40", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.40.bazel"), + urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.43/download"], + strip_prefix = "proc-macro2-1.0.43", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.proc-macro2-1.0.43.bazel"), ) maybe( @@ -1135,12 +1178,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__quote-1.0.20", - sha256 = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804", + name = "rules_rust_wasm_bindgen__quote-1.0.21", + sha256 = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/quote/1.0.20/download"], - strip_prefix = "quote-1.0.20", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.quote-1.0.20.bazel"), + urls = ["https://crates.io/api/v1/crates/quote/1.0.21/download"], + strip_prefix = "quote-1.0.21", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.quote-1.0.21.bazel"), ) maybe( @@ -1195,12 +1238,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__redox_syscall-0.2.13", - sha256 = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42", + name = "rules_rust_wasm_bindgen__redox_syscall-0.2.16", + sha256 = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/redox_syscall/0.2.13/download"], - strip_prefix = "redox_syscall-0.2.13", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.redox_syscall-0.2.13.bazel"), + urls = ["https://crates.io/api/v1/crates/redox_syscall/0.2.16/download"], + strip_prefix = "redox_syscall-0.2.16", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.redox_syscall-0.2.16.bazel"), ) maybe( @@ -1265,12 +1308,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__ryu-1.0.10", - sha256 = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695", + name = "rules_rust_wasm_bindgen__ryu-1.0.11", + sha256 = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/ryu/1.0.10/download"], - strip_prefix = "ryu-1.0.10", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ryu-1.0.10.bazel"), + urls = ["https://crates.io/api/v1/crates/ryu/1.0.11/download"], + strip_prefix = "ryu-1.0.11", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.ryu-1.0.11.bazel"), ) maybe( @@ -1305,32 +1348,32 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__serde-1.0.139", - sha256 = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6", + name = "rules_rust_wasm_bindgen__serde-1.0.143", + sha256 = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/serde/1.0.139/download"], - strip_prefix = "serde-1.0.139", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde-1.0.139.bazel"), + urls = ["https://crates.io/api/v1/crates/serde/1.0.143/download"], + strip_prefix = "serde-1.0.143", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde-1.0.143.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__serde_derive-1.0.139", - sha256 = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb", + name = "rules_rust_wasm_bindgen__serde_derive-1.0.143", + sha256 = "d3d8e8de557aee63c26b85b947f5e59b690d0454c753f3adeb5cd7835ab88391", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.139/download"], - strip_prefix = "serde_derive-1.0.139", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde_derive-1.0.139.bazel"), + urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.143/download"], + strip_prefix = "serde_derive-1.0.143", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde_derive-1.0.143.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__serde_json-1.0.82", - sha256 = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7", + name = "rules_rust_wasm_bindgen__serde_json-1.0.83", + sha256 = "38dd04e3c8279e75b31ef29dbdceebfe5ad89f4d0937213c53f7d49d01b3d5a7", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/serde_json/1.0.82/download"], - strip_prefix = "serde_json-1.0.82", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde_json-1.0.82.bazel"), + urls = ["https://crates.io/api/v1/crates/serde_json/1.0.83/download"], + strip_prefix = "serde_json-1.0.83", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.serde_json-1.0.83.bazel"), ) maybe( @@ -1375,12 +1418,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__syn-1.0.98", - sha256 = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd", + name = "rules_rust_wasm_bindgen__syn-1.0.99", + sha256 = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/syn/1.0.98/download"], - strip_prefix = "syn-1.0.98", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.syn-1.0.98.bazel"), + urls = ["https://crates.io/api/v1/crates/syn/1.0.99/download"], + strip_prefix = "syn-1.0.99", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.syn-1.0.99.bazel"), ) maybe( @@ -1425,12 +1468,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__time-0.3.11", - sha256 = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217", + name = "rules_rust_wasm_bindgen__time-0.3.13", + sha256 = "db76ff9fa4b1458b3c7f077f3ff9887394058460d21e634355b273aaf11eea45", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/time/0.3.11/download"], - strip_prefix = "time-0.3.11", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.time-0.3.11.bazel"), + urls = ["https://crates.io/api/v1/crates/time/0.3.13/download"], + strip_prefix = "time-0.3.13", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.time-0.3.13.bazel"), ) maybe( @@ -1495,12 +1538,12 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__unicode-ident-1.0.1", - sha256 = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c", + name = "rules_rust_wasm_bindgen__unicode-ident-1.0.3", + sha256 = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/unicode-ident/1.0.1/download"], - strip_prefix = "unicode-ident-1.0.1", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.1.bazel"), + urls = ["https://crates.io/api/v1/crates/unicode-ident/1.0.3/download"], + strip_prefix = "unicode-ident-1.0.3", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.unicode-ident-1.0.3.bazel"), ) maybe( @@ -1595,112 +1638,112 @@ def crate_repositories(): maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-0.2.81", - sha256 = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994", + name = "rules_rust_wasm_bindgen__wasm-bindgen-0.2.82", + sha256 = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen/0.2.81/download"], - strip_prefix = "wasm-bindgen-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen/0.2.82/download"], + strip_prefix = "wasm-bindgen-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-backend-0.2.81", - sha256 = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a", + name = "rules_rust_wasm_bindgen__wasm-bindgen-backend-0.2.82", + sha256 = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-backend/0.2.81/download"], - strip_prefix = "wasm-bindgen-backend-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-backend-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-backend/0.2.82/download"], + strip_prefix = "wasm-bindgen-backend-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-backend-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.81", - sha256 = "4016fbd42224de21aab2f009aeaec61067d278a298ba7f8f7f8d40fbffea0822", + name = "rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.82", + sha256 = "f583642dbe7dcd382bdefe7d66bfc1b9915677aebafe90da5b30c1951b8eb6b4", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-cli-support/0.2.81/download"], - strip_prefix = "wasm-bindgen-cli-support-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-cli-support-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-cli-support/0.2.82/download"], + strip_prefix = "wasm-bindgen-cli-support-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-cli-support-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-externref-xform-0.2.81", - sha256 = "f33c8e2d3f3b6f6647f982911eb4cb44998c8cca97a4fe7afc99f616ebb33a73", + name = "rules_rust_wasm_bindgen__wasm-bindgen-externref-xform-0.2.82", + sha256 = "160edba014673ad3d778bf6455a29ebf34eeec826205fd827ab77d2c5facb4ff", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-externref-xform/0.2.81/download"], - strip_prefix = "wasm-bindgen-externref-xform-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-externref-xform-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-externref-xform/0.2.82/download"], + strip_prefix = "wasm-bindgen-externref-xform-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-externref-xform-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-macro-0.2.81", - sha256 = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa", + name = "rules_rust_wasm_bindgen__wasm-bindgen-macro-0.2.82", + sha256 = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-macro/0.2.81/download"], - strip_prefix = "wasm-bindgen-macro-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-macro/0.2.82/download"], + strip_prefix = "wasm-bindgen-macro-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-macro-support-0.2.81", - sha256 = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048", + name = "rules_rust_wasm_bindgen__wasm-bindgen-macro-support-0.2.82", + sha256 = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-macro-support/0.2.81/download"], - strip_prefix = "wasm-bindgen-macro-support-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-support-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-macro-support/0.2.82/download"], + strip_prefix = "wasm-bindgen-macro-support-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-macro-support-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-multi-value-xform-0.2.81", - sha256 = "7015b54357604811162710d5cf274ab85d974fe1e324222dd5b2133afdefe9b9", + name = "rules_rust_wasm_bindgen__wasm-bindgen-multi-value-xform-0.2.82", + sha256 = "f325e04a6c8054111290e264928836909af56d702ee4cf66e453951365a18b13", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-multi-value-xform/0.2.81/download"], - strip_prefix = "wasm-bindgen-multi-value-xform-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-multi-value-xform-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-multi-value-xform/0.2.82/download"], + strip_prefix = "wasm-bindgen-multi-value-xform-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-multi-value-xform-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.81", - sha256 = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be", + name = "rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.82", + sha256 = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-shared/0.2.81/download"], - strip_prefix = "wasm-bindgen-shared-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-shared-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-shared/0.2.82/download"], + strip_prefix = "wasm-bindgen-shared-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-shared-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-threads-xform-0.2.81", - sha256 = "6961b838d9a9c121ba4a1eea1628014cc759469e3defb42bbac9c5ed0f65be14", + name = "rules_rust_wasm_bindgen__wasm-bindgen-threads-xform-0.2.82", + sha256 = "49a8f631f078e8e8dedec16ca98dc23cc47d4b63db9bf067cb4471aa768d7256", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-threads-xform/0.2.81/download"], - strip_prefix = "wasm-bindgen-threads-xform-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-threads-xform-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-threads-xform/0.2.82/download"], + strip_prefix = "wasm-bindgen-threads-xform-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-threads-xform-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.81", - sha256 = "c0a0eca38fe89471f57d6903f3e17e732d2d6f995a7af5b23f27df7fee0f0d18", + name = "rules_rust_wasm_bindgen__wasm-bindgen-wasm-conventions-0.2.82", + sha256 = "f550ec6c59aad41a02ba60f59aa92bca03ada228e0a01fd5d5f21d889ef97a23", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-wasm-conventions/0.2.81/download"], - strip_prefix = "wasm-bindgen-wasm-conventions-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-conventions-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-wasm-conventions/0.2.82/download"], + strip_prefix = "wasm-bindgen-wasm-conventions-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-conventions-0.2.82.bazel"), ) maybe( http_archive, - name = "rules_rust_wasm_bindgen__wasm-bindgen-wasm-interpreter-0.2.81", - sha256 = "0b1c9fb7f71137840932bbb853ef1f83d68c88584b716c9bbae38675c9fb8b86", + name = "rules_rust_wasm_bindgen__wasm-bindgen-wasm-interpreter-0.2.82", + sha256 = "9c736fc384fa38ac5a906f7409d0e99832a79993dd76315d3befc3471d494141", type = "tar.gz", - urls = ["https://crates.io/api/v1/crates/wasm-bindgen-wasm-interpreter/0.2.81/download"], - strip_prefix = "wasm-bindgen-wasm-interpreter-0.2.81", - build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-interpreter-0.2.81.bazel"), + urls = ["https://crates.io/api/v1/crates/wasm-bindgen-wasm-interpreter/0.2.82/download"], + strip_prefix = "wasm-bindgen-wasm-interpreter-0.2.82", + build_file = Label("@rules_rust//wasm_bindgen/3rdparty/crates:BUILD.wasm-bindgen-wasm-interpreter-0.2.82.bazel"), ) maybe( diff --git a/wasm_bindgen/repositories.bzl b/wasm_bindgen/repositories.bzl index 1eac795639..060dbd9883 100644 --- a/wasm_bindgen/repositories.bzl +++ b/wasm_bindgen/repositories.bzl @@ -17,7 +17,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("//wasm_bindgen/3rdparty/crates:defs.bzl", "crate_repositories") -WASM_BINDGEN_VERSION = "0.2.81" +WASM_BINDGEN_VERSION = "0.2.82" # buildifier: disable=unnamed-macro def rust_wasm_bindgen_dependencies(): @@ -29,7 +29,7 @@ def rust_wasm_bindgen_dependencies(): maybe( http_archive, name = "rules_rust_wasm_bindgen_cli", - sha256 = "b255b6ab0d645af253319a990ad1f62e9efe2e72d353155f30834c10ecdb0af3", + sha256 = "893e72ed18214125f4c9f0476e5205f96725f9d087b1c1bd0f26af13e0c11d4f", urls = ["https://crates.io/api/v1/crates/wasm-bindgen-cli/{}/download".format(WASM_BINDGEN_VERSION)], type = "tar.gz", strip_prefix = "wasm-bindgen-cli-{}".format(WASM_BINDGEN_VERSION), From 8bfed1cd29f37de01921c3f2d1e50c87861fcc76 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 15 Aug 2022 01:30:43 -0700 Subject: [PATCH 21/26] Added Rust 1.63.0 (#1512) * Added Rust 1.63.0 * Regenerate documentation * Repinned Crate Universe outputs using Rust 1.63.0 * Addressed new clippy errors --- crate_universe/src/metadata.rs | 2 +- crate_universe/src/splicing/splicer.rs | 6 +- docs/cargo.md | 2 +- docs/crate_universe.md | 4 +- docs/flatten.md | 4 +- docs/rust_repositories.md | 2 +- .../cargo_aliases/cargo-bazel-lock.json | 2 +- .../cargo_workspace/cargo-bazel-lock.json | 2 +- .../multi_package/cargo-bazel-lock.json | 2 +- .../no_cargo_manifests/cargo-bazel-lock.json | 2 +- rust/known_shas.bzl | 234 ++++++++++++++++++ rust/private/common.bzl | 2 +- util/fetch_shas_NIGHTLY_ISO_DATES.txt | 1 + util/fetch_shas_VERSIONS.txt | 1 + util/label/label.rs | 2 +- util/label/label_error.rs | 2 +- 16 files changed, 252 insertions(+), 18 deletions(-) diff --git a/crate_universe/src/metadata.rs b/crate_universe/src/metadata.rs index 57d90e7da0..a6c8217802 100644 --- a/crate_universe/src/metadata.rs +++ b/crate_universe/src/metadata.rs @@ -76,7 +76,7 @@ impl MetadataGenerator for Generator { } /// A configuration desrcibing how to invoke [cargo update](https://doc.rust-lang.org/cargo/commands/cargo-update.html). -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum CargoUpdateRequest { /// Translates to an unrestricted `cargo update` command Eager, diff --git a/crate_universe/src/splicing/splicer.rs b/crate_universe/src/splicing/splicer.rs index 8374df4e43..7419a2f9a5 100644 --- a/crate_universe/src/splicing/splicer.rs +++ b/crate_universe/src/splicing/splicer.rs @@ -510,7 +510,7 @@ const DEFAULT_SPLICING_PACKAGE_VERSION: &str = "0.0.1"; pub fn default_cargo_package_manifest() -> cargo_toml::Manifest { // A manifest is generated with a fake workspace member so the [cargo_toml::Manifest::Workspace] // member is deseralized and is not `None`. - let manifest = cargo_toml::Manifest::from_str( + cargo_toml::Manifest::from_str( &toml::toml! { [package] name = DEFAULT_SPLICING_PACKAGE_NAME @@ -524,9 +524,7 @@ pub fn default_cargo_package_manifest() -> cargo_toml::Manifest { } .to_string(), ) - .unwrap(); - - manifest + .unwrap() } pub fn default_splicing_package_crate_id() -> CrateId { diff --git a/docs/cargo.md b/docs/cargo.md index 21aad2a30c..c693d16e47 100644 --- a/docs/cargo.md +++ b/docs/cargo.md @@ -37,7 +37,7 @@ A rule for bootstrapping a Rust binary using [Cargo](https://doc.rust-lang.org/c | rust_toolchain_rustc_template | The template to use for finding the host rustc binary. {version} (eg. '1.53.0'), {triple} (eg. 'x86_64-unknown-linux-gnu'), {arch} (eg. 'aarch64'), {vendor} (eg. 'unknown'), {system} (eg. 'darwin'), and {tool} (eg. 'rustc.exe') will be replaced in the string if present. | String | optional | "@rust_{system}_{arch}__{triple}_tools//:bin/{tool}" | | srcs | Souce files of the crate to build. Passing source files here can be used to trigger rebuilds when changes are made | List of labels | optional | [] | | timeout | Maximum duration of the Cargo build command in seconds | Integer | optional | 600 | -| version | The version of cargo the resolver should use | String | optional | "1.62.1" | +| version | The version of cargo the resolver should use | String | optional | "1.63.0" | diff --git a/docs/crate_universe.md b/docs/crate_universe.md index 3964457bb4..8bdc0be8b5 100644 --- a/docs/crate_universe.md +++ b/docs/crate_universe.md @@ -290,7 +290,7 @@ that is called behind the scenes to update dependencies. | repo_mapping | A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target, it should actually resolve that dependency within globally-declared @bar (@bar//some:target). | Dictionary: String -> String | required | | | rust_toolchain_cargo_template | The template to use for finding the host cargo binary. {version} (eg. '1.53.0'), {triple} (eg. 'x86_64-unknown-linux-gnu'), {arch} (eg. 'aarch64'), {vendor} (eg. 'unknown'), {system} (eg. 'darwin'), {cfg} (eg. 'exec'), and {tool} (eg. 'rustc.exe') will be replaced in the string if present. | String | optional | "@rust_{system}_{arch}__{triple}_tools//:bin/{tool}" | | rust_toolchain_rustc_template | The template to use for finding the host rustc binary. {version} (eg. '1.53.0'), {triple} (eg. 'x86_64-unknown-linux-gnu'), {arch} (eg. 'aarch64'), {vendor} (eg. 'unknown'), {system} (eg. 'darwin'), {cfg} (eg. 'exec'), and {tool} (eg. 'cargo.exe') will be replaced in the string if present. | String | optional | "@rust_{system}_{arch}__{triple}_tools//:bin/{tool}" | -| rust_version | The version of Rust the currently registered toolchain is using. Eg. 1.56.0, or nightly-2021-09-08 | String | optional | "1.62.1" | +| rust_version | The version of Rust the currently registered toolchain is using. Eg. 1.56.0, or nightly-2021-09-08 | String | optional | "1.63.0" | | splicing_config | The configuration flags to use for splicing Cargo maniests. Use //crate_universe:defs.bzl\%rsplicing_config to generate the value for this field. If unset, the defaults defined there will be used. | String | optional | "" | | supported_platform_triples | A set of all platform triples to consider when generating dependencies. | List of strings | optional | ["i686-apple-darwin", "i686-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "armv7-linux-androideabi", "i686-linux-android", "i686-unknown-freebsd", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "riscv32imc-unknown-none-elf"] | @@ -620,7 +620,7 @@ Define dependencies of the `cargo-bazel` Rust target | Name | Description | Default Value | | :------------- | :------------- | :------------- | -| rust_version | The version of rust to use when generating dependencies. | "1.62.1" | +| rust_version | The version of rust to use when generating dependencies. | "1.63.0" | | bootstrap | If true, a cargo_bootstrap_repository target will be generated. | False | diff --git a/docs/flatten.md b/docs/flatten.md index 1646c21594..dba68680d1 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -102,7 +102,7 @@ A rule for bootstrapping a Rust binary using [Cargo](https://doc.rust-lang.org/c | rust_toolchain_rustc_template | The template to use for finding the host rustc binary. {version} (eg. '1.53.0'), {triple} (eg. 'x86_64-unknown-linux-gnu'), {arch} (eg. 'aarch64'), {vendor} (eg. 'unknown'), {system} (eg. 'darwin'), and {tool} (eg. 'rustc.exe') will be replaced in the string if present. | String | optional | "@rust_{system}_{arch}__{triple}_tools//:bin/{tool}" | | srcs | Souce files of the crate to build. Passing source files here can be used to trigger rebuilds when changes are made | List of labels | optional | [] | | timeout | Maximum duration of the Cargo build command in seconds | Integer | optional | 600 | -| version | The version of cargo the resolver should use | String | optional | "1.62.1" | +| version | The version of cargo the resolver should use | String | optional | "1.63.0" | @@ -1722,7 +1722,7 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai | sha256s | A dict associating tool subdirectories to sha256 hashes. | None | | extra_target_triples | Additional rust-style targets that rust toolchains should support. | ["wasm32-unknown-unknown", "wasm32-wasi"] | | urls | A list of mirror urls containing the tools from the Rust-lang static file server. These must contain the '{}' used to substitute the tool being fetched (using .format). | ["https://static.rust-lang.org/dist/{}.tar.gz"] | -| version | The version of Rust. Either "nightly", "beta", or an exact version. Defaults to a modern version. | "1.62.1" | +| version | The version of Rust. Either "nightly", "beta", or an exact version. Defaults to a modern version. | "1.63.0" | diff --git a/docs/rust_repositories.md b/docs/rust_repositories.md index 0eed309e43..70ffca032b 100644 --- a/docs/rust_repositories.md +++ b/docs/rust_repositories.md @@ -230,7 +230,7 @@ See `load_arbitrary_tool` in `@rules_rust//rust:repositories.bzl` for more detai | sha256s | A dict associating tool subdirectories to sha256 hashes. | None | | extra_target_triples | Additional rust-style targets that rust toolchains should support. | ["wasm32-unknown-unknown", "wasm32-wasi"] | | urls | A list of mirror urls containing the tools from the Rust-lang static file server. These must contain the '{}' used to substitute the tool being fetched (using .format). | ["https://static.rust-lang.org/dist/{}.tar.gz"] | -| version | The version of Rust. Either "nightly", "beta", or an exact version. Defaults to a modern version. | "1.62.1" | +| version | The version of Rust. Either "nightly", "beta", or an exact version. Defaults to a modern version. | "1.63.0" | diff --git a/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json b/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json index 7c11d082d7..e4113b91b0 100644 --- a/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json +++ b/examples/crate_universe/cargo_aliases/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "18e65377d421f78219df17791be449590f3d10960d5595f9005cee735032567b", + "checksum": "22324143593ee8f6bd791d836d132583b37f45a3d6dd2b2965541a888c421f98", "crates": { "aho-corasick 0.7.18": { "name": "aho-corasick", diff --git a/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json b/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json index 4c7e145c37..aec94d06e8 100644 --- a/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json +++ b/examples/crate_universe/cargo_workspace/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "746574dd60cef41f95be67cc408ac93637dea1f729ae7f1d2450cbfc0dff4a8b", + "checksum": "7d58a2569ecff202c9bf834d2bba05d02a1270dac40630c0e408216b07b2eb4f", "crates": { "ansi_term 0.12.1": { "name": "ansi_term", diff --git a/examples/crate_universe/multi_package/cargo-bazel-lock.json b/examples/crate_universe/multi_package/cargo-bazel-lock.json index 2f3eb5c129..e19c62957f 100644 --- a/examples/crate_universe/multi_package/cargo-bazel-lock.json +++ b/examples/crate_universe/multi_package/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "fa8d2ec1c932effeab92d593fcf5e2294469a693cf931fe7166c6bdf4373c713", + "checksum": "7fef42b6d782782940cbe4dacc27788a16488864c5b44c03e2f2f0fc9b27ee40", "crates": { "aho-corasick 0.7.18": { "name": "aho-corasick", diff --git a/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json b/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json index 03692c00dc..94c3219b91 100644 --- a/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json +++ b/examples/crate_universe/no_cargo_manifests/cargo-bazel-lock.json @@ -1,5 +1,5 @@ { - "checksum": "4b51399cb949606e8decd4492f40694118346c25f81e405088c43eecdc9b54ad", + "checksum": "d025bf481260f81bd1f27c439d328b534c3d36a339bc7b2b59a3b58e56ab751f", "crates": { "ansi_term 0.12.1": { "name": "ansi_term", diff --git a/rust/known_shas.bzl b/rust/known_shas.bzl index d5a4a94e32..f4d363d188 100644 --- a/rust/known_shas.bzl +++ b/rust/known_shas.bzl @@ -2278,6 +2278,122 @@ FILE_KEY_TO_SHA = { "2022-07-18/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz": "33abaea1a4ebce88ff58354d2bab2d983419600c0c8d3b352e4e6f8c56baf2f5", "2022-07-18/rustfmt-nightly-x86_64-unknown-linux-musl.tar.gz": "8c83332af6a06c6171a99754c19755d6496f9f200a4bd79c634cd14df4866f9d", "2022-07-18/rustfmt-nightly-x86_64-unknown-linux-musl.tar.xz": "704c90da2cc18a189f5d3e3f4a36aaea26b5f4917086900114c4325008436819", + "2022-08-11/cargo-nightly-aarch64-apple-darwin.tar.gz": "cae9b1bd6d6e2dc0e9ee4af2e50fb787bbaca72d5920f044d4f9d0c14cdc8f33", + "2022-08-11/cargo-nightly-aarch64-apple-darwin.tar.xz": "3e43e96d8239c77e645089bbe40a429734046d037e9f0bab5e83cb239e1dd9be", + "2022-08-11/cargo-nightly-aarch64-unknown-linux-gnu.tar.gz": "e88ed97f883586b4a75ef44d620bb3ebfe6118a00baed385e0111807b4af04a8", + "2022-08-11/cargo-nightly-aarch64-unknown-linux-gnu.tar.xz": "93b7ba77e12153e799f4ce209b7d184031bcabbe0c5402379c13b620a5e9b500", + "2022-08-11/cargo-nightly-aarch64-unknown-linux-musl.tar.gz": "8cf1518c96a739835c9512d34c765b54a6a25169498e21bf6c5e99029e2e2272", + "2022-08-11/cargo-nightly-aarch64-unknown-linux-musl.tar.xz": "7f8d6247fce80130fbbfeba51a163441e3d94442f67c1234e3215bb852e4cdae", + "2022-08-11/cargo-nightly-x86_64-apple-darwin.tar.gz": "1af5abe9bfa42f96cc7e1afc852a7c3a8f6284bb278032ad477595afc72ed020", + "2022-08-11/cargo-nightly-x86_64-apple-darwin.tar.xz": "3c1869e40e57d628896b021945d8b762bde310cbed39ae4e4e99559b99d6144d", + "2022-08-11/cargo-nightly-x86_64-pc-windows-msvc.tar.gz": "601b9a279a93e144b4bb32534dc02631f723c7dc420baffd58cee903eb61dd74", + "2022-08-11/cargo-nightly-x86_64-pc-windows-msvc.tar.xz": "23bf85469ea2dee94f7071edc62e4ef4faac66e1440313683b4e0cf745a69c64", + "2022-08-11/cargo-nightly-x86_64-unknown-freebsd.tar.gz": "f62adf8c8195412aad1d580001fc4b7a34331fb08ac36e70fb38f5f7cf0b4b7d", + "2022-08-11/cargo-nightly-x86_64-unknown-freebsd.tar.xz": "df83473006697d18bc595957847c76ccf4d9fb8d01b9b0c2d5a10970342ef0c7", + "2022-08-11/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz": "bbeee38ff2dc17814b3bca6d159e28e85d0db567cc2876b5f583e6fb061f1f9e", + "2022-08-11/cargo-nightly-x86_64-unknown-linux-gnu.tar.xz": "610b53bb9ab7086ea36a09b0784a7d601e59a9e2c56a5d88f5071a2323431fb3", + "2022-08-11/cargo-nightly-x86_64-unknown-linux-musl.tar.gz": "df384dc9e6eedd6bd3144fe2b82506e837e32b5281ce4c51667acecbf624781a", + "2022-08-11/cargo-nightly-x86_64-unknown-linux-musl.tar.xz": "caf658fbc964cf3c191c7efc014fc7b2c45e0ae2a1c78169c760e6a66fd11828", + "2022-08-11/clippy-nightly-aarch64-apple-darwin.tar.gz": "e2533993c4afd51fc7ab4db1c2b588739101306d50fcec8f574af039d6524578", + "2022-08-11/clippy-nightly-aarch64-apple-darwin.tar.xz": "57aa81fc00017ac127c5e72de7a406c35dceb2b16f944778cab42ea1c3bdbd05", + "2022-08-11/clippy-nightly-aarch64-unknown-linux-gnu.tar.gz": "0defdbe8252d3d2ae3df2cf47a27c6a9ab5e30f54f53a19b52b666b4a77fdf7d", + "2022-08-11/clippy-nightly-aarch64-unknown-linux-gnu.tar.xz": "924df4295fd4f74933861994b4e307f1c5db3a6463d70655e4921c6ce12e290c", + "2022-08-11/clippy-nightly-aarch64-unknown-linux-musl.tar.gz": "3552ce84049c0ca3c568b79fb88a65c3d54c21f41880ee1f2430156856bba3fc", + "2022-08-11/clippy-nightly-aarch64-unknown-linux-musl.tar.xz": "4a8f331651855d7b2248632de72d4f072747d239f28c535b44fb78e840d32bb3", + "2022-08-11/clippy-nightly-x86_64-apple-darwin.tar.gz": "bd3a29720009057882ba665dfe134db9735844163d29c12159e1cc6ebf597a3c", + "2022-08-11/clippy-nightly-x86_64-apple-darwin.tar.xz": "2cd5bbad957b7c1b214e1b2a2068b475a4bbbc4f891688668fe40fac28c795cc", + "2022-08-11/clippy-nightly-x86_64-pc-windows-msvc.tar.gz": "e19bdfdc3b54189a73d8b49641e75a76dce444d95a47c4e4ecd74764bac369a3", + "2022-08-11/clippy-nightly-x86_64-pc-windows-msvc.tar.xz": "87c7eb33810904372dd986ac39a9d0e2a347b0f67c402cc993fda7a87805dd94", + "2022-08-11/clippy-nightly-x86_64-unknown-freebsd.tar.gz": "90688982a6a312f46037f1c198083b8dadf40bfa77d3e4440fe4b56ee712df68", + "2022-08-11/clippy-nightly-x86_64-unknown-freebsd.tar.xz": "4116485e82fc29cb9143002e37d7d784df18580b3ad4e07b3809bc75fc2eff3e", + "2022-08-11/clippy-nightly-x86_64-unknown-linux-gnu.tar.gz": "4fcead4b34a41c0d0ac6a41c4d45630d3f14238eff9bdb0c67daea74d381a707", + "2022-08-11/clippy-nightly-x86_64-unknown-linux-gnu.tar.xz": "a50c09386dbc3b5e39c813777dfa602f251ef80914c418ce85fab506b4a3b60c", + "2022-08-11/clippy-nightly-x86_64-unknown-linux-musl.tar.gz": "1d2be0fff560d9b6d13faa270bc30ed78e1f19fca92aec29063332997aef6039", + "2022-08-11/clippy-nightly-x86_64-unknown-linux-musl.tar.xz": "4cb2192e1f785bf685c25625a6be794a960535b4695153f01dae4984876346c3", + "2022-08-11/llvm-tools-nightly-aarch64-apple-darwin.tar.gz": "32486dd06962034debe6ca577543ceeee9ef189bf94495c450c89b1bc883b9dc", + "2022-08-11/llvm-tools-nightly-aarch64-apple-darwin.tar.xz": "1932d1b3cbe40cf32566ebfa8dce89dbaa16394aac6061ddfc0d90acddc60428", + "2022-08-11/llvm-tools-nightly-aarch64-unknown-linux-gnu.tar.gz": "58911dd78caf17149d2c586d44421e6f07a223ac93b2047031a03d46799ed916", + "2022-08-11/llvm-tools-nightly-aarch64-unknown-linux-gnu.tar.xz": "533dbb53dd60b9b155255086a6ed68936e860c7a29009e964fd9fb5f2dc25f5d", + "2022-08-11/llvm-tools-nightly-aarch64-unknown-linux-musl.tar.gz": "6f39d64617dfcf5bd6190926c547be92219eb9594a2fda9bfc1c41d489b7fc10", + "2022-08-11/llvm-tools-nightly-aarch64-unknown-linux-musl.tar.xz": "bb545e0253fecd441a4d78990bd8f695bac52fbddedcb580cad1db4d82c9dfac", + "2022-08-11/llvm-tools-nightly-x86_64-apple-darwin.tar.gz": "aed5d310f9614a7a92331a612b0fbe3e67b235ad87178209678b4c96574be30f", + "2022-08-11/llvm-tools-nightly-x86_64-apple-darwin.tar.xz": "95b71b3857361714d7a94059d2dff6e5403cb5c510b9083687b8abcb67ce831a", + "2022-08-11/llvm-tools-nightly-x86_64-pc-windows-msvc.tar.gz": "7ac0cf2f50024f9a2e98e5a8c4b49008f8639dbf8a63c4ce6875f9cfccf7dd00", + "2022-08-11/llvm-tools-nightly-x86_64-pc-windows-msvc.tar.xz": "c3a2a5b00a66293274f76e3d51e8417fb113d9a66a4ec8c9642c69d9a8960c63", + "2022-08-11/llvm-tools-nightly-x86_64-unknown-freebsd.tar.gz": "22f258ba97ba30b28fea6d81637b253a230926e66d1cb1a1f1bafcbc97c75f07", + "2022-08-11/llvm-tools-nightly-x86_64-unknown-freebsd.tar.xz": "e8e4b5d18d2450659f9726f6b01be335c9da16930186cb183ca4bf7a704dd77c", + "2022-08-11/llvm-tools-nightly-x86_64-unknown-linux-gnu.tar.gz": "f6a49f1efb5810ac882d10b8249b618f7343e5c04f4f0be42655d81da3f8ecb1", + "2022-08-11/llvm-tools-nightly-x86_64-unknown-linux-gnu.tar.xz": "91b4c155691340a7a779e58583d8002ae80788d4767203b36bdd4dcc60baf1bb", + "2022-08-11/llvm-tools-nightly-x86_64-unknown-linux-musl.tar.gz": "6eb99b091ad370781cc2b4f81a015d94f5f5e6fbeec0cb61b6e6f342e56a3b42", + "2022-08-11/llvm-tools-nightly-x86_64-unknown-linux-musl.tar.xz": "4f0e758f51770286878f10ed3c4baccdd663c9bf3e4bf36d530cbc706d96a838", + "2022-08-11/rust-nightly-aarch64-apple-darwin.tar.gz": "0f6f95fb4c8241132232cf64817d2dc9cb4683045a1c25de166d7f4268f085cc", + "2022-08-11/rust-nightly-aarch64-apple-darwin.tar.xz": "d6a0b772bec5e267cfb36dcc0f62526c6560a8dba656265f797f76a79b963e54", + "2022-08-11/rust-nightly-aarch64-unknown-linux-gnu.tar.gz": "e2f9f47f5bf7b84bd7229bb19e9d21a27a3b3ac8ed8951b73ec26139e5cf9f70", + "2022-08-11/rust-nightly-aarch64-unknown-linux-gnu.tar.xz": "3a632057197852303d57f3f1a49a9fd6d8ee49fc45b162bf435d9bb0b7485a05", + "2022-08-11/rust-nightly-aarch64-unknown-linux-musl.tar.gz": "92d5666d42c57275e38e646520da442287ce46e4139858f56f1e06c0726264d6", + "2022-08-11/rust-nightly-aarch64-unknown-linux-musl.tar.xz": "ce057514a5fd37fa6e968c8cdc0ef6ae01f2a0bff8e19e09f1851179b417a5a9", + "2022-08-11/rust-nightly-x86_64-apple-darwin.tar.gz": "ad1643fa9e02dc5684a456feefa5083c8d1dc20e2b1aebc2c78211f753094b18", + "2022-08-11/rust-nightly-x86_64-apple-darwin.tar.xz": "8dc1d20c085d4cba3f7e3a0c2ee78a2bae06654a34cd50a97885f1431785fdc7", + "2022-08-11/rust-nightly-x86_64-pc-windows-msvc.tar.gz": "5b1b31bd758ca2f7cd1e378bd1be011f92d7ca3135445bd40bdb3556d42255d0", + "2022-08-11/rust-nightly-x86_64-pc-windows-msvc.tar.xz": "00edfc241020c4c0647045ea3ff58bfefe013ebf3370fc2396b3c1c79d08568d", + "2022-08-11/rust-nightly-x86_64-unknown-freebsd.tar.gz": "3bf4f5bf546f92b4ce593bb261eacc083228b9f5acae9da4e3204ed7fe6cac89", + "2022-08-11/rust-nightly-x86_64-unknown-freebsd.tar.xz": "6605a2a6ca6073b1a6f9668d687d2ddf18cf8a38ab44f2c048d5ad2654007979", + "2022-08-11/rust-nightly-x86_64-unknown-linux-gnu.tar.gz": "52bde1fa580f103de20e5b0bcff33e9cfe96c5ae7fb668b50e86692ff21a5247", + "2022-08-11/rust-nightly-x86_64-unknown-linux-gnu.tar.xz": "ac934cad6d35a0b397e9d6cf123c973d0f478968189f29aabb9f48ef8ab27532", + "2022-08-11/rust-nightly-x86_64-unknown-linux-musl.tar.gz": "1d059ccf24f9bcc0637f966b202072e92bd536ae8bc9908e057810b0d5f386d9", + "2022-08-11/rust-nightly-x86_64-unknown-linux-musl.tar.xz": "82c1449fa75d02caef7da809f19cc72b64f1c1e6e6da0ba595d46fc4a67f8137", + "2022-08-11/rust-std-nightly-aarch64-apple-darwin.tar.gz": "8bf01807d9b976af76646a2cd9e865b0f8cff7828d8aca25d66f21ce478c41c7", + "2022-08-11/rust-std-nightly-aarch64-apple-darwin.tar.xz": "938bed24fc69b1cb1568ef18cf700ef15838dcfca3494bf5bfa03828f2efcd48", + "2022-08-11/rust-std-nightly-aarch64-unknown-linux-gnu.tar.gz": "aa36cc89f3b1f625e26beba541763d9fbdd71a4e94faffba1e5757f8f7cf710d", + "2022-08-11/rust-std-nightly-aarch64-unknown-linux-gnu.tar.xz": "3248c521749947641df7801cb6e6fe6c6354775bf3bddc3b1dc29e00a4e45b2d", + "2022-08-11/rust-std-nightly-aarch64-unknown-linux-musl.tar.gz": "07bcafac72728cd47badc71ce84ed71a06dba35b7071851065cf4583048e6668", + "2022-08-11/rust-std-nightly-aarch64-unknown-linux-musl.tar.xz": "ecd6a9464a9e887e495343351373d11cdf2de7fd5a2dc6a33bb9231d1e52e3f2", + "2022-08-11/rust-std-nightly-wasm32-unknown-unknown.tar.gz": "78e1b18ff1723339d8340edccf1371d8b1205f59d88b04ece7fb0389586dc0b2", + "2022-08-11/rust-std-nightly-wasm32-unknown-unknown.tar.xz": "16a2cf631631be69f1e5cb5717b9a44c09fa3f822f529332f51b308261a24072", + "2022-08-11/rust-std-nightly-wasm32-wasi.tar.gz": "aa0b1d9d88bf514ba848746c23184c6500a1d7683a0ed7f5da14d36a42cbc10a", + "2022-08-11/rust-std-nightly-wasm32-wasi.tar.xz": "f667fd574339fbdd3f9dbb433786511ebde26d19a6d273715b9f9de5e6d44319", + "2022-08-11/rust-std-nightly-x86_64-apple-darwin.tar.gz": "2d258ea107dcf2877b90a9eb8185fee9dd5d1d2f454b742a0f09c8c8f292789e", + "2022-08-11/rust-std-nightly-x86_64-apple-darwin.tar.xz": "38852608fdf70f208055d05773097a7e20f5e202d2d31be3b78ef35b4e195056", + "2022-08-11/rust-std-nightly-x86_64-pc-windows-msvc.tar.gz": "873493e7f36d86c14d993aa9d3bfaab7d4b7cef3c640839bd43af977c54e2d95", + "2022-08-11/rust-std-nightly-x86_64-pc-windows-msvc.tar.xz": "934ef42f5ea977652103e854266d863fcb0d8f2e96d45c1f612d83525508100a", + "2022-08-11/rust-std-nightly-x86_64-unknown-freebsd.tar.gz": "f208bd471d1213fe588591d559f00b05f3c02a574084103d7f8efd2d0a11e513", + "2022-08-11/rust-std-nightly-x86_64-unknown-freebsd.tar.xz": "70187654fccbfdb9576da83fc9a3a99c11c5fa1c0e1ad9f0d983ecfe54dd0c66", + "2022-08-11/rust-std-nightly-x86_64-unknown-linux-gnu.tar.gz": "229f9b2dbaf839b89eb6b5202b6b348372a14d7bd2e687a3bf0316a58a901a9b", + "2022-08-11/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz": "e0f225143d46b44a6609f1b513462e3fd328ae9fed9f44c9973054dce2e4e55b", + "2022-08-11/rust-std-nightly-x86_64-unknown-linux-musl.tar.gz": "130bbc63457ccdc01c63ed8b2da0e97622dd768ad2d74efe42639e546de48e8a", + "2022-08-11/rust-std-nightly-x86_64-unknown-linux-musl.tar.xz": "9a0c96c4b817a72ac9ee9064c7a0f5cfcd6a25629889aa4a3498d3f568c28836", + "2022-08-11/rustc-nightly-aarch64-apple-darwin.tar.gz": "d9117462b6b89e43491b54000ef407d428f42287510cc0a56794d4531a123d25", + "2022-08-11/rustc-nightly-aarch64-apple-darwin.tar.xz": "bbad5f6d6cf3c4b8c872c5c4ad6726b409282bbb0109dbd71673fb597f1792d2", + "2022-08-11/rustc-nightly-aarch64-unknown-linux-gnu.tar.gz": "aaf0eb928335bee1b12adeb8fbba23d36f6a383677d823cac6b0c5ebad190927", + "2022-08-11/rustc-nightly-aarch64-unknown-linux-gnu.tar.xz": "663919aca7927f2e67a148d93582abadbfced8d5cb75c3c7329fbb3d9381d928", + "2022-08-11/rustc-nightly-aarch64-unknown-linux-musl.tar.gz": "d5c30359853792117d69cd4daccae0a772f6844c2d5ed8aeaada84847533ea23", + "2022-08-11/rustc-nightly-aarch64-unknown-linux-musl.tar.xz": "2930e7476dd9f3ccea78741f2a104f35138d4493b4fd3f6f071581064e27cf3a", + "2022-08-11/rustc-nightly-x86_64-apple-darwin.tar.gz": "8686fe6fb435af98d12907a5e4516c99fb814a0e88cac75e56450b3c0c37926a", + "2022-08-11/rustc-nightly-x86_64-apple-darwin.tar.xz": "a608e4d4d06172ce77a29f370f6e1b6043497989c27c2b63d2de907dab82e771", + "2022-08-11/rustc-nightly-x86_64-pc-windows-msvc.tar.gz": "46e644f94e63989e49ef46689ac96f9c5d68c94bba47b43b41c487c70ecff4bd", + "2022-08-11/rustc-nightly-x86_64-pc-windows-msvc.tar.xz": "aa21a53799621359c8041bcaae1088a6e248e8e1d5c4c9a1502a35162c8f4801", + "2022-08-11/rustc-nightly-x86_64-unknown-freebsd.tar.gz": "34b2ff3434e12e8988a11b3ca64ffff5df861c5f110a7437f410efbb2a729eff", + "2022-08-11/rustc-nightly-x86_64-unknown-freebsd.tar.xz": "70a2b636adbbc195b19eddc7f7965805f615301e459e7f6a6a5187b122b88fc4", + "2022-08-11/rustc-nightly-x86_64-unknown-linux-gnu.tar.gz": "747c20914b7092122e04f96bb9cc0eb9c9ce464a84c293c4757bb0048a64fab7", + "2022-08-11/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz": "d336bad5eafbc6efab8155b074c92a828eadd8a4351ec43e99dba0933edc52ae", + "2022-08-11/rustc-nightly-x86_64-unknown-linux-musl.tar.gz": "5e81fc972b15000c53cdbb57656743473608137c2afb232d52b655a1768bd68e", + "2022-08-11/rustc-nightly-x86_64-unknown-linux-musl.tar.xz": "257ef0b77267b5e669c4c766624eddf97c82db18ae0177e20cfb08f381170222", + "2022-08-11/rustfmt-nightly-aarch64-apple-darwin.tar.gz": "3571fec05338c10bc6d5ee3769e63744c58402ce75e159f8f68e4cd73a74e196", + "2022-08-11/rustfmt-nightly-aarch64-apple-darwin.tar.xz": "c1e5e8cc3af2efd6b053c72dc65f2f2a7a921983b114f7e3b29b72fb4c697031", + "2022-08-11/rustfmt-nightly-aarch64-unknown-linux-gnu.tar.gz": "15c42f77dfbaa6be9474e039272a29fef9bbfd4e819e290ac6182d71bb035ce1", + "2022-08-11/rustfmt-nightly-aarch64-unknown-linux-gnu.tar.xz": "830a2c5bab5e74d9a6fea3a74cdd229de8d8ebc3719933c5bddd5a3ec0772f9d", + "2022-08-11/rustfmt-nightly-aarch64-unknown-linux-musl.tar.gz": "352b9d2253e86e27408d42ac19864f6f144d3b8369201ebe55259d0fe7b63121", + "2022-08-11/rustfmt-nightly-aarch64-unknown-linux-musl.tar.xz": "06f08c01ac6b98afffb69c5904d0b3637ab22354ca91c24c096b734f8b0b9b48", + "2022-08-11/rustfmt-nightly-x86_64-apple-darwin.tar.gz": "3661fae080b7efabea5d3ae9bdf2b1caf9a0a9a94dd6c4fb9eb3c9ef110d3e70", + "2022-08-11/rustfmt-nightly-x86_64-apple-darwin.tar.xz": "b22504f531bfbab99a06ba4578f1740bc52c5615bd5282516a7a8357279d22ec", + "2022-08-11/rustfmt-nightly-x86_64-pc-windows-msvc.tar.gz": "d659310a7b7cf01f314031aa8a3617bfcb479485fc003185a5e5d4a5e215cb87", + "2022-08-11/rustfmt-nightly-x86_64-pc-windows-msvc.tar.xz": "b7ca2ff20b39e646c68a393257dc39738f850256bb9aea0c45ea306a5587d4a9", + "2022-08-11/rustfmt-nightly-x86_64-unknown-freebsd.tar.gz": "fc84d1e36a1984e0b8fda3f7ba3cf5d79f7a62d07ec902937af0a31420c5096e", + "2022-08-11/rustfmt-nightly-x86_64-unknown-freebsd.tar.xz": "cb5b808b818bdcfcea9173c1440583f0f4e760910e91eb09a1716deb765c5b12", + "2022-08-11/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.gz": "08a0a4b8eaf788e94eaacf2990f3f3396e5f0bc073aabdbe52b4228b5645f251", + "2022-08-11/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz": "335675f462df9829812228841369d8f22f48d824bea22558be128d0d1d05d552", + "2022-08-11/rustfmt-nightly-x86_64-unknown-linux-musl.tar.gz": "9bf2cc7e0f2d8ffb37508b97c677dc4d330b7e7f8f18d891ef86f1b7dc8d949d", + "2022-08-11/rustfmt-nightly-x86_64-unknown-linux-musl.tar.xz": "fdfbe854976a0312352b7312690ef12a93acc1c915830b23ee0fbc451b56dd2b", "cargo-1.48.0-aarch64-unknown-linux-gnu.tar.gz": "71347016f0da96d4250225f7b52701274df958870b1a65482badb87d661035f9", "cargo-1.48.0-aarch64-unknown-linux-gnu.tar.xz": "9ea440709cf51cf28110847fd769e7fc937a01d03500edec5232408c4459fc80", "cargo-1.48.0-aarch64-unknown-linux-musl.tar.gz": "873883a9f6eb2e0cae7dafdc6c4262157298b7bc6ac5c3ed899ed1f55cad7e82", @@ -2580,6 +2696,22 @@ FILE_KEY_TO_SHA = { "cargo-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "9af4601aed486c982d5f07f8a0c2506a5a278316cfe30f77f5a41b5f69d8382e", "cargo-1.62.1-x86_64-unknown-linux-musl.tar.gz": "35a5b6fb9950a1825f44bb9f69cc3c0ba9f2014b9645c774a7ecc4597009f7c0", "cargo-1.62.1-x86_64-unknown-linux-musl.tar.xz": "089705fc085f2806c0c541a1bac918cfb83a775c69db6868185e6a9e62ae09b4", + "cargo-1.63.0-aarch64-apple-darwin.tar.gz": "4ae53dd1a0c059ba4a02a728c9250c785e39bd4f51550e2d3040e96457db4731", + "cargo-1.63.0-aarch64-apple-darwin.tar.xz": "fc9eb10567ad9b477180d40669c4e6f8edc48f54083689f4a0b4a49db1815b37", + "cargo-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "4e359ffb5ef7cb69014d1c7c9a9ccdd2efa1220551f09f52aac16777eb75f01b", + "cargo-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "4313ab44dccba4faed20db4aacc16def405773d1676e79d3e65ced4b99d710d4", + "cargo-1.63.0-aarch64-unknown-linux-musl.tar.gz": "4cdb73c7b6a5618d3b3b9c1b5361a9d80ddb9f00b3b7ecdddccc774fd644963a", + "cargo-1.63.0-aarch64-unknown-linux-musl.tar.xz": "2b9dc58653b17dcff716007730d649b313879d8d5f41b3d0d2e65745ac2bc7c8", + "cargo-1.63.0-x86_64-apple-darwin.tar.gz": "91fe0d3477036b0630b09db2a9ef340c29b8be56c48ed244428e2490043ca841", + "cargo-1.63.0-x86_64-apple-darwin.tar.xz": "6d245f3426815e07b423ce86db59f135a4347f66fa6ca78f4e3d9128e66eca57", + "cargo-1.63.0-x86_64-pc-windows-msvc.tar.gz": "5b1d2d8ef410f218f1ecf5e853bd218cf6f40e3b3f46b04f477875c125821956", + "cargo-1.63.0-x86_64-pc-windows-msvc.tar.xz": "5e7eb636ac2632a2c729b07fee84a3c37ede355b352dd36778b304d5f322e6f4", + "cargo-1.63.0-x86_64-unknown-freebsd.tar.gz": "ad9503079dde6499f6a7d85f44a931189a84220ad845dc13979c48e04a28ec62", + "cargo-1.63.0-x86_64-unknown-freebsd.tar.xz": "2f5128a4ec2caf81a45c37906045eb9e9f43b99e86ab8a4a6d24d41264b763d6", + "cargo-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "43445b2131cefa466943ed4867876f5835fcb17243a18e1db1c8231417a1b27e", + "cargo-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "f370d12e4c11f0c835becb738bcf00d363f29b76f8b424b4dcb005abcf15fc9a", + "cargo-1.63.0-x86_64-unknown-linux-musl.tar.gz": "43b6b236d5e3ccaea3afad43d13bb3d0c7628a22024f770d143a7949b298f3dc", + "cargo-1.63.0-x86_64-unknown-linux-musl.tar.xz": "6f6ce044832a2433c250f4f27a61f69081e2b0f7e4e1f141492c2ce99ee8511e", "clippy-1.48.0-aarch64-unknown-linux-gnu.tar.gz": "2cc894bf75d938c0f7b96c7711d93b6d5a0befed5c09232cdd8413a57942ed88", "clippy-1.48.0-aarch64-unknown-linux-gnu.tar.xz": "ff5fc4d3b4f1b6147f782d28669fa0e847b3660185fa147e4ebf4d9ace61cd4e", "clippy-1.48.0-aarch64-unknown-linux-musl.tar.gz": "b3d740358470df6f4c1881a40db16c6fce4082bd251b012963147fdadab96879", @@ -2882,6 +3014,22 @@ FILE_KEY_TO_SHA = { "clippy-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "1d7d113459ae1ac060d37c7de8d981c651eac16527e8ba5bedcd89309aca1e10", "clippy-1.62.1-x86_64-unknown-linux-musl.tar.gz": "470fcf84bc8ce04229f16f493513b05902aa600cb85ddcd7a80a9212bb415a91", "clippy-1.62.1-x86_64-unknown-linux-musl.tar.xz": "eb07eb7ec59e4a332f3a8d761612fb11eaf6c669f3451c1a056117f3c1ab466e", + "clippy-1.63.0-aarch64-apple-darwin.tar.gz": "7b3e9587b9c46633924f03821ac13f71a4a23b64b5d96a364f8aa98f43de38a0", + "clippy-1.63.0-aarch64-apple-darwin.tar.xz": "171a7d76a785156f6fbe241cdc699d3beeddfd65d46664fe68d92a0a48d8541a", + "clippy-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "54c3f9ddb1f65fb7b4812736dc0a730f383db51403f277a778b90252982ba02f", + "clippy-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "2cc6ed88f9972577f38d18d621e488174dd19d6f71ecd6f6845dd804f793b362", + "clippy-1.63.0-aarch64-unknown-linux-musl.tar.gz": "5a65b22a410d7a443db56653eb164019fd72b4dd3da24178631ce5fe5efaa169", + "clippy-1.63.0-aarch64-unknown-linux-musl.tar.xz": "09f4b9aa9b63f91e28939c26a1193da99bcd33f7f7dc53bb81c7ebd1ce614012", + "clippy-1.63.0-x86_64-apple-darwin.tar.gz": "461788df242431c795a80d263866593c6703173317afcdf4bd2e3a0fd4227dc7", + "clippy-1.63.0-x86_64-apple-darwin.tar.xz": "2fbae788a4a05b3ea61358e5493803117a8838d5b60c99dfefaa76e30c4c5458", + "clippy-1.63.0-x86_64-pc-windows-msvc.tar.gz": "888affa6955d2357d623cd46b682d2fc3bbf76de805fbbe946706f1b2dc4dec1", + "clippy-1.63.0-x86_64-pc-windows-msvc.tar.xz": "af40ed8d1a45a75c43cca24ecd522bde1cb63fa98580cfd5639189866142690c", + "clippy-1.63.0-x86_64-unknown-freebsd.tar.gz": "bbdabc9d418a4faeb101bc8c6890440d37cd7d41fcc1e8a2beae4d373299839c", + "clippy-1.63.0-x86_64-unknown-freebsd.tar.xz": "a3b05571925175e7ca9f98a49864b592b54a8c117f67593c07c213193ec2420a", + "clippy-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "ca2ac1eb144cdc70cce77ada3ca69a1bda414997f8e486a73e205ff599e811cc", + "clippy-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "94b10fd4c344b62c503767bca07ee4642faa4e70a11d084be2581676ef6cd011", + "clippy-1.63.0-x86_64-unknown-linux-musl.tar.gz": "ffe8d5ddb65cc8647ee75797e1fa5f499da4f0436f14fb0f4c54fe0ef87ce29b", + "clippy-1.63.0-x86_64-unknown-linux-musl.tar.xz": "f9cb19e93d0431e48143b56b1159fdb3681a812afca40d267761034b31d574f1", "llvm-tools-1.36.0-aarch64-unknown-linux-gnu.tar.gz": "942856e49837a1c3b9c7d48b52cf0ac0fcb2bb31bb691fe53bfb934afb561c7f", "llvm-tools-1.36.0-aarch64-unknown-linux-gnu.tar.xz": "e2671f3710f65642779023e46ad7402cc3bdaa15861ccfd6b48f1607e0b76ae1", "llvm-tools-1.36.0-x86_64-apple-darwin.tar.gz": "ed702a4174a27fcf118f301e79835c3da205d3d98adb4acc294b72293a2ec790", @@ -3328,6 +3476,22 @@ FILE_KEY_TO_SHA = { "llvm-tools-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "e3a87c051b6a668abaf5394584917e2d86dd8a8867cb95e309d0bfe345fc2154", "llvm-tools-1.62.1-x86_64-unknown-linux-musl.tar.gz": "a3a25356445da9e4c433e3a4d1c307727824031ea2aed34c314bd053c4f62fbb", "llvm-tools-1.62.1-x86_64-unknown-linux-musl.tar.xz": "4e71a395a9cc85364ceba82fab89f5bcaf03ead646eec88405b49a45bc20dc78", + "llvm-tools-1.63.0-aarch64-apple-darwin.tar.gz": "910974102c139febc69aed7a835a73524546238380b56635fff266e4736e3ca8", + "llvm-tools-1.63.0-aarch64-apple-darwin.tar.xz": "0e945f7e4758c02e123e58fdead64027022f17abd047345ef3cdd3de1d5b9b6f", + "llvm-tools-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "2d47785e0fdcbb8dca135c7ef6b10feab1830ee983da8e333ec3b679f7d27a5a", + "llvm-tools-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "19854d3350ba279102fbde93b4fb8a2a97b2dc92f607d6d0cb90cb930d3a7980", + "llvm-tools-1.63.0-aarch64-unknown-linux-musl.tar.gz": "f88f6b59a83dc04bd23734fbfb88e953abe0782f202eceaba29b0c92fe6f4fa7", + "llvm-tools-1.63.0-aarch64-unknown-linux-musl.tar.xz": "f4b62392bacf63f72cb84d264a16d8e91ade8020c8533fa97ecc2142ecd680f4", + "llvm-tools-1.63.0-x86_64-apple-darwin.tar.gz": "a19caa6873448b5be6bf5de9a486127f2aa608060bd4fcf8a965226cdbd171f8", + "llvm-tools-1.63.0-x86_64-apple-darwin.tar.xz": "b2df5de5202b2ed62c4f5e3dfc87c6f725db1d25a565a019f57a9544aac42057", + "llvm-tools-1.63.0-x86_64-pc-windows-msvc.tar.gz": "dc873d6adca59ee0aeebcab33197a0bc2a3e165fbe9d5fbed8e42ca46278ce9c", + "llvm-tools-1.63.0-x86_64-pc-windows-msvc.tar.xz": "b33c06fb8208b30e1fc99a6d18f3896d9cd9c15b3fc959e2d339343641b50845", + "llvm-tools-1.63.0-x86_64-unknown-freebsd.tar.gz": "233c5c55bf4fbe2023765be72084d9b0586c87bf3ac9629f2ebadaa1230b5dfd", + "llvm-tools-1.63.0-x86_64-unknown-freebsd.tar.xz": "f401e4e78f8250f6b2ad3cc9ca536cdd1aa35ec0fe4b5d36bf83d3011f6fbf59", + "llvm-tools-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "cffac0e4058a9f1312610f8323eb76bb2a3fe0dfd5e3042545622691d9a3227d", + "llvm-tools-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "18b8d821fc4256d564b9a2f1de6f67085e0db526893fcdb7611c404696c3f3d5", + "llvm-tools-1.63.0-x86_64-unknown-linux-musl.tar.gz": "8bfc1fd9e162a061cae66f761f41c02986aeba73ad04bdfff36a2b72ca4c14f7", + "llvm-tools-1.63.0-x86_64-unknown-linux-musl.tar.xz": "91fd9342217979526f431c08f411376f33b5c1e1d045d232e7f57056506434c4", "rust-1.26.0-aarch64-unknown-linux-gnu.tar.gz": "e12dc84bdb569cdb382268a5fe6ae6a8e2e53810cb890ec3a7133c20ba8451ac", "rust-1.26.0-aarch64-unknown-linux-gnu.tar.xz": "773560f577d4bfc34efa69f035b0d397fc8f4d55835d163416bc4f2012a57a4a", "rust-1.26.0-x86_64-apple-darwin.tar.gz": "38708803c3096b8f101d1919ee2d7e723b0adf1bc1bb986b060973b57d8c7c28", @@ -3956,6 +4120,22 @@ FILE_KEY_TO_SHA = { "rust-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "2f4dca8a67e8e3c3aab8da4146a93e3a5fd249af6f5a845083ade716ec0b9be9", "rust-1.62.1-x86_64-unknown-linux-musl.tar.gz": "32bee487074b105e2582cddce35934a6019eec74bae3f9300fdc3edfcf5b66d4", "rust-1.62.1-x86_64-unknown-linux-musl.tar.xz": "11c79886f55d314dae8b9a2c38db169cffa94cb536193e8971dbf662cf56bab1", + "rust-1.63.0-aarch64-apple-darwin.tar.gz": "25c3f43459da9b8683292999c3522d88980b0ca3244fe830f5a87a8092aac5a6", + "rust-1.63.0-aarch64-apple-darwin.tar.xz": "b8c3461e4924093308bff8a8b4bab00502dc7e481c9e5e3b520c8e2d3cd3c876", + "rust-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "26745b57500da293a8147122a5998926301350a610c164f053107cbe026d3a51", + "rust-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "963dd3c8b0b1ba970e8608b5bf457c24d5dc471d68f40e5cb62582fbd0461988", + "rust-1.63.0-aarch64-unknown-linux-musl.tar.gz": "8fee65f2bd7e010259763939cbef8ed0794773ec8959c5ef90273cf39dcba180", + "rust-1.63.0-aarch64-unknown-linux-musl.tar.xz": "324b34e3d7d49ff6ac423e259d7bac8d4fddcd9b03442df73f0e6a422063cdd7", + "rust-1.63.0-x86_64-apple-darwin.tar.gz": "37f76a45b8616e764c2663850758ce822c730e96af60168a46b818f528c1467d", + "rust-1.63.0-x86_64-apple-darwin.tar.xz": "c1259fb8ea25a05b8ddf0c3b6b05e7a8b0fc993764162805181722706cd2d241", + "rust-1.63.0-x86_64-pc-windows-msvc.tar.gz": "c774262eb1dc9a65dd9b323584e8984232517d76f0ff11851bc2cee85c2268ab", + "rust-1.63.0-x86_64-pc-windows-msvc.tar.xz": "90da69da9bcf00765ab854d027becd2aec6cf0256e9b1c864d39fd3dd33fd07b", + "rust-1.63.0-x86_64-unknown-freebsd.tar.gz": "ebbbb80413c4f6a6c30d6e7823016e8c54b07ea273c6578cafe3da55371754e8", + "rust-1.63.0-x86_64-unknown-freebsd.tar.xz": "2eff583cc8f76051c468f2d55cc85b49ec351cc768bd0f1a71cf119bb811acbd", + "rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "536bcf16807a4ff49b7b29af6e573a2f1821055bfad72c275c60e56edc693984", + "rust-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "be9b25bcf1e564876762e653688e0b5df11fab53048ac18bf77761cf0a0cc465", + "rust-1.63.0-x86_64-unknown-linux-musl.tar.gz": "4516f1fa2a0d9ec9176cc734e5faaa0a3d439bd49f75553a484b6c3c6d7905ab", + "rust-1.63.0-x86_64-unknown-linux-musl.tar.xz": "59378c9e14bb9383f3495652ca60b05f46b95464f06297e3b00c81e6025e56da", "rust-src-1.26.0.tar.gz": "d02fe6fd5c0f330656e9ff0a290ebf23cab7c909f96ce1838247fadc117eb1dd", "rust-src-1.26.0.tar.xz": "7d313fdecb23afd07826b62360f63c40ca8c12730b00b7cecf2c53098039e326", "rust-src-1.26.1.tar.gz": "19ef8113ae53ec7ea8f6772a5c9ce5a3dfc28b1bddd800841fb5bbec33fa3619", @@ -4054,6 +4234,8 @@ FILE_KEY_TO_SHA = { "rust-src-1.62.0.tar.xz": "14856905c4e49775270c7162403032c2c97f4e656eb12514c5ad9a59c997d2bd", "rust-src-1.62.1.tar.gz": "4cca13c2e3c6aac4361fc7d928a4c82164bbded56d8bb0c7170b7f15a5da51af", "rust-src-1.62.1.tar.xz": "23c944887fa5873b58a15c307599c6562aff51fafb7020c3530e7b00a5031a8b", + "rust-src-1.63.0.tar.gz": "bb5e585be3f02a1e994b7a372b071b3d00c7e0ff71c1f5fb2cdee353717dde8a", + "rust-src-1.63.0.tar.xz": "d4f84d50ea61630df493db5cb1f71e7429f4118e7dbf6af5eb548910abac517d", "rust-std-1.26.0-aarch64-unknown-linux-gnu.tar.gz": "a583ddc2d4b5f9516bf136f781268ae0e813295d1d145fab4b46a4220f448923", "rust-std-1.26.0-aarch64-unknown-linux-gnu.tar.xz": "85615b5a109d4c12e9d0910020fceece8f0535848c137c8b8662d38de3d8ca37", "rust-std-1.26.0-aarch64-unknown-linux-musl.tar.gz": "6a112ecd4cdefee2688bf69fdceb785a4d08cea33ba32296539abe3cb7f5eae1", @@ -4936,6 +5118,26 @@ FILE_KEY_TO_SHA = { "rust-std-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "431110528b25c0eeff47304ebedc423fa8051e995b35cfedce880038a52b23a4", "rust-std-1.62.1-x86_64-unknown-linux-musl.tar.gz": "e4adac8cb3c49241f7c0b61b2e0eca70abe0b3e4786182654f7ba8f33027c177", "rust-std-1.62.1-x86_64-unknown-linux-musl.tar.xz": "1d286fceccd0370b13a0721bd1e164f5dcad0c0c4f3345af2fe88889583d2c8e", + "rust-std-1.63.0-aarch64-apple-darwin.tar.gz": "d7a49553f5385f8f39abd6179500690bd120cc36ee504076bce777f2fa32d02b", + "rust-std-1.63.0-aarch64-apple-darwin.tar.xz": "98b07c535a60d3c60eda821378157aca8e604f1b8023b94310f97656c9c4a598", + "rust-std-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "4afce4152945642fb4c1a7fa44ffe396f98ce094108ffe29b1833413e8eed49d", + "rust-std-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "f1d93b3d48258f701687c63ef9b226c07329fb92c2c5559283258687f958e9d0", + "rust-std-1.63.0-aarch64-unknown-linux-musl.tar.gz": "0f3d44e3432ed152d5ad9759741bcc8844386af3286beb6dc856323d7f56565c", + "rust-std-1.63.0-aarch64-unknown-linux-musl.tar.xz": "f8facb978bdc56ac6ffbcfb26e9f42762a820990013a5c6278c5e86cea039d44", + "rust-std-1.63.0-wasm32-unknown-unknown.tar.gz": "0ba89f8bd8a563c4af34060d0261cb6ffbd11cca1277797510ebfece91ec7cb5", + "rust-std-1.63.0-wasm32-unknown-unknown.tar.xz": "4fe359d61dff870157639d320e61c5e61c9e220cd71214f44337b50b9733de59", + "rust-std-1.63.0-wasm32-wasi.tar.gz": "79ba7355da31da483b2a1e22367ad5bee21d216a3095ae9e19f5ce38fd580b5d", + "rust-std-1.63.0-wasm32-wasi.tar.xz": "c8b2a9d116db93cfed3373f1fcd5cc8b40669154e3fe0b2e37a76783492ae9b2", + "rust-std-1.63.0-x86_64-apple-darwin.tar.gz": "a8653b57d0efbccf3e95953cfb9c7a2ddaa68ba789edc8378c5b0b8200cc3be5", + "rust-std-1.63.0-x86_64-apple-darwin.tar.xz": "2f870140d7dbf313bd612692c93a020e285d70557cb093eee20f38af2d11138c", + "rust-std-1.63.0-x86_64-pc-windows-msvc.tar.gz": "e72b994d365e02242f2ef50cca73019c5c7ec57f55585b4f02e819a5cfd204f1", + "rust-std-1.63.0-x86_64-pc-windows-msvc.tar.xz": "3b336cb1a423f37fa9fd1927a311f1daf32ebfc0e48cb430178995c942bc4fa3", + "rust-std-1.63.0-x86_64-unknown-freebsd.tar.gz": "9f8e178831660036f918376a84c7e98f53a3fa5ed2a297a9b56f805774968d7a", + "rust-std-1.63.0-x86_64-unknown-freebsd.tar.xz": "f35fd4780a421f661e30996b1fc02a99747c88e0ae598f8db374dafcc296c182", + "rust-std-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "4211c28e3359e915c116524aeb13a728dfd1e8889d1b01d32ed64b2995534eae", + "rust-std-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "993c2c17bf76ac626bfb5b17bddce65fbdfc14f70d183f33773de0cd12df46d2", + "rust-std-1.63.0-x86_64-unknown-linux-musl.tar.gz": "5d754e45cc659e616d2866e1ddb6142d75b7793acfd550c142b83d5170cdff58", + "rust-std-1.63.0-x86_64-unknown-linux-musl.tar.xz": "6fcfa4f9a51d35bf2c5c92ac15c688baa8c98d9fded05ab6abfdae85cb5aed8c", "rustc-1.26.0-aarch64-unknown-linux-gnu.tar.gz": "ddddaddb585b95d81854171ac4e02d07790505853cee3034f199c8b7897f32e2", "rustc-1.26.0-aarch64-unknown-linux-gnu.tar.xz": "859daf94bd0f9c14aa58af41c30b5105c49f28860bcebba3ddcd9699813954cb", "rustc-1.26.0-x86_64-apple-darwin.tar.gz": "5cb67314656d16cf2a1bdc84213aaaf6afdb5811825c7afba916e2d42d3d641f", @@ -5564,6 +5766,22 @@ FILE_KEY_TO_SHA = { "rustc-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "10a269b15d569dc07fa7bd4a701784d5a897395622891e1003710a6a386fcf09", "rustc-1.62.1-x86_64-unknown-linux-musl.tar.gz": "54cb96ad8db976c4deed44f202522b4f02235af578c7219e9e11865b2113cc9c", "rustc-1.62.1-x86_64-unknown-linux-musl.tar.xz": "1818c682fc8e48537c1c43a9fd7eee4bb12ae24c201f1ac7b0e889ab01b32f2b", + "rustc-1.63.0-aarch64-apple-darwin.tar.gz": "521e392d218cc2610c530d5b380e68fb91161ca598b55a7dac93fd04228caf62", + "rustc-1.63.0-aarch64-apple-darwin.tar.xz": "630dca8e83d93a64b734693a1ece88c3881ef979c5c711174bc029bb2fb517e2", + "rustc-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "a4189dda06098813fb1e08861deae8993c809051c3c716b6aefe3793f5f0fb5e", + "rustc-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "d78799bb8f4177877f97b9051c9cba1fd85173f2e9cecab9486388fc6fa66259", + "rustc-1.63.0-aarch64-unknown-linux-musl.tar.gz": "8ea10281826193f3be19db68995805b5a098cb76f74de18bda09642d44cfcc64", + "rustc-1.63.0-aarch64-unknown-linux-musl.tar.xz": "93dfb20c91f3aa00b31bbad099c8a42badb0b2bd1ebbd4d94eaf196d5c8a193e", + "rustc-1.63.0-x86_64-apple-darwin.tar.gz": "47cd3aac451fe69a131d452023578d6da2fe954b4a90b2d65177c217628f2faa", + "rustc-1.63.0-x86_64-apple-darwin.tar.xz": "013af630df1136febf784c91f61d04f501226acc3b08b099b17456c62e0bd42c", + "rustc-1.63.0-x86_64-pc-windows-msvc.tar.gz": "258e22e8b6500038b421ed328dd844856409b78a3c76585b02b6d22b62dd818d", + "rustc-1.63.0-x86_64-pc-windows-msvc.tar.xz": "c953562b6ce63b2cd8d36dcc3d6c598ca430b041573961e942ce978ee7e68522", + "rustc-1.63.0-x86_64-unknown-freebsd.tar.gz": "1b2f4143b4c9b3d22d1c0f7bf34b965f4a37f8d88c7c8fbe6478b997ca18a801", + "rustc-1.63.0-x86_64-unknown-freebsd.tar.xz": "13f55761f1fe00e04046bfa37e01dd66c10d33dfc66b8790e284eeb0a6e8da62", + "rustc-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "c5bb7656557bf6451b2c53b18b6d092814fcba922ff2ffa4f704a41d79595f2d", + "rustc-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "bdab9d9afa5c329c40f9ba568364815237fab8426477c12bfabad35ffc484ab5", + "rustc-1.63.0-x86_64-unknown-linux-musl.tar.gz": "91b3fd3883fff758ccff5349cf7960caa567b02ee0911dd6beaeed1f45b3e3bc", + "rustc-1.63.0-x86_64-unknown-linux-musl.tar.xz": "b6566a9b1dafe03cf4a01b58b2db0e14a0044ae5773736827882bd549108277e", "rustfmt-1.48.0-aarch64-unknown-linux-gnu.tar.gz": "28f7d1ef37c034033eb0e30a13e5f0ad5bbc506adb8a8a9c03adce2b0d4842d5", "rustfmt-1.48.0-aarch64-unknown-linux-gnu.tar.xz": "24f5e32213cd81bbb854f836c4da44e31652b4f6dff3a9b5455d5433bffacf9f", "rustfmt-1.48.0-aarch64-unknown-linux-musl.tar.gz": "e6efa0fae347f97dca3b892565302d35b4cedfee7cb6e2b5fcdb2801074fe018", @@ -5866,4 +6084,20 @@ FILE_KEY_TO_SHA = { "rustfmt-1.62.1-x86_64-unknown-linux-gnu.tar.xz": "572c0176b1333f06995f52ec85a3a4afd742fe2cff92d8aa7a4a168b64f4a773", "rustfmt-1.62.1-x86_64-unknown-linux-musl.tar.gz": "b4d0187b841b8fdb68f05d36d1febf5150abf00dff887042012bafc3f05020b1", "rustfmt-1.62.1-x86_64-unknown-linux-musl.tar.xz": "7e73643b6a376d3bb82671a6204df5c47bc191e317e7a697cbe09c113cf053a4", + "rustfmt-1.63.0-aarch64-apple-darwin.tar.gz": "c60aecedfe87998bd5a2c99f37222cc27ee86ca26813f3bdf9411c0bdf09bfc8", + "rustfmt-1.63.0-aarch64-apple-darwin.tar.xz": "3d9c7ea12327e7123d705d359db9fd2807227bd8fac8330d21c15a82aa00f543", + "rustfmt-1.63.0-aarch64-unknown-linux-gnu.tar.gz": "dc15f1c7fbb07b51b6c158d93e608d19e90db18ce72a9cf64329c1defd2a07ff", + "rustfmt-1.63.0-aarch64-unknown-linux-gnu.tar.xz": "ccbec07b0eec7789882a1fdfbff8dfaac26f38f98b2ace8573d214fc72094093", + "rustfmt-1.63.0-aarch64-unknown-linux-musl.tar.gz": "0e37eb19479f9ac871268193d61b72032a1da47934eeda82189d38258ac23c71", + "rustfmt-1.63.0-aarch64-unknown-linux-musl.tar.xz": "eb5fb8414f26784021a3aed69fac6e14472d3b77a7d2fe66aa0a9a682d0e7cb4", + "rustfmt-1.63.0-x86_64-apple-darwin.tar.gz": "f889d77d17e13575b2da905799a4c5ba65127bc90939643413e7fc5b4a268e2e", + "rustfmt-1.63.0-x86_64-apple-darwin.tar.xz": "cfdd7e31bf7e4b0090334f593f50c3ba7d01692cc2e4d35d23f06bcafa2f4c59", + "rustfmt-1.63.0-x86_64-pc-windows-msvc.tar.gz": "f6bff6a2ef5d54d73e5fe32bec5da9407daace41628166bc4a3b061bb885b91d", + "rustfmt-1.63.0-x86_64-pc-windows-msvc.tar.xz": "40fdf436d062570e02406e90d817555ad50f46578bc5dd5dc2e05e63a08504c4", + "rustfmt-1.63.0-x86_64-unknown-freebsd.tar.gz": "89953fcd07356801e9cda98083c454e4899eec511b26c438c0363c097e3ddc28", + "rustfmt-1.63.0-x86_64-unknown-freebsd.tar.xz": "d8e305e5acfc41a62108974e091a322828eeabc70745983beacf3a71e768e3ec", + "rustfmt-1.63.0-x86_64-unknown-linux-gnu.tar.gz": "835fe6282a72bae31c55b76f68eca90d04b9b812f89c3f27e583cf98c7ff2766", + "rustfmt-1.63.0-x86_64-unknown-linux-gnu.tar.xz": "21db548c9736fe31ec5950b3f44d7ff4d712dccd9bac1a6f706f9d0b0ce9a026", + "rustfmt-1.63.0-x86_64-unknown-linux-musl.tar.gz": "f3a3ac317b4b657e2c2664c808d0b32bbaf566f783e591b1e91f1538ebd4ec90", + "rustfmt-1.63.0-x86_64-unknown-linux-musl.tar.xz": "3deb1e808db8030320148f0b45ca752403eafe8d946165b7d7a59b61af00986d", } diff --git a/rust/private/common.bzl b/rust/private/common.bzl index 025c4d76a1..c87faf53c8 100644 --- a/rust/private/common.bzl +++ b/rust/private/common.bzl @@ -31,7 +31,7 @@ load(":providers.bzl", "CrateInfo", "DepInfo", "StdLibInfo", "TestCrateInfo") # # Note: Code in `.github/workflows/crate_universe.yaml` looks for this line, if # you remove it or change its format, you will also need to update that code. -DEFAULT_RUST_VERSION = "1.62.1" +DEFAULT_RUST_VERSION = "1.63.0" def _create_crate_info(**kwargs): """A constructor for a `CrateInfo` provider diff --git a/util/fetch_shas_NIGHTLY_ISO_DATES.txt b/util/fetch_shas_NIGHTLY_ISO_DATES.txt index ce46ada8de..a876a7f2c5 100644 --- a/util/fetch_shas_NIGHTLY_ISO_DATES.txt +++ b/util/fetch_shas_NIGHTLY_ISO_DATES.txt @@ -16,3 +16,4 @@ 2022-05-19 2022-06-30 2022-07-18 +2022-08-11 diff --git a/util/fetch_shas_VERSIONS.txt b/util/fetch_shas_VERSIONS.txt index 26ef26d644..9cc318330b 100644 --- a/util/fetch_shas_VERSIONS.txt +++ b/util/fetch_shas_VERSIONS.txt @@ -47,3 +47,4 @@ 1.61.0 1.62.0 1.62.1 +1.63.0 diff --git a/util/label/label.rs b/util/label/label.rs index 22d2bb4302..bff9984262 100644 --- a/util/label/label.rs +++ b/util/label/label.rs @@ -26,7 +26,7 @@ pub fn analyze(input: &'_ str) -> Result> { Ok(Label::new(repository_name, package_name, name)) } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct Label<'s> { pub repository_name: Option<&'s str>, pub package_name: Option<&'s str>, diff --git a/util/label/label_error.rs b/util/label/label_error.rs index b1d71996fd..ae55b768b6 100644 --- a/util/label/label_error.rs +++ b/util/label/label_error.rs @@ -1,4 +1,4 @@ -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub struct LabelError(pub String); impl std::fmt::Display for LabelError { From 055abd402e7a0a9d3ee70ce6c9ce536d8456df0d Mon Sep 17 00:00:00 2001 From: Tetsuo Kiso Date: Thu, 18 Aug 2022 20:40:43 +0900 Subject: [PATCH 22/26] Fix typo in an example of crates_repository rule (#1520) This fixes a typo in an example of crates_repository rule. --- crate_universe/private/crates_repository.bzl | 2 +- docs/crate_universe.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crate_universe/private/crates_repository.bzl b/crate_universe/private/crates_repository.bzl index f429108861..e5e3647f1b 100644 --- a/crate_universe/private/crates_repository.bzl +++ b/crate_universe/private/crates_repository.bzl @@ -138,7 +138,7 @@ load("@rules_rust//crate_universe:defs.bzl", "crates_repository", "crate") crates_repository( name = "crate_index", - annotations = annotations = { + annotations = { "rand": [crate.annotation( default_features = False, features = ["small_rng"], diff --git a/docs/crate_universe.md b/docs/crate_universe.md index 8bdc0be8b5..c1c71480f8 100644 --- a/docs/crate_universe.md +++ b/docs/crate_universe.md @@ -219,7 +219,7 @@ load("@rules_rust//crate_universe:defs.bzl", "crates_repository", "crate") crates_repository( name = "crate_index", - annotations = annotations = { + annotations = { "rand": [crate.annotation( default_features = False, features = ["small_rng"], From 51c0658415b1e31ec21dac1207a09cfe4630fc73 Mon Sep 17 00:00:00 2001 From: Ara Nguyen <91614797+aranguyen@users.noreply.github.com> Date: Thu, 18 Aug 2022 14:20:43 -0400 Subject: [PATCH 23/26] migrating to rbe_preconfig and remove bazel_toolchains (#1524) --- examples/WORKSPACE.bazel | 18 +++++++++--------- examples/crate_universe/WORKSPACE.bazel | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/WORKSPACE.bazel b/examples/WORKSPACE.bazel index a9ca0808c1..afa56db7e0 100644 --- a/examples/WORKSPACE.bazel +++ b/examples/WORKSPACE.bazel @@ -136,18 +136,18 @@ http_archive( ############################################################################### 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", - ], + name = "bazelci_rules", + sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", + strip_prefix = "bazelci_rules-1.0.0", + url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", ) -load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") +load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig") # 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") +rbe_preconfig( + name = "buildkite_config", + toolchain = "ubuntu1804-bazel-java11", +) diff --git a/examples/crate_universe/WORKSPACE.bazel b/examples/crate_universe/WORKSPACE.bazel index c0c6371151..c743345358 100644 --- a/examples/crate_universe/WORKSPACE.bazel +++ b/examples/crate_universe/WORKSPACE.bazel @@ -321,18 +321,18 @@ 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", - ], + name = "bazelci_rules", + sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", + strip_prefix = "bazelci_rules-1.0.0", + url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", ) -load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") +load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig") # 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") +rbe_preconfig( + name = "buildkite_config", + toolchain = "ubuntu1804-bazel-java11", +) From cfcaf21d57791bfc6b1819a17e1492b33ca43758 Mon Sep 17 00:00:00 2001 From: Cameron Martin Date: Mon, 22 Aug 2022 10:36:16 +0100 Subject: [PATCH 24/26] Preserve directory structure of source files when some are generated (#1526) When some input files are generated, the source files get symlinked to `bazel-out` so the generated and source files are in the same directory. This was implemented in #1340. However, the directory structure would get flattened since only the basename was used for the symlink location. Now the package-relative path is used. Fixes #1510. --- rust/private/rust.bzl | 5 +-- test/generated_inputs/BUILD.bazel | 36 +++++++++++++++++++ test/generated_inputs/lib.rs | 1 + .../src/generated/submodule.rs | 4 +++ test/generated_inputs/src/lib.rs | 1 + test/generated_inputs/submodule/mod.rs | 1 + 6 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 test/generated_inputs/src/generated/submodule.rs create mode 100644 test/generated_inputs/src/lib.rs create mode 100644 test/generated_inputs/submodule/mod.rs diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index 571813b38b..6ebfbea4c7 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -151,9 +151,10 @@ def _transform_sources(ctx, srcs, crate_root): generated_sources = [] generated_root = crate_root + package_root = paths.dirname(ctx.build_file_path) if crate_root and (crate_root.is_source or crate_root.root.path != ctx.bin_dir.path): - generated_root = ctx.actions.declare_file(crate_root.basename) + generated_root = ctx.actions.declare_file(paths.relativize(crate_root.short_path, package_root)) ctx.actions.symlink( output = generated_root, target_file = crate_root, @@ -167,7 +168,7 @@ def _transform_sources(ctx, srcs, crate_root): if src == crate_root: continue if src.is_source or src.root.path != ctx.bin_dir.path: - src_symlink = ctx.actions.declare_file(src.basename) + src_symlink = ctx.actions.declare_file(paths.relativize(src.short_path, package_root)) ctx.actions.symlink( output = src_symlink, target_file = src, diff --git a/test/generated_inputs/BUILD.bazel b/test/generated_inputs/BUILD.bazel index 2820282eda..19fc8e6f66 100644 --- a/test/generated_inputs/BUILD.bazel +++ b/test/generated_inputs/BUILD.bazel @@ -21,10 +21,26 @@ pub fn get_forty_two_as_string() -> String { newline = "unix", ) +write_file( + name = "generate_src_generated", + out = "src/generated.rs", + content = """ +mod submodule; + +#[cfg(test)] +#[test] +fn test_foo() { + assert_eq!(submodule::foo(), "foo"); +} +""".splitlines(), + newline = "unix", +) + rust_library( name = "use_generated_src", srcs = [ "lib.rs", + "submodule/mod.rs", ":src.rs", ], edition = "2018", @@ -35,6 +51,7 @@ rust_library( name = "use_generated_src_with_crate_root_defined", srcs = [ "lib.rs", + "submodule/mod.rs", ":src.rs", ], crate_root = "lib.rs", @@ -55,6 +72,25 @@ rust_library( tags = ["norustfmt"], ) +rust_library( + name = "use_generated_src_with_crate_root_in_subdir", + srcs = [ + "src/generated.rs", + "src/generated/submodule.rs", + "src/lib.rs", + ], + crate_root = "src/lib.rs", + edition = "2018", + tags = ["norustfmt"], +) + +rust_test( + name = "use_generated_src_with_crate_root_in_subdir_test", + crate = "use_generated_src_with_crate_root_in_subdir", + edition = "2018", + tags = ["norustfmt"], +) + # When no lib.rs, main.rs file exists, we try to use the file that carries # the target's name as a crate_root. rust_library( diff --git a/test/generated_inputs/lib.rs b/test/generated_inputs/lib.rs index 5982f9de3b..cbcc7bd077 100644 --- a/test/generated_inputs/lib.rs +++ b/test/generated_inputs/lib.rs @@ -1,4 +1,5 @@ mod src; +mod submodule; pub fn forty_two_as_string() -> String { format!("{}", src::forty_two()) diff --git a/test/generated_inputs/src/generated/submodule.rs b/test/generated_inputs/src/generated/submodule.rs new file mode 100644 index 0000000000..7a80b0a4b0 --- /dev/null +++ b/test/generated_inputs/src/generated/submodule.rs @@ -0,0 +1,4 @@ +#[cfg(test)] +pub fn foo() -> &'static str { + "foo" +} \ No newline at end of file diff --git a/test/generated_inputs/src/lib.rs b/test/generated_inputs/src/lib.rs new file mode 100644 index 0000000000..f2cc9c5f5a --- /dev/null +++ b/test/generated_inputs/src/lib.rs @@ -0,0 +1 @@ +mod generated; \ No newline at end of file diff --git a/test/generated_inputs/submodule/mod.rs b/test/generated_inputs/submodule/mod.rs new file mode 100644 index 0000000000..0c9d8fdac2 --- /dev/null +++ b/test/generated_inputs/submodule/mod.rs @@ -0,0 +1 @@ +//! This is to test that the folder structure is properly preserved From 6c10db4ca1d7498c2c812cb6885a8fb6a839c4b8 Mon Sep 17 00:00:00 2001 From: Roman Kashitsyn Date: Tue, 23 Aug 2022 19:55:20 +0200 Subject: [PATCH 25/26] feat: make source path prefix configurable --- BUILD.bazel | 11 ++++++++++- rust/defs.bzl | 4 ++++ rust/private/rust.bzl | 3 +++ rust/private/rustc.bzl | 24 ++++++++++++++++++++---- 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 69e43c7e91..a460e94bf7 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,5 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("//rust:defs.bzl", "capture_clippy_output", "clippy_flags", "error_format", "extra_exec_rustc_flag", "extra_exec_rustc_flags", "extra_rustc_flag", "extra_rustc_flags", "is_proc_macro_dep", "is_proc_macro_dep_enabled") +load("//rust:defs.bzl", "capture_clippy_output", "clippy_flags", "error_format", "extra_exec_rustc_flag", "extra_exec_rustc_flags", "extra_rustc_flag", "extra_rustc_flags", "is_proc_macro_dep", "is_proc_macro_dep_enabled", "source_path_prefix") exports_files(["LICENSE"]) @@ -76,6 +76,15 @@ extra_exec_rustc_flag( visibility = ["//visibility:public"], ) +# This setting may be used to override the prefix for source paths rustc embeds into build artifacts. +# Setting this setting to a fixed value (e.g., "/source/") can help achieve reproducible builds and +# improve cache utilization. +source_path_prefix( + name = "source_path_prefix", + build_setting_default = ".", + visibility = ["//visibility:public"], +) + # This setting is used by the clippy rules. See https://bazelbuild.github.io/rules_rust/rust_clippy.html label_flag( name = "clippy.toml", diff --git a/rust/defs.bzl b/rust/defs.bzl index 92c8a77406..d8a5631366 100644 --- a/rust/defs.bzl +++ b/rust/defs.bzl @@ -49,6 +49,7 @@ load( _extra_rustc_flags = "extra_rustc_flags", _is_proc_macro_dep = "is_proc_macro_dep", _is_proc_macro_dep_enabled = "is_proc_macro_dep_enabled", + _source_path_prefix = "source_path_prefix", ) load( "//rust/private:rustdoc.bzl", @@ -124,6 +125,9 @@ is_proc_macro_dep = _is_proc_macro_dep is_proc_macro_dep_enabled = _is_proc_macro_dep_enabled # See @rules_rust//rust/private:rustc.bzl for a complete description. +source_path_prefix = _source_path_prefix +# See @rules_rust//rust/private:rustc.bzl for a complete description. + rust_common = _rust_common # See @rules_rust//rust/private:common.bzl for a complete description. diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index 6ebfbea4c7..9b9bacc6c4 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -701,6 +701,9 @@ _common_attrs = { "_extra_rustc_flags": attr.label( default = Label("//:extra_rustc_flags"), ), + "_source_path_prefix": attr.label( + default = Label("//:source_path_prefix"), + ), "_import_macro_dep": attr.label( default = Label("//util/import"), cfg = "exec", diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index 490bfa1d65..1c6b9e7cb6 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -90,6 +90,11 @@ is_proc_macro_dep_enabled = rule( build_setting = config.bool(flag = True), ) +SourcePathPrefixInfo = provider( + doc = "Remap source path prefixes in all output, including compiler diagnostics, debug information, macro expansions to a path", + fields = {"source_path_prefix": "string The path to substitute ${pwd} for"}, +) + def _get_rustc_env(attr, toolchain, crate_name): """Gathers rustc environment variables @@ -708,7 +713,6 @@ def construct_arguments( force_all_deps_direct = False, force_link = False, stamp = False, - remap_path_prefix = ".", use_json_output = False, build_metadata = False, force_depend_on_objects = False): @@ -737,7 +741,6 @@ def construct_arguments( force_link (bool, optional): Whether to add link flags to the command regardless of `emit`. stamp (bool, optional): Whether or not workspace status stamping is enabled. For more details see https://docs.bazel.build/versions/main/user-manual.html#flag--stamp - remap_path_prefix (str, optional): A value used to remap `${pwd}` to. If set to a falsey value, no prefix will be set. use_json_output (bool): Have rustc emit json and process_wrapper parse json messages to output rendered output. build_metadata (bool): Generate CLI arguments for building *only* .rmeta files. This requires use_json_output. force_depend_on_objects (bool): Force using `.rlib` object files instead of metadata (`.rmeta`) files even if they are available. @@ -874,8 +877,8 @@ def construct_arguments( rustc_flags.add("--codegen=debuginfo=" + compilation_mode.debug_info) # For determinism to help with build distribution and such - if remap_path_prefix: - rustc_flags.add("--remap-path-prefix=${{pwd}}={}".format(remap_path_prefix)) + if hasattr(ctx.attr, "_source_path_prefix"): + rustc_flags.add("--remap-path-prefix=${{pwd}}={}".format(ctx.attr._source_path_prefix[SourcePathPrefixInfo].source_path_prefix)) if emit: rustc_flags.add("--emit=" + ",".join(emit_with_paths)) @@ -1838,6 +1841,19 @@ extra_rustc_flag = rule( build_setting = config.string(flag = True, allow_multiple = True), ) +def _source_path_prefix_impl(ctx): + return SourcePathPrefixInfo(source_path_prefix = ctx.build_setting_value) + +source_path_prefix = rule( + doc = ( + "Specify the path for the compiler to remap the source path prefix in all output, including compiler diagnostics," + + "debug information, and macro expansions with `--@rules_rust//:static_path_prefix`." + + "Setting the prefix a fixed value enables reproducible builds that do not depend on the location of the source directory." + ), + implementation = _source_path_prefix_impl, + build_setting = config.string(flag = True), +) + def _extra_exec_rustc_flags_impl(ctx): return ExtraExecRustcFlagsInfo(extra_exec_rustc_flags = ctx.build_setting_value) From dab2520ed8d19c5070340452ba6e3f0ceace1403 Mon Sep 17 00:00:00 2001 From: Roman Kashitsyn Date: Tue, 23 Aug 2022 22:06:41 +0200 Subject: [PATCH 26/26] fix rustdoc compilation --- rust/private/rustc.bzl | 3 ++- rust/private/rustdoc.bzl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index 1c6b9e7cb6..98037c19c9 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -713,6 +713,7 @@ def construct_arguments( force_all_deps_direct = False, force_link = False, stamp = False, + remap_path_prefix = True, use_json_output = False, build_metadata = False, force_depend_on_objects = False): @@ -877,7 +878,7 @@ def construct_arguments( rustc_flags.add("--codegen=debuginfo=" + compilation_mode.debug_info) # For determinism to help with build distribution and such - if hasattr(ctx.attr, "_source_path_prefix"): + if remap_path_prefix and hasattr(ctx.attr, "_source_path_prefix"): rustc_flags.add("--remap-path-prefix=${{pwd}}={}".format(ctx.attr._source_path_prefix[SourcePathPrefixInfo].source_path_prefix)) if emit: diff --git a/rust/private/rustdoc.bzl b/rust/private/rustdoc.bzl index ba3a12cec7..b9699f0c29 100644 --- a/rust/private/rustdoc.bzl +++ b/rust/private/rustdoc.bzl @@ -120,7 +120,7 @@ def rustdoc_compile_action( build_env_files = build_env_files, build_flags_files = build_flags_files, emit = [], - remap_path_prefix = None, + remap_path_prefix = False, force_link = True, force_depend_on_objects = is_test, )