From 531053e62a881eb64826ac929c0c6f08a107edb4 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Wed, 8 Sep 2021 06:11:45 -0700 Subject: [PATCH] Fix rust benchmark (#923) --- docs/defs.md | 23 +- docs/flatten.md | 23 +- examples/fibonacci/BUILD.bazel | 11 - rust/private/rust.bzl | 130 ++-- test/bench/BUILD.bazel | 0 test/bench/criterion/BUILD.bazel | 37 + test/bench/criterion/benches/fibonacci.rs | 19 + test/bench/criterion/raze/BUILD.bazel | 30 + test/bench/criterion/raze/Cargo.raze.lock | 597 ++++++++++++++++ test/bench/criterion/raze/Cargo.toml | 23 + test/bench/criterion/raze/crates.bzl | 662 ++++++++++++++++++ .../raze/remote/BUILD.atty-0.2.14.bazel | 89 +++ .../raze/remote/BUILD.autocfg-1.0.1.bazel | 63 ++ test/bench/criterion/raze/remote/BUILD.bazel | 0 .../raze/remote/BUILD.bitflags-1.3.2.bazel | 58 ++ .../raze/remote/BUILD.bstr-0.2.16.bazel | 81 +++ .../raze/remote/BUILD.bumpalo-3.7.0.bazel | 80 +++ .../raze/remote/BUILD.cast-0.2.7.bazel | 88 +++ .../raze/remote/BUILD.cfg-if-1.0.0.bazel | 55 ++ .../raze/remote/BUILD.clap-2.33.3.bazel | 82 +++ .../raze/remote/BUILD.criterion-0.3.5.bazel | 79 +++ .../remote/BUILD.criterion-plot-0.4.4.bazel | 55 ++ .../BUILD.crossbeam-channel-0.5.1.bazel | 94 +++ .../remote/BUILD.crossbeam-deque-0.8.1.bazel | 68 ++ .../remote/BUILD.crossbeam-epoch-0.9.5.bazel | 104 +++ .../remote/BUILD.crossbeam-utils-0.8.5.bazel | 105 +++ .../raze/remote/BUILD.csv-1.1.6.bazel | 134 ++++ .../raze/remote/BUILD.csv-core-0.1.10.bazel | 57 ++ .../raze/remote/BUILD.either-1.6.1.bazel | 53 ++ .../raze/remote/BUILD.half-1.7.1.bazel | 57 ++ .../raze/remote/BUILD.hermit-abi-0.1.19.bazel | 55 ++ .../raze/remote/BUILD.itertools-0.10.1.bazel | 99 +++ .../raze/remote/BUILD.itoa-0.4.8.bazel | 59 ++ .../raze/remote/BUILD.js-sys-0.3.53.bazel | 68 ++ .../raze/remote/BUILD.lazy_static-1.4.0.bazel | 57 ++ .../raze/remote/BUILD.libc-0.2.101.bazel | 89 +++ .../raze/remote/BUILD.log-0.4.14.bazel | 90 +++ .../raze/remote/BUILD.memchr-2.4.1.bazel | 85 +++ .../raze/remote/BUILD.memoffset-0.6.4.bazel | 86 +++ .../raze/remote/BUILD.num-traits-0.2.14.bazel | 90 +++ .../raze/remote/BUILD.num_cpus-1.13.0.bazel | 56 ++ .../raze/remote/BUILD.oorandom-11.1.3.bazel | 53 ++ .../raze/remote/BUILD.plotters-0.3.1.bazel | 142 ++++ .../remote/BUILD.plotters-backend-0.3.2.bazel | 53 ++ .../remote/BUILD.plotters-svg-0.3.1.bazel | 54 ++ .../remote/BUILD.proc-macro2-1.0.29.bazel | 98 +++ .../raze/remote/BUILD.quote-1.0.9.bazel | 60 ++ .../raze/remote/BUILD.rayon-1.5.1.bazel | 117 ++++ .../raze/remote/BUILD.rayon-core-1.9.1.bazel | 147 ++++ .../raze/remote/BUILD.regex-1.5.4.bazel | 85 +++ .../remote/BUILD.regex-automata-0.1.10.bazel | 55 ++ .../remote/BUILD.regex-syntax-0.6.25.bazel | 55 ++ .../remote/BUILD.rustc_version-0.4.0.bazel | 56 ++ .../raze/remote/BUILD.ryu-1.0.5.bazel | 101 +++ .../raze/remote/BUILD.same-file-1.0.6.bazel | 68 ++ .../raze/remote/BUILD.scopeguard-1.1.0.bazel | 55 ++ .../raze/remote/BUILD.semver-1.0.4.bazel | 95 +++ .../raze/remote/BUILD.serde-1.0.130.bazel | 87 +++ .../raze/remote/BUILD.serde_cbor-0.11.2.bazel | 77 ++ .../remote/BUILD.serde_derive-1.0.130.bazel | 88 +++ .../raze/remote/BUILD.serde_json-1.0.67.bazel | 90 +++ .../raze/remote/BUILD.syn-1.0.76.bazel | 160 +++++ .../raze/remote/BUILD.textwrap-0.11.0.bazel | 62 ++ .../remote/BUILD.tinytemplate-1.2.1.bazel | 57 ++ .../remote/BUILD.unicode-width-0.1.8.bazel | 54 ++ .../raze/remote/BUILD.unicode-xid-0.2.2.bazel | 58 ++ .../raze/remote/BUILD.walkdir-2.3.2.bazel | 66 ++ .../remote/BUILD.wasm-bindgen-0.2.76.bazel | 123 ++++ .../BUILD.wasm-bindgen-backend-0.2.76.bazel | 61 ++ .../BUILD.wasm-bindgen-macro-0.2.76.bazel | 58 ++ ...LD.wasm-bindgen-macro-support-0.2.76.bazel | 59 ++ .../BUILD.wasm-bindgen-shared-0.2.76.bazel | 84 +++ .../raze/remote/BUILD.web-sys-0.3.53.bazel | 77 ++ .../raze/remote/BUILD.winapi-0.3.9.bazel | 105 +++ ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 83 +++ .../raze/remote/BUILD.winapi-util-0.1.5.bazel | 64 ++ ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 83 +++ test/bench/deps.bzl | 6 + test/bench/libtest/BUILD.bazel | 39 ++ test/bench/libtest/benches/fibonacci.rs | 17 + test/bench/private/BUILD.bazel | 6 + test/bench/private/test_bench_runner.rs | 25 + test/deps.bzl | 3 + util/bench/BUILD.bazel | 5 + util/bench/bench_runner.rs | 26 + 85 files changed, 6737 insertions(+), 71 deletions(-) create mode 100644 test/bench/BUILD.bazel create mode 100644 test/bench/criterion/BUILD.bazel create mode 100644 test/bench/criterion/benches/fibonacci.rs create mode 100644 test/bench/criterion/raze/BUILD.bazel create mode 100644 test/bench/criterion/raze/Cargo.raze.lock create mode 100644 test/bench/criterion/raze/Cargo.toml create mode 100644 test/bench/criterion/raze/crates.bzl create mode 100644 test/bench/criterion/raze/remote/BUILD.atty-0.2.14.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.autocfg-1.0.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.bitflags-1.3.2.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.bstr-0.2.16.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.bumpalo-3.7.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.cast-0.2.7.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.cfg-if-1.0.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.clap-2.33.3.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.criterion-0.3.5.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.criterion-plot-0.4.4.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.crossbeam-channel-0.5.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.crossbeam-deque-0.8.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.crossbeam-epoch-0.9.5.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.crossbeam-utils-0.8.5.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.csv-1.1.6.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.csv-core-0.1.10.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.either-1.6.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.half-1.7.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.hermit-abi-0.1.19.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.itertools-0.10.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.itoa-0.4.8.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.js-sys-0.3.53.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.lazy_static-1.4.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.libc-0.2.101.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.log-0.4.14.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.memchr-2.4.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.memoffset-0.6.4.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.num-traits-0.2.14.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.num_cpus-1.13.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.oorandom-11.1.3.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.plotters-0.3.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.plotters-backend-0.3.2.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.plotters-svg-0.3.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.proc-macro2-1.0.29.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.quote-1.0.9.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.rayon-1.5.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.rayon-core-1.9.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.regex-1.5.4.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.regex-automata-0.1.10.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.regex-syntax-0.6.25.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.rustc_version-0.4.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.ryu-1.0.5.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.same-file-1.0.6.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.scopeguard-1.1.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.semver-1.0.4.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.serde-1.0.130.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.serde_cbor-0.11.2.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.serde_derive-1.0.130.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.serde_json-1.0.67.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.syn-1.0.76.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.textwrap-0.11.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.tinytemplate-1.2.1.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.unicode-width-0.1.8.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.unicode-xid-0.2.2.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.walkdir-2.3.2.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.wasm-bindgen-0.2.76.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.wasm-bindgen-backend-0.2.76.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-0.2.76.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-support-0.2.76.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.wasm-bindgen-shared-0.2.76.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.web-sys-0.3.53.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.winapi-0.3.9.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.winapi-util-0.1.5.bazel create mode 100644 test/bench/criterion/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel create mode 100644 test/bench/deps.bzl create mode 100644 test/bench/libtest/BUILD.bazel create mode 100644 test/bench/libtest/benches/fibonacci.rs create mode 100644 test/bench/private/BUILD.bazel create mode 100644 test/bench/private/test_bench_runner.rs create mode 100644 util/bench/BUILD.bazel create mode 100644 util/bench/bench_runner.rs diff --git a/docs/defs.md b/docs/defs.md index f591704f82..586baf5744 100644 --- a/docs/defs.md +++ b/docs/defs.md @@ -53,15 +53,16 @@ Add additional rustc_flags from the command line with `--@rules_rust//:extra_rus ## rust_benchmark
-rust_benchmark(name, aliases, compile_data, crate_features, crate_name, crate_root, data, deps,
-               edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, version)
+rust_benchmark(name, aliases, compile_data, crate_features, crate_name, crate_root, data,
+               default_args, deps, edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags,
+               srcs, use_libtest_harness, version)
 
Builds a Rust benchmark test. **Warning**: This rule is currently experimental. [Rust Benchmark tests][rust-bench] require the `Bencher` interface in the unstable `libtest` crate, which is behind the `test` unstable feature gate. As a result, using this rule would require using a nightly binary release of Rust. -[rust-bench]: https://doc.rust-lang.org/book/benchmark-tests.html +[rust-bench]: https://doc.rust-lang.org/nightly/unstable-book/library-features/test.html Example: @@ -114,19 +115,19 @@ To build the benchmark test, add a `rust_benchmark` target: `fibonacci/BUILD`: ```python -package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:defs.bzl", "rust_library", "rust_benchmark") +package(default_visibility = ["//visibility:public"]) + rust_library( -name = "fibonacci", -srcs = ["src/lib.rs"], + name = "fibonacci", + srcs = ["src/lib.rs"], ) rust_benchmark( -name = "fibonacci_bench", -srcs = ["benches/fibonacci_bench.rs"], -deps = [":fibonacci"], + name = "fibonacci_bench", + srcs = ["benches/fibonacci_bench.rs"], + deps = [":fibonacci"], ) ``` @@ -145,6 +146,7 @@ Run the benchmark test using: `bazel run //fibonacci:fibonacci_bench`. | crate_name | Crate name to use for this target.

This must be a valid Rust identifier, i.e. it may contain only alphanumeric characters and underscores. Defaults to the target name, with any hyphens replaced by underscores. | String | optional | "" | | 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 | [] | +| default_args | The default arguments to pass to the benchmark binary. This attribute is used if the built-in args attribute is not set. | List of strings | optional | ["--bench"] | | 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 | "" | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | @@ -152,6 +154,7 @@ Run the benchmark test using: `bazel run //fibonacci:fibonacci_bench`. | 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. | List of labels | optional | [] | | rustc_flags | List of compiler flags passed to rustc.

These strings are subject to Make variable expansion for predefined source/output path variables like $location, $execpath, and $rootpath. This expansion is useful if you wish to pass a generated file of arguments to rustc: @$(location //package:target). | List of strings | optional | [] | | srcs | List of Rust .rs source files used to build the library.

If srcs contains more than one file, then there must be a file either named lib.rs. Otherwise, crate_root must be set to the source file that is the root of the crate to be passed to rustc to build this crate. | List of labels | optional | [] | +| use_libtest_harness | Generate the test harness for this benchmark. Note that [Criterion](https://bheisler.github.io/criterion.rs/book/index.html) benchmarks do not use a test harness, but the nightly #[bench] api does. Pass True if you have a #[bench] api test. | Boolean | optional | False | | version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" | diff --git a/docs/flatten.md b/docs/flatten.md index 24a69892b9..ab9247d3c3 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -218,15 +218,16 @@ Produces a rust-project.json for the given targets. Configure rust-analyzer to l ## rust_benchmark
-rust_benchmark(name, aliases, compile_data, crate_features, crate_name, crate_root, data, deps,
-               edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags, srcs, version)
+rust_benchmark(name, aliases, compile_data, crate_features, crate_name, crate_root, data,
+               default_args, deps, edition, proc_macro_deps, rustc_env, rustc_env_files, rustc_flags,
+               srcs, use_libtest_harness, version)
 
Builds a Rust benchmark test. **Warning**: This rule is currently experimental. [Rust Benchmark tests][rust-bench] require the `Bencher` interface in the unstable `libtest` crate, which is behind the `test` unstable feature gate. As a result, using this rule would require using a nightly binary release of Rust. -[rust-bench]: https://doc.rust-lang.org/book/benchmark-tests.html +[rust-bench]: https://doc.rust-lang.org/nightly/unstable-book/library-features/test.html Example: @@ -279,19 +280,19 @@ To build the benchmark test, add a `rust_benchmark` target: `fibonacci/BUILD`: ```python -package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:defs.bzl", "rust_library", "rust_benchmark") +package(default_visibility = ["//visibility:public"]) + rust_library( -name = "fibonacci", -srcs = ["src/lib.rs"], + name = "fibonacci", + srcs = ["src/lib.rs"], ) rust_benchmark( -name = "fibonacci_bench", -srcs = ["benches/fibonacci_bench.rs"], -deps = [":fibonacci"], + name = "fibonacci_bench", + srcs = ["benches/fibonacci_bench.rs"], + deps = [":fibonacci"], ) ``` @@ -310,6 +311,7 @@ Run the benchmark test using: `bazel run //fibonacci:fibonacci_bench`. | crate_name | Crate name to use for this target.

This must be a valid Rust identifier, i.e. it may contain only alphanumeric characters and underscores. Defaults to the target name, with any hyphens replaced by underscores. | String | optional | "" | | 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 | [] | +| default_args | The default arguments to pass to the benchmark binary. This attribute is used if the built-in args attribute is not set. | List of strings | optional | ["--bench"] | | 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 | "" | | proc_macro_deps | List of rust_library targets with kind proc-macro used to help build this library target. | List of labels | optional | [] | @@ -317,6 +319,7 @@ Run the benchmark test using: `bazel run //fibonacci:fibonacci_bench`. | 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. | List of labels | optional | [] | | rustc_flags | List of compiler flags passed to rustc.

These strings are subject to Make variable expansion for predefined source/output path variables like $location, $execpath, and $rootpath. This expansion is useful if you wish to pass a generated file of arguments to rustc: @$(location //package:target). | List of strings | optional | [] | | srcs | List of Rust .rs source files used to build the library.

If srcs contains more than one file, then there must be a file either named lib.rs. Otherwise, crate_root must be set to the source file that is the root of the crate to be passed to rustc to build this crate. | List of labels | optional | [] | +| use_libtest_harness | Generate the test harness for this benchmark. Note that [Criterion](https://bheisler.github.io/criterion.rs/book/index.html) benchmarks do not use a test harness, but the nightly #[bench] api does. Pass True if you have a #[bench] api test. | Boolean | optional | False | | version | A version to inject in the cargo environment variable. | String | optional | "0.0.0" | diff --git a/examples/fibonacci/BUILD.bazel b/examples/fibonacci/BUILD.bazel index e17c31529b..50b1dd3d95 100644 --- a/examples/fibonacci/BUILD.bazel +++ b/examples/fibonacci/BUILD.bazel @@ -1,6 +1,5 @@ load( "@rules_rust//rust:rust.bzl", - "rust_benchmark", "rust_doc", "rust_doc_test", "rust_library", @@ -17,16 +16,6 @@ rust_test( crate = ":fibonacci", ) -rust_benchmark( - name = "fibonacci_bench", - srcs = ["benches/fibonacci_bench.rs"], - tags = [ - "manual", - "noci", - ], - deps = [":fibonacci"], -) - rust_doc( name = "fibonacci_doc", crate = ":fibonacci", diff --git a/rust/private/rust.bzl b/rust/private/rust.bzl index d7d5a2771d..f05551a361 100644 --- a/rust/private/rust.bzl +++ b/rust/private/rust.bzl @@ -488,46 +488,71 @@ def _rust_benchmark_impl(ctx): toolchain = find_toolchain(ctx) # Build the underlying benchmark binary. - bench_binary = ctx.actions.declare_file( - "{}_bin{}".format(ctx.label.name, toolchain.binary_ext), - sibling = ctx.configuration.bin_dir, + crate_name = ctx.label.name.replace("-", "_") + bench_binary = ctx.actions.declare_file(ctx.label.name + toolchain.binary_ext) + info = rustc_compile_action( + ctx = ctx, + attr = ctx.attr, + toolchain = toolchain, + crate_info = rust_common.create_crate_info( + name = crate_name, + type = "bin", + root = crate_root_src(ctx.attr, ctx.files.srcs, "bin"), + srcs = depset(ctx.files.srcs), + deps = depset(ctx.attr.deps), + proc_macro_deps = depset(ctx.attr.proc_macro_deps), + aliases = ctx.attr.aliases, + output = bench_binary, + edition = get_edition(ctx.attr, toolchain), + rustc_env = ctx.attr.rustc_env, + is_test = False, + compile_data = depset(ctx.files.compile_data), + ), + rust_flags = ["--test"] if ctx.attr.use_libtest_harness else [], ) - info = _rust_test_common(ctx, toolchain, bench_binary) - if toolchain.exec_triple.find("windows") != -1: - bench_script = ctx.actions.declare_file( - ctx.label.name + ".bat", - ) + # Now compile a binary for executing the benchmark + runner_src = ctx.actions.declare_file(ctx.label.name + "." + ctx.file._runner_src.basename) + ctx.actions.symlink( + output = runner_src, + target_file = ctx.file._runner_src, + ) - # Wrap the benchmark to run it as cargo would. - ctx.actions.write( - output = bench_script, - content = "{} --bench || exit 1".format(bench_binary.short_path), - is_executable = True, - ) - else: - bench_script = ctx.actions.declare_file( - ctx.label.name + ".sh", - ) + args = ctx.attr.args + if not args: + args = ctx.attr.default_args - # Wrap the benchmark to run it as cargo would. - ctx.actions.write( - output = bench_script, - content = "\n".join([ - "#!/usr/bin/env bash", - "set -e", - "{} --bench".format(bench_binary.short_path), - ]), - is_executable = True, - ) + bench_runner = ctx.actions.declare_file(ctx.label.name + ".runner" + toolchain.binary_ext) + runner_info = rustc_compile_action( + ctx = ctx, + attr = ctx.attr, + toolchain = toolchain, + crate_info = rust_common.create_crate_info( + name = crate_name + "_runner", + type = "bin", + root = runner_src, + srcs = depset([runner_src]), + deps = depset([]), + proc_macro_deps = depset(ctx.attr.proc_macro_deps), + aliases = ctx.attr.aliases, + output = bench_runner, + edition = "2018", + rustc_env = { + "BENCH_ARGS": " ".join(args), + "BENCH_BINARY": bench_binary.short_path, + }, + is_test = False, + compile_data = depset([]), + ), + ) return [ DefaultInfo( + files = depset([bench_runner, bench_binary]), runfiles = ctx.runfiles( - files = info.runfiles + [bench_binary], - collect_data = True, + files = [bench_binary] + ctx.attr.data, ), - executable = bench_script, + executable = bench_runner, ), ] @@ -1206,9 +1231,34 @@ def rust_test_suite(name, srcs, **kwargs): tags = kwargs.get("tags", None), ) +_rust_benchmark_attrs = { + "default_args": attr.string_list( + doc = ( + "The default arguments to pass to the benchmark binary. This " + + "attribute is used if the built-in `args` attribute is not set." + ), + default = ["--bench"], + ), + "use_libtest_harness": attr.bool( + default = False, + mandatory = False, + doc = ( + "Generate the test harness for this benchmark. Note that " + + "[Criterion](https://bheisler.github.io/criterion.rs/book/index.html) " + + "benchmarks do not use a test harness, but the nightly `#[bench]` " + + "api does. Pass True if you have a `#[bench]` api test." + ), + ), + "_runner_src": attr.label( + doc = "Rust source files for the benchmark runner, a binary that starts the benchmark process", + allow_single_file = True, + default = Label("//util/bench:bench_runner.rs"), + ), +} + rust_benchmark = rule( implementation = _rust_benchmark_impl, - attrs = _common_attrs, + attrs = dict(_common_attrs.items() + _rust_benchmark_attrs.items()), executable = True, fragments = ["cpp"], host_fragments = ["cpp"], @@ -1225,7 +1275,7 @@ rust_benchmark = rule( `test` unstable feature gate. As a result, using this rule would require using a nightly \ binary release of Rust. - [rust-bench]: https://doc.rust-lang.org/book/benchmark-tests.html + [rust-bench]: https://doc.rust-lang.org/nightly/unstable-book/library-features/test.html Example: @@ -1279,19 +1329,19 @@ rust_benchmark = rule( `fibonacci/BUILD`: ```python - package(default_visibility = ["//visibility:public"]) - load("@rules_rust//rust:defs.bzl", "rust_library", "rust_benchmark") + package(default_visibility = ["//visibility:public"]) + rust_library( - name = "fibonacci", - srcs = ["src/lib.rs"], + name = "fibonacci", + srcs = ["src/lib.rs"], ) rust_benchmark( - name = "fibonacci_bench", - srcs = ["benches/fibonacci_bench.rs"], - deps = [":fibonacci"], + name = "fibonacci_bench", + srcs = ["benches/fibonacci_bench.rs"], + deps = [":fibonacci"], ) ``` diff --git a/test/bench/BUILD.bazel b/test/bench/BUILD.bazel new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/bench/criterion/BUILD.bazel b/test/bench/criterion/BUILD.bazel new file mode 100644 index 0000000000..946c88a8fc --- /dev/null +++ b/test/bench/criterion/BUILD.bazel @@ -0,0 +1,37 @@ +# Copyright 2021 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@rules_rust//rust:defs.bzl", "rust_benchmark", "rust_test") + +package(default_visibility = ["//visibility:public"]) + +rust_benchmark( + name = "bench", + srcs = ["benches/fibonacci.rs"], + edition = "2018", + use_libtest_harness = False, + deps = [ + "//test/bench/criterion/raze:criterion", + ], +) + +rust_test( + name = "bench_test", + srcs = ["//test/bench/private:test_bench_runner.rs"], + data = [":bench"], + rustc_env = { + "BENCH_FILES": "$(rootpaths :bench)", + }, + use_libtest_harness = False, +) diff --git a/test/bench/criterion/benches/fibonacci.rs b/test/bench/criterion/benches/fibonacci.rs new file mode 100644 index 0000000000..94ba9ca7e6 --- /dev/null +++ b/test/bench/criterion/benches/fibonacci.rs @@ -0,0 +1,19 @@ +// extern crate criterion; + +use criterion::{black_box, criterion_group, criterion_main, Criterion}; + +fn fibonacci(n: u64) -> u64 { + match n { + 0 => 1, + 1 => 1, + n => fibonacci(n-1) + fibonacci(n-2), + } +} + +fn criterion_benchmark(c: &mut Criterion) { + c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20)))); +} + +criterion_group!(benches, criterion_benchmark); +criterion_main!(benches); + diff --git a/test/bench/criterion/raze/BUILD.bazel b/test/bench/criterion/raze/BUILD.bazel new file mode 100644 index 0000000000..c9af3b52fe --- /dev/null +++ b/test/bench/criterion/raze/BUILD.bazel @@ -0,0 +1,30 @@ +""" +@generated +cargo-raze generated Bazel file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +package(default_visibility = ["//visibility:public"]) + +licenses([ + "notice", # See individual crates for specific licenses +]) + +# Aliased targets +alias( + name = "criterion", + actual = "@rules_rust_test_bench_criterion__criterion__0_3_5//:criterion", + tags = [ + "cargo-raze", + "manual", + ], +) + +# Export file for Stardoc support +exports_files( + [ + "crates.bzl", + ], + visibility = ["//visibility:public"], +) diff --git a/test/bench/criterion/raze/Cargo.raze.lock b/test/bench/criterion/raze/Cargo.raze.lock new file mode 100644 index 0000000000..7329cba142 --- /dev/null +++ b/test/bench/criterion/raze/Cargo.raze.lock @@ -0,0 +1,597 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bstr" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90682c8d613ad3373e66de8c6411e0ae2ab2571e879d2efbf73558cc66f21279" +dependencies = [ + "lazy_static", + "memchr", + "regex-automata", + "serde", +] + +[[package]] +name = "bumpalo" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" + +[[package]] +name = "cast" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c24dab4283a142afa2fdca129b80ad2c6284e073930f964c3a1293c225ee39a" +dependencies = [ + "rustc_version", +] + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "2.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" +dependencies = [ + "bitflags", + "textwrap", + "unicode-width", +] + +[[package]] +name = "criterion" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1604dafd25fba2fe2d5895a9da139f8dc9b319a5fe5354ca137cbbce4e178d10" +dependencies = [ + "atty", + "cast", + "clap", + "criterion-plot", + "csv", + "itertools", + "lazy_static", + "num-traits", + "oorandom", + "plotters", + "rayon", + "regex", + "serde", + "serde_cbor", + "serde_derive", + "serde_json", + "tinytemplate", + "walkdir", +] + +[[package]] +name = "criterion-plot" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d00996de9f2f7559f7f4dc286073197f83e92256a59ed395f9aac01fe717da57" +dependencies = [ + "cast", + "itertools", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" +dependencies = [ + "cfg-if", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +dependencies = [ + "cfg-if", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd" +dependencies = [ + "cfg-if", + "crossbeam-utils", + "lazy_static", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db" +dependencies = [ + "cfg-if", + "lazy_static", +] + +[[package]] +name = "csv" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1" +dependencies = [ + "bstr", + "csv-core", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "csv-core" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90" +dependencies = [ + "memchr", +] + +[[package]] +name = "either" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" + +[[package]] +name = "half" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62aca2aba2d62b4a7f5b33f3712cb1b0692779a56fb510499d5c0aa594daeaf3" + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "itertools" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" + +[[package]] +name = "js-sys" +version = "0.3.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4bf49d50e2961077d9c99f4b7997d770a1114f087c3c2e0069b36c13fc2979d" +dependencies = [ + "wasm-bindgen", +] + +[[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.101" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cb00336871be5ed2c8ed44b60ae9959dc5b9f08539422ed43f09e34ecaeba21" + +[[package]] +name = "log" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "memchr" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" + +[[package]] +name = "memoffset" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num-traits" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_cpus" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "oorandom" +version = "11.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" + +[[package]] +name = "plotters" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a3fd9ec30b9749ce28cd91f255d569591cdf937fe280c312143e3c4bad6f2a" +dependencies = [ + "num-traits", + "plotters-backend", + "plotters-svg", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "plotters-backend" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d88417318da0eaf0fdcdb51a0ee6c3bed624333bff8f946733049380be67ac1c" + +[[package]] +name = "plotters-svg" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521fa9638fa597e1dc53e9412a4f9cefb01187ee1f7413076f9e6749e2885ba9" +dependencies = [ + "plotters-backend", +] + +[[package]] +name = "proc-macro2" +version = "1.0.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rayon" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" +dependencies = [ + "autocfg", + "crossbeam-deque", + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "lazy_static", + "num_cpus", +] + +[[package]] +name = "regex" +version = "1.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" +dependencies = [ + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" + +[[package]] +name = "regex-syntax" +version = "0.6.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" + +[[package]] +name = "rules_rust_test_bench_criterion" +version = "0.0.1" +dependencies = [ + "criterion", +] + +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver", +] + +[[package]] +name = "ryu" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +[[package]] +name = "semver" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" + +[[package]] +name = "serde" +version = "1.0.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" + +[[package]] +name = "serde_cbor" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" +dependencies = [ + "half", + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.67" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7f9e390c27c3c0ce8bc5d725f6e4d30a29d26659494aa4b17535f7522c5c950" +dependencies = [ + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "syn" +version = "1.0.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f107db402c2c2055242dbf4d2af0e69197202e9faacbef9571bbe47f5a1b84" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "tinytemplate" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "unicode-width" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" + +[[package]] +name = "unicode-xid" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" + +[[package]] +name = "walkdir" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" +dependencies = [ + "same-file", + "winapi", + "winapi-util", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ce9b1b516211d33767048e5d47fa2a381ed8b76fc48d2ce4aa39877f9f183e0" +dependencies = [ + "cfg-if", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe8dc78e2326ba5f845f4b5bf548401604fa20b1dd1d365fb73b6c1d6364041" +dependencies = [ + "bumpalo", + "lazy_static", + "log", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44468aa53335841d9d6b6c023eaab07c0cd4bddbcfdee3e2bb1e8d2cb8069fef" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0195807922713af1e67dc66132c7328206ed9766af3858164fb583eedc25fbad" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acdb075a845574a1fa5f09fd77e43f7747599301ea3417a9fbffdeedfc1f4a29" + +[[package]] +name = "web-sys" +version = "0.3.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224b2f6b67919060055ef1a67807367c2066ed520c3862cc013d26cf893a783c" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/test/bench/criterion/raze/Cargo.toml b/test/bench/criterion/raze/Cargo.toml new file mode 100644 index 0000000000..2a37eff49e --- /dev/null +++ b/test/bench/criterion/raze/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "rules_rust_test_bench_criterion" +version = "0.0.1" +edition = "2018" + +[dev-dependencies] +criterion = "0.3.5" + +[lib] +name = "fake_criterion_lib" +path = "fake_criterion_lib.rs" + +[package.metadata.raze] +workspace_path = "//test/bench/criterion/raze" +genmode = "Remote" +gen_workspace_prefix = "rules_rust_test_bench_criterion" +package_aliases_dir = "." + +[package.metadata.raze.crates.bstr.'*'] +data_attr = "glob([\"src/**\"])" + +[package.metadata.raze.crates.criterion.'*'] +data_attr = "glob([\"src/**\"])" diff --git a/test/bench/criterion/raze/crates.bzl b/test/bench/criterion/raze/crates.bzl new file mode 100644 index 0000000000..d52887725f --- /dev/null +++ b/test/bench/criterion/raze/crates.bzl @@ -0,0 +1,662 @@ +""" +@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_test_bench_criterion_fetch_remote_crates(): + """This function defines a collection of repos and should be called in a WORKSPACE file""" + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__atty__0_2_14", + url = "https://crates.io/api/v1/crates/atty/0.2.14/download", + type = "tar.gz", + sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", + strip_prefix = "atty-0.2.14", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.atty-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.autocfg-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__bitflags__1_3_2", + url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", + type = "tar.gz", + sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", + strip_prefix = "bitflags-1.3.2", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__bstr__0_2_16", + url = "https://crates.io/api/v1/crates/bstr/0.2.16/download", + type = "tar.gz", + sha256 = "90682c8d613ad3373e66de8c6411e0ae2ab2571e879d2efbf73558cc66f21279", + strip_prefix = "bstr-0.2.16", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.bstr-0.2.16.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__bumpalo__3_7_0", + url = "https://crates.io/api/v1/crates/bumpalo/3.7.0/download", + type = "tar.gz", + sha256 = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631", + strip_prefix = "bumpalo-3.7.0", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.bumpalo-3.7.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__cast__0_2_7", + url = "https://crates.io/api/v1/crates/cast/0.2.7/download", + type = "tar.gz", + sha256 = "4c24dab4283a142afa2fdca129b80ad2c6284e073930f964c3a1293c225ee39a", + strip_prefix = "cast-0.2.7", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.cast-0.2.7.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__clap__2_33_3", + url = "https://crates.io/api/v1/crates/clap/2.33.3/download", + type = "tar.gz", + sha256 = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002", + strip_prefix = "clap-2.33.3", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.clap-2.33.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__criterion__0_3_5", + url = "https://crates.io/api/v1/crates/criterion/0.3.5/download", + type = "tar.gz", + sha256 = "1604dafd25fba2fe2d5895a9da139f8dc9b319a5fe5354ca137cbbce4e178d10", + strip_prefix = "criterion-0.3.5", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.criterion-0.3.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__criterion_plot__0_4_4", + url = "https://crates.io/api/v1/crates/criterion-plot/0.4.4/download", + type = "tar.gz", + sha256 = "d00996de9f2f7559f7f4dc286073197f83e92256a59ed395f9aac01fe717da57", + strip_prefix = "criterion-plot-0.4.4", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.criterion-plot-0.4.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__crossbeam_channel__0_5_1", + url = "https://crates.io/api/v1/crates/crossbeam-channel/0.5.1/download", + type = "tar.gz", + sha256 = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4", + strip_prefix = "crossbeam-channel-0.5.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.crossbeam-channel-0.5.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__crossbeam_deque__0_8_1", + url = "https://crates.io/api/v1/crates/crossbeam-deque/0.8.1/download", + type = "tar.gz", + sha256 = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e", + strip_prefix = "crossbeam-deque-0.8.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.crossbeam-deque-0.8.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__crossbeam_epoch__0_9_5", + url = "https://crates.io/api/v1/crates/crossbeam-epoch/0.9.5/download", + type = "tar.gz", + sha256 = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd", + strip_prefix = "crossbeam-epoch-0.9.5", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.crossbeam-epoch-0.9.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__crossbeam_utils__0_8_5", + url = "https://crates.io/api/v1/crates/crossbeam-utils/0.8.5/download", + type = "tar.gz", + sha256 = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db", + strip_prefix = "crossbeam-utils-0.8.5", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.crossbeam-utils-0.8.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__csv__1_1_6", + url = "https://crates.io/api/v1/crates/csv/1.1.6/download", + type = "tar.gz", + sha256 = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1", + strip_prefix = "csv-1.1.6", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.csv-1.1.6.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__csv_core__0_1_10", + url = "https://crates.io/api/v1/crates/csv-core/0.1.10/download", + type = "tar.gz", + sha256 = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90", + strip_prefix = "csv-core-0.1.10", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.csv-core-0.1.10.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__either__1_6_1", + url = "https://crates.io/api/v1/crates/either/1.6.1/download", + type = "tar.gz", + sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", + strip_prefix = "either-1.6.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.either-1.6.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__half__1_7_1", + url = "https://crates.io/api/v1/crates/half/1.7.1/download", + type = "tar.gz", + sha256 = "62aca2aba2d62b4a7f5b33f3712cb1b0692779a56fb510499d5c0aa594daeaf3", + strip_prefix = "half-1.7.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.half-1.7.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__hermit_abi__0_1_19", + url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", + type = "tar.gz", + sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", + strip_prefix = "hermit-abi-0.1.19", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.hermit-abi-0.1.19.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__itertools__0_10_1", + url = "https://crates.io/api/v1/crates/itertools/0.10.1/download", + type = "tar.gz", + sha256 = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf", + strip_prefix = "itertools-0.10.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.itertools-0.10.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__itoa__0_4_8", + url = "https://crates.io/api/v1/crates/itoa/0.4.8/download", + type = "tar.gz", + sha256 = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4", + strip_prefix = "itoa-0.4.8", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.itoa-0.4.8.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__js_sys__0_3_53", + url = "https://crates.io/api/v1/crates/js-sys/0.3.53/download", + type = "tar.gz", + sha256 = "e4bf49d50e2961077d9c99f4b7997d770a1114f087c3c2e0069b36c13fc2979d", + strip_prefix = "js-sys-0.3.53", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.js-sys-0.3.53.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.lazy_static-1.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__libc__0_2_101", + url = "https://crates.io/api/v1/crates/libc/0.2.101/download", + type = "tar.gz", + sha256 = "3cb00336871be5ed2c8ed44b60ae9959dc5b9f08539422ed43f09e34ecaeba21", + strip_prefix = "libc-0.2.101", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.libc-0.2.101.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.log-0.4.14.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.memchr-2.4.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__memoffset__0_6_4", + url = "https://crates.io/api/v1/crates/memoffset/0.6.4/download", + type = "tar.gz", + sha256 = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9", + strip_prefix = "memoffset-0.6.4", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.memoffset-0.6.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__num_traits__0_2_14", + url = "https://crates.io/api/v1/crates/num-traits/0.2.14/download", + type = "tar.gz", + sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290", + strip_prefix = "num-traits-0.2.14", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.num-traits-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.num_cpus-1.13.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__oorandom__11_1_3", + url = "https://crates.io/api/v1/crates/oorandom/11.1.3/download", + type = "tar.gz", + sha256 = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575", + strip_prefix = "oorandom-11.1.3", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.oorandom-11.1.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__plotters__0_3_1", + url = "https://crates.io/api/v1/crates/plotters/0.3.1/download", + type = "tar.gz", + sha256 = "32a3fd9ec30b9749ce28cd91f255d569591cdf937fe280c312143e3c4bad6f2a", + strip_prefix = "plotters-0.3.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.plotters-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__plotters_backend__0_3_2", + url = "https://crates.io/api/v1/crates/plotters-backend/0.3.2/download", + type = "tar.gz", + sha256 = "d88417318da0eaf0fdcdb51a0ee6c3bed624333bff8f946733049380be67ac1c", + strip_prefix = "plotters-backend-0.3.2", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.plotters-backend-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__plotters_svg__0_3_1", + url = "https://crates.io/api/v1/crates/plotters-svg/0.3.1/download", + type = "tar.gz", + sha256 = "521fa9638fa597e1dc53e9412a4f9cefb01187ee1f7413076f9e6749e2885ba9", + strip_prefix = "plotters-svg-0.3.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.plotters-svg-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__proc_macro2__1_0_29", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.29/download", + type = "tar.gz", + sha256 = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d", + strip_prefix = "proc-macro2-1.0.29", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.proc-macro2-1.0.29.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__quote__1_0_9", + url = "https://crates.io/api/v1/crates/quote/1.0.9/download", + type = "tar.gz", + sha256 = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7", + strip_prefix = "quote-1.0.9", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.quote-1.0.9.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__rayon__1_5_1", + url = "https://crates.io/api/v1/crates/rayon/1.5.1/download", + type = "tar.gz", + sha256 = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90", + strip_prefix = "rayon-1.5.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.rayon-1.5.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__rayon_core__1_9_1", + url = "https://crates.io/api/v1/crates/rayon-core/1.9.1/download", + type = "tar.gz", + sha256 = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e", + strip_prefix = "rayon-core-1.9.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.rayon-core-1.9.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__regex__1_5_4", + url = "https://crates.io/api/v1/crates/regex/1.5.4/download", + type = "tar.gz", + sha256 = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461", + strip_prefix = "regex-1.5.4", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.regex-1.5.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__regex_automata__0_1_10", + url = "https://crates.io/api/v1/crates/regex-automata/0.1.10/download", + type = "tar.gz", + sha256 = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132", + strip_prefix = "regex-automata-0.1.10", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.regex-automata-0.1.10.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.regex-syntax-0.6.25.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__rustc_version__0_4_0", + url = "https://crates.io/api/v1/crates/rustc_version/0.4.0/download", + type = "tar.gz", + sha256 = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366", + strip_prefix = "rustc_version-0.4.0", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.rustc_version-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__ryu__1_0_5", + url = "https://crates.io/api/v1/crates/ryu/1.0.5/download", + type = "tar.gz", + sha256 = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e", + strip_prefix = "ryu-1.0.5", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.ryu-1.0.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__same_file__1_0_6", + url = "https://crates.io/api/v1/crates/same-file/1.0.6/download", + type = "tar.gz", + sha256 = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502", + strip_prefix = "same-file-1.0.6", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.same-file-1.0.6.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.scopeguard-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__semver__1_0_4", + url = "https://crates.io/api/v1/crates/semver/1.0.4/download", + type = "tar.gz", + sha256 = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012", + strip_prefix = "semver-1.0.4", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.semver-1.0.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__serde__1_0_130", + url = "https://crates.io/api/v1/crates/serde/1.0.130/download", + type = "tar.gz", + sha256 = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913", + strip_prefix = "serde-1.0.130", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.serde-1.0.130.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__serde_cbor__0_11_2", + url = "https://crates.io/api/v1/crates/serde_cbor/0.11.2/download", + type = "tar.gz", + sha256 = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5", + strip_prefix = "serde_cbor-0.11.2", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.serde_cbor-0.11.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__serde_derive__1_0_130", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.130/download", + type = "tar.gz", + sha256 = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b", + strip_prefix = "serde_derive-1.0.130", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.serde_derive-1.0.130.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__serde_json__1_0_67", + url = "https://crates.io/api/v1/crates/serde_json/1.0.67/download", + type = "tar.gz", + sha256 = "a7f9e390c27c3c0ce8bc5d725f6e4d30a29d26659494aa4b17535f7522c5c950", + strip_prefix = "serde_json-1.0.67", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.serde_json-1.0.67.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__syn__1_0_76", + url = "https://crates.io/api/v1/crates/syn/1.0.76/download", + type = "tar.gz", + sha256 = "c6f107db402c2c2055242dbf4d2af0e69197202e9faacbef9571bbe47f5a1b84", + strip_prefix = "syn-1.0.76", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.syn-1.0.76.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__textwrap__0_11_0", + url = "https://crates.io/api/v1/crates/textwrap/0.11.0/download", + type = "tar.gz", + sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", + strip_prefix = "textwrap-0.11.0", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.textwrap-0.11.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__tinytemplate__1_2_1", + url = "https://crates.io/api/v1/crates/tinytemplate/1.2.1/download", + type = "tar.gz", + sha256 = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc", + strip_prefix = "tinytemplate-1.2.1", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.tinytemplate-1.2.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__unicode_width__0_1_8", + url = "https://crates.io/api/v1/crates/unicode-width/0.1.8/download", + type = "tar.gz", + sha256 = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3", + strip_prefix = "unicode-width-0.1.8", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.unicode-width-0.1.8.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.unicode-xid-0.2.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__walkdir__2_3_2", + url = "https://crates.io/api/v1/crates/walkdir/2.3.2/download", + type = "tar.gz", + sha256 = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56", + strip_prefix = "walkdir-2.3.2", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.walkdir-2.3.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__wasm_bindgen__0_2_76", + url = "https://crates.io/api/v1/crates/wasm-bindgen/0.2.76/download", + type = "tar.gz", + sha256 = "8ce9b1b516211d33767048e5d47fa2a381ed8b76fc48d2ce4aa39877f9f183e0", + strip_prefix = "wasm-bindgen-0.2.76", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.wasm-bindgen-0.2.76.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__wasm_bindgen_backend__0_2_76", + url = "https://crates.io/api/v1/crates/wasm-bindgen-backend/0.2.76/download", + type = "tar.gz", + sha256 = "cfe8dc78e2326ba5f845f4b5bf548401604fa20b1dd1d365fb73b6c1d6364041", + strip_prefix = "wasm-bindgen-backend-0.2.76", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.wasm-bindgen-backend-0.2.76.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__wasm_bindgen_macro__0_2_76", + url = "https://crates.io/api/v1/crates/wasm-bindgen-macro/0.2.76/download", + type = "tar.gz", + sha256 = "44468aa53335841d9d6b6c023eaab07c0cd4bddbcfdee3e2bb1e8d2cb8069fef", + strip_prefix = "wasm-bindgen-macro-0.2.76", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.wasm-bindgen-macro-0.2.76.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__wasm_bindgen_macro_support__0_2_76", + url = "https://crates.io/api/v1/crates/wasm-bindgen-macro-support/0.2.76/download", + type = "tar.gz", + sha256 = "0195807922713af1e67dc66132c7328206ed9766af3858164fb583eedc25fbad", + strip_prefix = "wasm-bindgen-macro-support-0.2.76", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.wasm-bindgen-macro-support-0.2.76.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__wasm_bindgen_shared__0_2_76", + url = "https://crates.io/api/v1/crates/wasm-bindgen-shared/0.2.76/download", + type = "tar.gz", + sha256 = "acdb075a845574a1fa5f09fd77e43f7747599301ea3417a9fbffdeedfc1f4a29", + strip_prefix = "wasm-bindgen-shared-0.2.76", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.wasm-bindgen-shared-0.2.76.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__web_sys__0_3_53", + url = "https://crates.io/api/v1/crates/web-sys/0.3.53/download", + type = "tar.gz", + sha256 = "224b2f6b67919060055ef1a67807367c2066ed520c3862cc013d26cf893a783c", + strip_prefix = "web-sys-0.3.53", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.web-sys-0.3.53.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__winapi__0_3_9", + url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", + type = "tar.gz", + sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", + strip_prefix = "winapi-0.3.9", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__winapi_util__0_1_5", + url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", + type = "tar.gz", + sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", + strip_prefix = "winapi-util-0.1.5", + build_file = Label("//test/bench/criterion/raze/remote:BUILD.winapi-util-0.1.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_test_bench_criterion__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("//test/bench/criterion/raze/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) diff --git a/test/bench/criterion/raze/remote/BUILD.atty-0.2.14.bazel b/test/bench/criterion/raze/remote/BUILD.atty-0.2.14.bazel new file mode 100644 index 0000000000..6924662b23 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.atty-0.2.14.bazel @@ -0,0 +1,89 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "atty" with type "example" omitted + +rust_library( + name = "atty", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform: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", + ): [ + "@rules_rust_test_bench_criterion__libc__0_2_101//: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_test_bench_criterion__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/test/bench/criterion/raze/remote/BUILD.autocfg-1.0.1.bazel b/test/bench/criterion/raze/remote/BUILD.autocfg-1.0.1.bazel new file mode 100644 index 0000000000..fe50cd7bee --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.autocfg-1.0.1.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "rustflags" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.bazel b/test/bench/criterion/raze/remote/BUILD.bazel new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/bench/criterion/raze/remote/BUILD.bitflags-1.3.2.bazel b/test/bench/criterion/raze/remote/BUILD.bitflags-1.3.2.bazel new file mode 100644 index 0000000000..d2c9aba2f1 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.bitflags-1.3.2.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "basic" with type "test" omitted + +# Unsupported target "compile" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.bstr-0.2.16.bazel b/test/bench/criterion/raze/remote/BUILD.bstr-0.2.16.bazel new file mode 100644 index 0000000000..693408ea3a --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.bstr-0.2.16.bazel @@ -0,0 +1,81 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "graphemes" with type "example" omitted + +# Unsupported target "graphemes-std" with type "example" omitted + +# Unsupported target "lines" with type "example" omitted + +# Unsupported target "lines-std" with type "example" omitted + +# Unsupported target "uppercase" with type "example" omitted + +# Unsupported target "uppercase-std" with type "example" omitted + +# Unsupported target "words" with type "example" omitted + +# Unsupported target "words-std" with type "example" omitted + +rust_library( + name = "bstr", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "lazy_static", + "regex-automata", + "serde", + "serde1", + "serde1-nostd", + "std", + "unicode", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [] + glob(["src/**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.16", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__lazy_static__1_4_0//:lazy_static", + "@rules_rust_test_bench_criterion__memchr__2_4_1//:memchr", + "@rules_rust_test_bench_criterion__regex_automata__0_1_10//:regex_automata", + "@rules_rust_test_bench_criterion__serde__1_0_130//:serde", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.bumpalo-3.7.0.bazel b/test/bench/criterion/raze/remote/BUILD.bumpalo-3.7.0.bazel new file mode 100644 index 0000000000..412b112fe9 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.bumpalo-3.7.0.bazel @@ -0,0 +1,80 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "benches" with type "bench" omitted + +rust_library( + name = "bumpalo", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "3.7.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "alloc_fill" with type "test" omitted + +# Unsupported target "alloc_try_with" with type "test" omitted + +# Unsupported target "alloc_with" with type "test" omitted + +# Unsupported target "allocator_api" with type "test" omitted + +# Unsupported target "quickchecks" with type "test" omitted + +# Unsupported target "readme_up_to_date" with type "test" omitted + +# Unsupported target "string" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted + +# Unsupported target "try_alloc" with type "test" omitted + +# Unsupported target "try_alloc_try_with" with type "test" omitted + +# Unsupported target "try_alloc_with" with type "test" omitted + +# Unsupported target "vec" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.cast-0.2.7.bazel b/test/bench/criterion/raze/remote/BUILD.cast-0.2.7.bazel new file mode 100644 index 0000000000..983b37d4dc --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.cast-0.2.7.bazel @@ -0,0 +1,88 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "cast_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.7", + visibility = ["//visibility:private"], + deps = [ + "@rules_rust_test_bench_criterion__rustc_version__0_4_0//:rustc_version", + ], +) + +rust_library( + name = "cast", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.7", + # buildifier: leave-alone + deps = [ + ":cast_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.cfg-if-1.0.0.bazel b/test/bench/criterion/raze/remote/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 0000000000..177ae433cd --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "xcrate" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.clap-2.33.3.bazel b/test/bench/criterion/raze/remote/BUILD.clap-2.33.3.bazel new file mode 100644 index 0000000000..d58db533c0 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.clap-2.33.3.bazel @@ -0,0 +1,82 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "clap", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.33.3", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__bitflags__1_3_2//:bitflags", + "@rules_rust_test_bench_criterion__textwrap__0_11_0//:textwrap", + "@rules_rust_test_bench_criterion__unicode_width__0_1_8//:unicode_width", + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) diff --git a/test/bench/criterion/raze/remote/BUILD.criterion-0.3.5.bazel b/test/bench/criterion/raze/remote/BUILD.criterion-0.3.5.bazel new file mode 100644 index 0000000000..e57007540b --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.criterion-0.3.5.bazel @@ -0,0 +1,79 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "bench_main" with type "bench" omitted + +rust_library( + name = "criterion", + srcs = glob(["**/*.rs"]), + crate_features = [ + "cargo_bench_support", + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [] + glob(["src/**"]), + edition = "2018", + proc_macro_deps = [ + "@rules_rust_test_bench_criterion__serde_derive__1_0_130//:serde_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.5", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__atty__0_2_14//:atty", + "@rules_rust_test_bench_criterion__cast__0_2_7//:cast", + "@rules_rust_test_bench_criterion__clap__2_33_3//:clap", + "@rules_rust_test_bench_criterion__criterion_plot__0_4_4//:criterion_plot", + "@rules_rust_test_bench_criterion__csv__1_1_6//:csv", + "@rules_rust_test_bench_criterion__itertools__0_10_1//:itertools", + "@rules_rust_test_bench_criterion__lazy_static__1_4_0//:lazy_static", + "@rules_rust_test_bench_criterion__num_traits__0_2_14//:num_traits", + "@rules_rust_test_bench_criterion__oorandom__11_1_3//:oorandom", + "@rules_rust_test_bench_criterion__plotters__0_3_1//:plotters", + "@rules_rust_test_bench_criterion__rayon__1_5_1//:rayon", + "@rules_rust_test_bench_criterion__regex__1_5_4//:regex", + "@rules_rust_test_bench_criterion__serde__1_0_130//:serde", + "@rules_rust_test_bench_criterion__serde_cbor__0_11_2//:serde_cbor", + "@rules_rust_test_bench_criterion__serde_json__1_0_67//:serde_json", + "@rules_rust_test_bench_criterion__tinytemplate__1_2_1//:tinytemplate", + "@rules_rust_test_bench_criterion__walkdir__2_3_2//:walkdir", + ], +) + +# Unsupported target "criterion_tests" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.criterion-plot-0.4.4.bazel b/test/bench/criterion/raze/remote/BUILD.criterion-plot-0.4.4.bazel new file mode 100644 index 0000000000..02af19604c --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.criterion-plot-0.4.4.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "criterion_plot", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.4", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__cast__0_2_7//:cast", + "@rules_rust_test_bench_criterion__itertools__0_10_1//:itertools", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.crossbeam-channel-0.5.1.bazel b/test/bench/criterion/raze/remote/BUILD.crossbeam-channel-0.5.1.bazel new file mode 100644 index 0000000000..96960d7593 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.crossbeam-channel-0.5.1.bazel @@ -0,0 +1,94 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "crossbeam" with type "bench" omitted + +# Unsupported target "fibonacci" with type "example" omitted + +# Unsupported target "matching" with type "example" omitted + +# Unsupported target "stopwatch" with type "example" omitted + +rust_library( + name = "crossbeam_channel", + srcs = glob(["**/*.rs"]), + crate_features = [ + "crossbeam-utils", + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.1", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__cfg_if__1_0_0//:cfg_if", + "@rules_rust_test_bench_criterion__crossbeam_utils__0_8_5//:crossbeam_utils", + ], +) + +# Unsupported target "after" with type "test" omitted + +# Unsupported target "array" with type "test" omitted + +# Unsupported target "golang" with type "test" omitted + +# Unsupported target "iter" with type "test" omitted + +# Unsupported target "list" with type "test" omitted + +# Unsupported target "mpsc" with type "test" omitted + +# Unsupported target "never" with type "test" omitted + +# Unsupported target "ready" with type "test" omitted + +# Unsupported target "same_channel" with type "test" omitted + +# Unsupported target "select" with type "test" omitted + +# Unsupported target "select_macro" with type "test" omitted + +# Unsupported target "thread_locals" with type "test" omitted + +# Unsupported target "tick" with type "test" omitted + +# Unsupported target "zero" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.crossbeam-deque-0.8.1.bazel b/test/bench/criterion/raze/remote/BUILD.crossbeam-deque-0.8.1.bazel new file mode 100644 index 0000000000..d4b0d09bb2 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.crossbeam-deque-0.8.1.bazel @@ -0,0 +1,68 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = [ + "crossbeam-epoch", + "crossbeam-utils", + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.1", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__cfg_if__1_0_0//:cfg_if", + "@rules_rust_test_bench_criterion__crossbeam_epoch__0_9_5//:crossbeam_epoch", + "@rules_rust_test_bench_criterion__crossbeam_utils__0_8_5//:crossbeam_utils", + ], +) + +# 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/test/bench/criterion/raze/remote/BUILD.crossbeam-epoch-0.9.5.bazel b/test/bench/criterion/raze/remote/BUILD.crossbeam-epoch-0.9.5.bazel new file mode 100644 index 0000000000..1ed487b191 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.crossbeam-epoch-0.9.5.bazel @@ -0,0 +1,104 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "crossbeam_epoch_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "alloc", + "lazy_static", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.5", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "defer" with type "bench" omitted + +# Unsupported target "flush" with type "bench" omitted + +# Unsupported target "pin" with type "bench" omitted + +# Unsupported target "sanitize" with type "example" omitted + +rust_library( + name = "crossbeam_epoch", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "lazy_static", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.5", + # buildifier: leave-alone + deps = [ + ":crossbeam_epoch_build_script", + "@rules_rust_test_bench_criterion__cfg_if__1_0_0//:cfg_if", + "@rules_rust_test_bench_criterion__crossbeam_utils__0_8_5//:crossbeam_utils", + "@rules_rust_test_bench_criterion__lazy_static__1_4_0//:lazy_static", + "@rules_rust_test_bench_criterion__memoffset__0_6_4//:memoffset", + "@rules_rust_test_bench_criterion__scopeguard__1_1_0//:scopeguard", + ], +) + +# Unsupported target "loom" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.crossbeam-utils-0.8.5.bazel b/test/bench/criterion/raze/remote/BUILD.crossbeam-utils-0.8.5.bazel new file mode 100644 index 0000000000..87387d83f9 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.crossbeam-utils-0.8.5.bazel @@ -0,0 +1,105 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "crossbeam_utils_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "lazy_static", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.5", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "atomic_cell" with type "bench" omitted + +rust_library( + name = "crossbeam_utils", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "lazy_static", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.5", + # buildifier: leave-alone + deps = [ + ":crossbeam_utils_build_script", + "@rules_rust_test_bench_criterion__cfg_if__1_0_0//:cfg_if", + "@rules_rust_test_bench_criterion__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/test/bench/criterion/raze/remote/BUILD.csv-1.1.6.bazel b/test/bench/criterion/raze/remote/BUILD.csv-1.1.6.bazel new file mode 100644 index 0000000000..2f76e12ae2 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.csv-1.1.6.bazel @@ -0,0 +1,134 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "cookbook-read-basic" with type "example" omitted + +# Unsupported target "cookbook-read-colon" with type "example" omitted + +# Unsupported target "cookbook-read-no-headers" with type "example" omitted + +# Unsupported target "cookbook-read-serde" with type "example" omitted + +# Unsupported target "cookbook-write-basic" with type "example" omitted + +# Unsupported target "cookbook-write-serde" with type "example" omitted + +# Unsupported target "tutorial-error-01" with type "example" omitted + +# Unsupported target "tutorial-error-02" with type "example" omitted + +# Unsupported target "tutorial-error-03" with type "example" omitted + +# Unsupported target "tutorial-error-04" with type "example" omitted + +# Unsupported target "tutorial-perf-alloc-01" with type "example" omitted + +# Unsupported target "tutorial-perf-alloc-02" with type "example" omitted + +# Unsupported target "tutorial-perf-alloc-03" with type "example" omitted + +# Unsupported target "tutorial-perf-core-01" with type "example" omitted + +# Unsupported target "tutorial-perf-serde-01" with type "example" omitted + +# Unsupported target "tutorial-perf-serde-02" with type "example" omitted + +# Unsupported target "tutorial-perf-serde-03" with type "example" omitted + +# Unsupported target "tutorial-pipeline-pop-01" with type "example" omitted + +# Unsupported target "tutorial-pipeline-search-01" with type "example" omitted + +# Unsupported target "tutorial-pipeline-search-02" with type "example" omitted + +# Unsupported target "tutorial-read-01" with type "example" omitted + +# Unsupported target "tutorial-read-delimiter-01" with type "example" omitted + +# Unsupported target "tutorial-read-headers-01" with type "example" omitted + +# Unsupported target "tutorial-read-headers-02" with type "example" omitted + +# Unsupported target "tutorial-read-serde-01" with type "example" omitted + +# Unsupported target "tutorial-read-serde-02" with type "example" omitted + +# Unsupported target "tutorial-read-serde-03" with type "example" omitted + +# Unsupported target "tutorial-read-serde-04" with type "example" omitted + +# Unsupported target "tutorial-read-serde-invalid-01" with type "example" omitted + +# Unsupported target "tutorial-read-serde-invalid-02" with type "example" omitted + +# Unsupported target "tutorial-setup-01" with type "example" omitted + +# Unsupported target "tutorial-write-01" with type "example" omitted + +# Unsupported target "tutorial-write-02" with type "example" omitted + +# Unsupported target "tutorial-write-delimiter-01" with type "example" omitted + +# Unsupported target "tutorial-write-serde-01" with type "example" omitted + +# Unsupported target "tutorial-write-serde-02" with type "example" omitted + +rust_library( + name = "csv", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.6", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__bstr__0_2_16//:bstr", + "@rules_rust_test_bench_criterion__csv_core__0_1_10//:csv_core", + "@rules_rust_test_bench_criterion__itoa__0_4_8//:itoa", + "@rules_rust_test_bench_criterion__ryu__1_0_5//:ryu", + "@rules_rust_test_bench_criterion__serde__1_0_130//:serde", + ], +) + +# Unsupported target "tests" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.csv-core-0.1.10.bazel b/test/bench/criterion/raze/remote/BUILD.csv-core-0.1.10.bazel new file mode 100644 index 0000000000..6140fe9c4c --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.csv-core-0.1.10.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 + +rust_library( + name = "csv_core", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.10", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__memchr__2_4_1//:memchr", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.either-1.6.1.bazel b/test/bench/criterion/raze/remote/BUILD.either-1.6.1.bazel new file mode 100644 index 0000000000..5ea77b2304 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.either-1.6.1.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "either", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.6.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.half-1.7.1.bazel b/test/bench/criterion/raze/remote/BUILD.half-1.7.1.bazel new file mode 100644 index 0000000000..f4d93155fb --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.half-1.7.1.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "convert" with type "bench" omitted + +rust_library( + name = "half", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.7.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "version-numbers" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.hermit-abi-0.1.19.bazel b/test/bench/criterion/raze/remote/BUILD.hermit-abi-0.1.19.bazel new file mode 100644 index 0000000000..a18ad378eb --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.hermit-abi-0.1.19.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.19", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__libc__0_2_101//:libc", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.itertools-0.10.1.bazel b/test/bench/criterion/raze/remote/BUILD.itertools-0.10.1.bazel new file mode 100644 index 0000000000..02e961cbc2 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.itertools-0.10.1.bazel @@ -0,0 +1,99 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "bench1" with type "bench" omitted + +# Unsupported target "combinations" with type "bench" omitted + +# Unsupported target "combinations_with_replacement" with type "bench" omitted + +# Unsupported target "fold_specialization" with type "bench" omitted + +# Unsupported target "powerset" with type "bench" omitted + +# Unsupported target "tree_fold1" with type "bench" omitted + +# Unsupported target "tuple_combinations" with type "bench" omitted + +# Unsupported target "tuples" with type "bench" omitted + +# Unsupported target "iris" with type "example" omitted + +rust_library( + name = "itertools", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "use_alloc", + "use_std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.1", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__either__1_6_1//:either", + ], +) + +# Unsupported target "adaptors_no_collect" with type "test" omitted + +# Unsupported target "flatten_ok" with type "test" omitted + +# Unsupported target "fold_specialization" with type "test" omitted + +# Unsupported target "macros_hygiene" with type "test" omitted + +# Unsupported target "merge_join" with type "test" omitted + +# Unsupported target "peeking_take_while" with type "test" omitted + +# Unsupported target "quick" with type "test" omitted + +# Unsupported target "specializations" with type "test" omitted + +# Unsupported target "test_core" with type "test" omitted + +# Unsupported target "test_std" with type "test" omitted + +# Unsupported target "tuples" with type "test" omitted + +# Unsupported target "zip" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.itoa-0.4.8.bazel b/test/bench/criterion/raze/remote/BUILD.itoa-0.4.8.bazel new file mode 100644 index 0000000000..93aa3c2a85 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.itoa-0.4.8.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "itoa", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.8", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.js-sys-0.3.53.bazel b/test/bench/criterion/raze/remote/BUILD.js-sys-0.3.53.bazel new file mode 100644 index 0000000000..effa2a6b51 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.js-sys-0.3.53.bazel @@ -0,0 +1,68 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "js_sys", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.53", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__wasm_bindgen__0_2_76//:wasm_bindgen", + ] + selects.with_or({ + # cfg(target_arch = "wasm32") + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "headless" with type "test" omitted + +# Unsupported target "wasm" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.lazy_static-1.4.0.bazel b/test/bench/criterion/raze/remote/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 0000000000..dc171d73f0 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "no_std" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.libc-0.2.101.bazel b/test/bench/criterion/raze/remote/BUILD.libc-0.2.101.bazel new file mode 100644 index 0000000000..cd7942d1a2 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.libc-0.2.101.bazel @@ -0,0 +1,89 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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.101", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "libc", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.101", + # buildifier: leave-alone + deps = [ + ":libc_build_script", + ], +) + +# Unsupported target "const_fn" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.log-0.4.14.bazel b/test/bench/criterion/raze/remote/BUILD.log-0.4.14.bazel new file mode 100644 index 0000000000..e31c587372 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.log-0.4.14.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.14", + # buildifier: leave-alone + deps = [ + ":log_build_script", + "@rules_rust_test_bench_criterion__cfg_if__1_0_0//:cfg_if", + ], +) + +# Unsupported target "filters" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.memchr-2.4.1.bazel b/test/bench/criterion/raze/remote/BUILD.memchr-2.4.1.bazel new file mode 100644 index 0000000000..2f2f1910f2 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.memchr-2.4.1.bazel @@ -0,0 +1,85 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = [ + "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 = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.4.1", + # buildifier: leave-alone + deps = [ + ":memchr_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.memoffset-0.6.4.bazel b/test/bench/criterion/raze/remote/BUILD.memoffset-0.6.4.bazel new file mode 100644 index 0000000000..258eeddc78 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.memoffset-0.6.4.bazel @@ -0,0 +1,86 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "memoffset_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 = "0.6.4", + visibility = ["//visibility:private"], + deps = [ + "@rules_rust_test_bench_criterion__autocfg__1_0_1//:autocfg", + ], +) + +rust_library( + name = "memoffset", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.4", + # buildifier: leave-alone + deps = [ + ":memoffset_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.num-traits-0.2.14.bazel b/test/bench/criterion/raze/remote/BUILD.num-traits-0.2.14.bazel new file mode 100644 index 0000000000..ceee43a646 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.num-traits-0.2.14.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "num_traits_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.14", + visibility = ["//visibility:private"], + deps = [ + "@rules_rust_test_bench_criterion__autocfg__1_0_1//:autocfg", + ], +) + +rust_library( + name = "num_traits", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone + deps = [ + ":num_traits_build_script", + ], +) + +# Unsupported target "cast" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.num_cpus-1.13.0.bazel b/test/bench/criterion/raze/remote/BUILD.num_cpus-1.13.0.bazel new file mode 100644 index 0000000000..83006c899b --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.num_cpus-1.13.0.bazel @@ -0,0 +1,56 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.13.0", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__libc__0_2_101//:libc", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.oorandom-11.1.3.bazel b/test/bench/criterion/raze/remote/BUILD.oorandom-11.1.3.bazel new file mode 100644 index 0000000000..cd64ba4f3f --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.oorandom-11.1.3.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "oorandom", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "11.1.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.plotters-0.3.1.bazel b/test/bench/criterion/raze/remote/BUILD.plotters-0.3.1.bazel new file mode 100644 index 0000000000..641ffd0e83 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.plotters-0.3.1.bazel @@ -0,0 +1,142 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "benchmark" with type "bench" omitted + +# Unsupported target "3d-plot" with type "example" omitted + +# Unsupported target "3d-plot2" with type "example" omitted + +# Unsupported target "animation" with type "example" omitted + +# Unsupported target "area-chart" with type "example" omitted + +# Unsupported target "blit-bitmap" with type "example" omitted + +# Unsupported target "boxplot" with type "example" omitted + +# Unsupported target "chart" with type "example" omitted + +# Unsupported target "console" with type "example" omitted + +# Unsupported target "errorbar" with type "example" omitted + +# Unsupported target "histogram" with type "example" omitted + +# Unsupported target "mandelbrot" with type "example" omitted + +# Unsupported target "matshow" with type "example" omitted + +# Unsupported target "nested_coord" with type "example" omitted + +# Unsupported target "normal-dist" with type "example" omitted + +# Unsupported target "normal-dist2" with type "example" omitted + +# Unsupported target "relative_size" with type "example" omitted + +# Unsupported target "sierpinski" with type "example" omitted + +# Unsupported target "slc-temp" with type "example" omitted + +# Unsupported target "snowflake" with type "example" omitted + +# Unsupported target "stock" with type "example" omitted + +# Unsupported target "tick_control" with type "example" omitted + +# Unsupported target "two-scales" with type "example" omitted + +rust_library( + name = "plotters", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "area_series", + "line_series", + "plotters-svg", + "svg_backend", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__num_traits__0_2_14//:num_traits", + "@rules_rust_test_bench_criterion__plotters_backend__0_3_2//:plotters_backend", + "@rules_rust_test_bench_criterion__plotters_svg__0_3_1//:plotters_svg", + ] + selects.with_or({ + # cfg(not(target_arch = "wasm32")) + ( + "@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-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@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-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_arch = "wasm32") + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + "@rules_rust_test_bench_criterion__wasm_bindgen__0_2_76//:wasm_bindgen", + "@rules_rust_test_bench_criterion__web_sys__0_3_53//:web_sys", + ], + "//conditions:default": [], + }), +) diff --git a/test/bench/criterion/raze/remote/BUILD.plotters-backend-0.3.2.bazel b/test/bench/criterion/raze/remote/BUILD.plotters-backend-0.3.2.bazel new file mode 100644 index 0000000000..4491baaee7 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.plotters-backend-0.3.2.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "plotters_backend", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.plotters-svg-0.3.1.bazel b/test/bench/criterion/raze/remote/BUILD.plotters-svg-0.3.1.bazel new file mode 100644 index 0000000000..efc2c8c3cf --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.plotters-svg-0.3.1.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "plotters_svg", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__plotters_backend__0_3_2//:plotters_backend", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.proc-macro2-1.0.29.bazel b/test/bench/criterion/raze/remote/BUILD.proc-macro2-1.0.29.bazel new file mode 100644 index 0000000000..20e738b055 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.proc-macro2-1.0.29.bazel @@ -0,0 +1,98 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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.29", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "proc_macro2", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.29", + # buildifier: leave-alone + deps = [ + ":proc_macro2_build_script", + "@rules_rust_test_bench_criterion__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/test/bench/criterion/raze/remote/BUILD.quote-1.0.9.bazel b/test/bench/criterion/raze/remote/BUILD.quote-1.0.9.bazel new file mode 100644 index 0000000000..9259f7a616 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.quote-1.0.9.bazel @@ -0,0 +1,60 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "quote", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.9", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__proc_macro2__1_0_29//:proc_macro2", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.rayon-1.5.1.bazel b/test/bench/criterion/raze/remote/BUILD.rayon-1.5.1.bazel new file mode 100644 index 0000000000..1754065ac9 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.rayon-1.5.1.bazel @@ -0,0 +1,117 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 +# 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 = "rayon_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.5.1", + visibility = ["//visibility:private"], + deps = [ + "@rules_rust_test_bench_criterion__autocfg__1_0_1//:autocfg", + ], +) + +# Unsupported target "cpu_monitor" with type "example" omitted + +rust_library( + name = "rayon", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.5.1", + # buildifier: leave-alone + deps = [ + ":rayon_build_script", + "@rules_rust_test_bench_criterion__crossbeam_deque__0_8_1//:crossbeam_deque", + "@rules_rust_test_bench_criterion__either__1_6_1//:either", + "@rules_rust_test_bench_criterion__rayon_core__1_9_1//:rayon_core", + ], +) + +# Unsupported target "chars" with type "test" omitted + +# Unsupported target "clones" with type "test" omitted + +# Unsupported target "collect" with type "test" omitted + +# Unsupported target "cross-pool" with type "test" omitted + +# Unsupported target "debug" with type "test" omitted + +# Unsupported target "intersperse" with type "test" omitted + +# Unsupported target "issue671" with type "test" omitted + +# Unsupported target "issue671-unzip" with type "test" omitted + +# Unsupported target "iter_panic" with type "test" omitted + +# Unsupported target "named-threads" with type "test" omitted + +# Unsupported target "octillion" with type "test" omitted + +# Unsupported target "producer_split_at" with type "test" omitted + +# Unsupported target "sort-panic-safe" with type "test" omitted + +# Unsupported target "str" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.rayon-core-1.9.1.bazel b/test/bench/criterion/raze/remote/BUILD.rayon-core-1.9.1.bazel new file mode 100644 index 0000000000..10ba12c291 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.rayon-core-1.9.1.bazel @@ -0,0 +1,147 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 +# 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 = "rayon_core_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + links = "rayon-core", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.9.1", + visibility = ["//visibility:private"], + deps = [ + ] + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform: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", + ): [ + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "rayon_core", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.9.1", + # buildifier: leave-alone + deps = [ + ":rayon_core_build_script", + "@rules_rust_test_bench_criterion__crossbeam_channel__0_5_1//:crossbeam_channel", + "@rules_rust_test_bench_criterion__crossbeam_deque__0_8_1//:crossbeam_deque", + "@rules_rust_test_bench_criterion__crossbeam_utils__0_8_5//:crossbeam_utils", + "@rules_rust_test_bench_criterion__lazy_static__1_4_0//:lazy_static", + "@rules_rust_test_bench_criterion__num_cpus__1_13_0//:num_cpus", + ] + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform: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", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "double_init_fail" with type "test" omitted + +# Unsupported target "init_zero_threads" with type "test" omitted + +# Unsupported target "scope_join" with type "test" omitted + +# Unsupported target "scoped_threadpool" with type "test" omitted + +# Unsupported target "simple_panic" with type "test" omitted + +# Unsupported target "stack_overflow_crash" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.regex-1.5.4.bazel b/test/bench/criterion/raze/remote/BUILD.regex-1.5.4.bazel new file mode 100644 index 0000000000..f6e607433e --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.regex-1.5.4.bazel @@ -0,0 +1,85 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.5.4", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__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/test/bench/criterion/raze/remote/BUILD.regex-automata-0.1.10.bazel b/test/bench/criterion/raze/remote/BUILD.regex-automata-0.1.10.bazel new file mode 100644 index 0000000000..46973b0e99 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.regex-automata-0.1.10.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "regex_automata", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.10", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "default" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.regex-syntax-0.6.25.bazel b/test/bench/criterion/raze/remote/BUILD.regex-syntax-0.6.25.bazel new file mode 100644 index 0000000000..c29ec11a5f --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.regex-syntax-0.6.25.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.25", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.rustc_version-0.4.0.bazel b/test/bench/criterion/raze/remote/BUILD.rustc_version-0.4.0.bazel new file mode 100644 index 0000000000..3284ad6b23 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.rustc_version-0.4.0.bazel @@ -0,0 +1,56 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__semver__1_0_4//:semver", + ], +) + +# Unsupported target "all" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.ryu-1.0.5.bazel b/test/bench/criterion/raze/remote/BUILD.ryu-1.0.5.bazel new file mode 100644 index 0000000000..9db954d2c3 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.ryu-1.0.5.bazel @@ -0,0 +1,101 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR BSL-1.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 = "ryu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.5", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "upstream_benchmark" with type "example" omitted + +rust_library( + name = "ryu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.5", + # buildifier: leave-alone + deps = [ + ":ryu_build_script", + ], +) + +# Unsupported target "common_test" with type "test" omitted + +# Unsupported target "d2s_table_test" with type "test" omitted + +# Unsupported target "d2s_test" with type "test" omitted + +# Unsupported target "exhaustive" with type "test" omitted + +# Unsupported target "f2s_test" with type "test" omitted + +# Unsupported target "s2d_test" with type "test" omitted + +# Unsupported target "s2f_test" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.same-file-1.0.6.bazel b/test/bench/criterion/raze/remote/BUILD.same-file-1.0.6.bazel new file mode 100644 index 0000000000..3e6f50cef9 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.same-file-1.0.6.bazel @@ -0,0 +1,68 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "is_same_file" with type "example" omitted + +# Unsupported target "is_stderr" with type "example" omitted + +rust_library( + name = "same_file", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.6", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@rules_rust_test_bench_criterion__winapi_util__0_1_5//:winapi_util", + ], + "//conditions:default": [], + }), +) diff --git a/test/bench/criterion/raze/remote/BUILD.scopeguard-1.1.0.bazel b/test/bench/criterion/raze/remote/BUILD.scopeguard-1.1.0.bazel new file mode 100644 index 0000000000..d35d9e1722 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.scopeguard-1.1.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.semver-1.0.4.bazel b/test/bench/criterion/raze/remote/BUILD.semver-1.0.4.bazel new file mode 100644 index 0000000000..a85f261fbf --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.semver-1.0.4.bazel @@ -0,0 +1,95 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "semver_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.4", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "parse" with type "bench" omitted + +rust_library( + name = "semver", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.4", + # buildifier: leave-alone + deps = [ + ":semver_build_script", + ], +) + +# Unsupported target "test_identifier" with type "test" omitted + +# Unsupported target "test_version" with type "test" omitted + +# Unsupported target "test_version_req" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.serde-1.0.130.bazel b/test/bench/criterion/raze/remote/BUILD.serde-1.0.130.bazel new file mode 100644 index 0000000000..fc7224e338 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.serde-1.0.130.bazel @@ -0,0 +1,87 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "serde_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 = "1.0.130", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "serde", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.130", + # buildifier: leave-alone + deps = [ + ":serde_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.serde_cbor-0.11.2.bazel b/test/bench/criterion/raze/remote/BUILD.serde_cbor-0.11.2.bazel new file mode 100644 index 0000000000..4970a64489 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.serde_cbor-0.11.2.bazel @@ -0,0 +1,77 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 + +# Unsupported target "tags" with type "example" omitted + +rust_library( + name = "serde_cbor", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.2", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__half__1_7_1//:half", + "@rules_rust_test_bench_criterion__serde__1_0_130//:serde", + ], +) + +# Unsupported target "bennofs" with type "test" omitted + +# Unsupported target "canonical" with type "test" omitted + +# Unsupported target "de" with type "test" omitted + +# Unsupported target "enum" with type "test" omitted + +# Unsupported target "ser" with type "test" omitted + +# Unsupported target "std_types" with type "test" omitted + +# Unsupported target "tags" with type "test" omitted + +# Unsupported target "value" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.serde_derive-1.0.130.bazel b/test/bench/criterion/raze/remote/BUILD.serde_derive-1.0.130.bazel new file mode 100644 index 0000000000..4043dd6ff1 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.serde_derive-1.0.130.bazel @@ -0,0 +1,88 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "serde_derive_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.0.130", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "serde_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.130", + # buildifier: leave-alone + deps = [ + ":serde_derive_build_script", + "@rules_rust_test_bench_criterion__proc_macro2__1_0_29//:proc_macro2", + "@rules_rust_test_bench_criterion__quote__1_0_9//:quote", + "@rules_rust_test_bench_criterion__syn__1_0_76//:syn", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.serde_json-1.0.67.bazel b/test/bench/criterion/raze/remote/BUILD.serde_json-1.0.67.bazel new file mode 100644 index 0000000000..ab7dae6c37 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.serde_json-1.0.67.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "serde_json_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.67", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "serde_json", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.67", + # buildifier: leave-alone + deps = [ + ":serde_json_build_script", + "@rules_rust_test_bench_criterion__itoa__0_4_8//:itoa", + "@rules_rust_test_bench_criterion__ryu__1_0_5//:ryu", + "@rules_rust_test_bench_criterion__serde__1_0_130//:serde", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.syn-1.0.76.bazel b/test/bench/criterion/raze/remote/BUILD.syn-1.0.76.bazel new file mode 100644 index 0000000000..236eaf9e31 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.syn-1.0.76.bazel @@ -0,0 +1,160 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + "visit", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.76", + 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", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + "visit", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.76", + # buildifier: leave-alone + deps = [ + ":syn_build_script", + "@rules_rust_test_bench_criterion__proc_macro2__1_0_29//:proc_macro2", + "@rules_rust_test_bench_criterion__quote__1_0_9//:quote", + "@rules_rust_test_bench_criterion__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/test/bench/criterion/raze/remote/BUILD.textwrap-0.11.0.bazel b/test/bench/criterion/raze/remote/BUILD.textwrap-0.11.0.bazel new file mode 100644 index 0000000000..422b59ebce --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.textwrap-0.11.0.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/raze", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "linear" with type "bench" omitted + +# Unsupported target "layout" with type "example" omitted + +# Unsupported target "termwidth" with type "example" omitted + +rust_library( + name = "textwrap", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.0", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__unicode_width__0_1_8//:unicode_width", + ], +) + +# Unsupported target "version-numbers" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.tinytemplate-1.2.1.bazel b/test/bench/criterion/raze/remote/BUILD.tinytemplate-1.2.1.bazel new file mode 100644 index 0000000000..568a66c337 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.tinytemplate-1.2.1.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 "benchmarks" with type "bench" omitted + +rust_library( + name = "tinytemplate", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__serde__1_0_130//:serde", + "@rules_rust_test_bench_criterion__serde_json__1_0_67//:serde_json", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.unicode-width-0.1.8.bazel b/test/bench/criterion/raze/remote/BUILD.unicode-width-0.1.8.bazel new file mode 100644 index 0000000000..c591c0d04d --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.unicode-width-0.1.8.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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_width", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.8", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.unicode-xid-0.2.2.bazel b/test/bench/criterion/raze/remote/BUILD.unicode-xid-0.2.2.bazel new file mode 100644 index 0000000000..0bdb865248 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.unicode-xid-0.2.2.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.walkdir-2.3.2.bazel b/test/bench/criterion/raze/remote/BUILD.walkdir-2.3.2.bazel new file mode 100644 index 0000000000..ed4e507e8b --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.walkdir-2.3.2.bazel @@ -0,0 +1,66 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "walkdir", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.2", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__same_file__1_0_6//:same_file", + ] + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@rules_rust_test_bench_criterion__winapi__0_3_9//:winapi", + "@rules_rust_test_bench_criterion__winapi_util__0_1_5//:winapi_util", + ], + "//conditions:default": [], + }), +) diff --git a/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-0.2.76.bazel b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-0.2.76.bazel new file mode 100644 index 0000000000..7267854a0a --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-0.2.76.bazel @@ -0,0 +1,123 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "wasm_bindgen_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "spans", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + visibility = ["//visibility:private"], + deps = [ + ] + selects.with_or({ + # cfg(target_arch = "wasm32") + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "wasm_bindgen", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "spans", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + proc_macro_deps = [ + "@rules_rust_test_bench_criterion__wasm_bindgen_macro__0_2_76//:wasm_bindgen_macro", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + # buildifier: leave-alone + deps = [ + ":wasm_bindgen_build_script", + "@rules_rust_test_bench_criterion__cfg_if__1_0_0//:cfg_if", + ] + selects.with_or({ + # cfg(target_arch = "wasm32") + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "headless" with type "test" omitted + +# Unsupported target "must_use" with type "test" omitted + +# Unsupported target "non_wasm" with type "test" omitted + +# Unsupported target "std-crate-no-std-dep" with type "test" omitted + +# Unsupported target "unwrap_throw" with type "test" omitted + +# Unsupported target "wasm" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-backend-0.2.76.bazel b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-backend-0.2.76.bazel new file mode 100644 index 0000000000..b3d9fbedd0 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-backend-0.2.76.bazel @@ -0,0 +1,61 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "wasm_bindgen_backend", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__bumpalo__3_7_0//:bumpalo", + "@rules_rust_test_bench_criterion__lazy_static__1_4_0//:lazy_static", + "@rules_rust_test_bench_criterion__log__0_4_14//:log", + "@rules_rust_test_bench_criterion__proc_macro2__1_0_29//:proc_macro2", + "@rules_rust_test_bench_criterion__quote__1_0_9//:quote", + "@rules_rust_test_bench_criterion__syn__1_0_76//:syn", + "@rules_rust_test_bench_criterion__wasm_bindgen_shared__0_2_76//:wasm_bindgen_shared", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-0.2.76.bazel b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-0.2.76.bazel new file mode 100644 index 0000000000..05f2a45293 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-0.2.76.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "wasm_bindgen_macro", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__quote__1_0_9//:quote", + "@rules_rust_test_bench_criterion__wasm_bindgen_macro_support__0_2_76//:wasm_bindgen_macro_support", + ], +) + +# Unsupported target "ui" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-support-0.2.76.bazel b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-support-0.2.76.bazel new file mode 100644 index 0000000000..07e99630ff --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-macro-support-0.2.76.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "wasm_bindgen_macro_support", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__proc_macro2__1_0_29//:proc_macro2", + "@rules_rust_test_bench_criterion__quote__1_0_9//:quote", + "@rules_rust_test_bench_criterion__syn__1_0_76//:syn", + "@rules_rust_test_bench_criterion__wasm_bindgen_backend__0_2_76//:wasm_bindgen_backend", + "@rules_rust_test_bench_criterion__wasm_bindgen_shared__0_2_76//:wasm_bindgen_shared", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-shared-0.2.76.bazel b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-shared-0.2.76.bazel new file mode 100644 index 0000000000..c523a1b581 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.wasm-bindgen-shared-0.2.76.bazel @@ -0,0 +1,84 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "wasm_bindgen_shared_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + links = "wasm_bindgen", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "wasm_bindgen_shared", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.76", + # buildifier: leave-alone + deps = [ + ":wasm_bindgen_shared_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.web-sys-0.3.53.bazel b/test/bench/criterion/raze/remote/BUILD.web-sys-0.3.53.bazel new file mode 100644 index 0000000000..13f4d96c28 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.web-sys-0.3.53.bazel @@ -0,0 +1,77 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "web_sys", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "CanvasRenderingContext2d", + "Document", + "DomRect", + "DomRectReadOnly", + "Element", + "EventTarget", + "HtmlCanvasElement", + "HtmlElement", + "Node", + "Window", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.53", + # buildifier: leave-alone + deps = [ + "@rules_rust_test_bench_criterion__js_sys__0_3_53//:js_sys", + "@rules_rust_test_bench_criterion__wasm_bindgen__0_2_76//:wasm_bindgen", + ] + selects.with_or({ + # cfg(target_arch = "wasm32") + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "wasm" with type "test" omitted diff --git a/test/bench/criterion/raze/remote/BUILD.winapi-0.3.9.bazel b/test/bench/criterion/raze/remote/BUILD.winapi-0.3.9.bazel new file mode 100644 index 0000000000..30a27d662c --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.winapi-0.3.9.bazel @@ -0,0 +1,105 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "winapi_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + # buildifier: leave-alone + deps = [ + ":winapi_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/test/bench/criterion/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 0000000000..55696b3baf --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,83 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "winapi_i686_pc_windows_gnu_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.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi_i686_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ":winapi_i686_pc_windows_gnu_build_script", + ], +) diff --git a/test/bench/criterion/raze/remote/BUILD.winapi-util-0.1.5.bazel b/test/bench/criterion/raze/remote/BUILD.winapi-util-0.1.5.bazel new file mode 100644 index 0000000000..3898f634e9 --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.winapi-util-0.1.5.bazel @@ -0,0 +1,64 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "winapi_util", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.5", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@rules_rust_test_bench_criterion__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/test/bench/criterion/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/test/bench/criterion/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 0000000000..f65b63158b --- /dev/null +++ b/test/bench/criterion/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,83 @@ +""" +@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:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//test/bench/criterion/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 = "winapi_x86_64_pc_windows_gnu_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.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi_x86_64_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ":winapi_x86_64_pc_windows_gnu_build_script", + ], +) diff --git a/test/bench/deps.bzl b/test/bench/deps.bzl new file mode 100644 index 0000000000..262f865e25 --- /dev/null +++ b/test/bench/deps.bzl @@ -0,0 +1,6 @@ +"""A module for loading benchmark example dependencies""" + +load("//test/bench/criterion/raze:crates.bzl", "rules_rust_test_bench_criterion_fetch_remote_crates") + +def benchmarking_deps(): + rules_rust_test_bench_criterion_fetch_remote_crates() diff --git a/test/bench/libtest/BUILD.bazel b/test/bench/libtest/BUILD.bazel new file mode 100644 index 0000000000..2811ff3d36 --- /dev/null +++ b/test/bench/libtest/BUILD.bazel @@ -0,0 +1,39 @@ +# Copyright 2021 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@rules_rust//rust:defs.bzl", "rust_benchmark", "rust_test") + +package(default_visibility = ["//visibility:public"]) + +# The benchmark rule requires a nightly toolchain but is otherwise +# expected to work just as the `criterion` variant. For now, we tag +# this as manual as the examples do not use a nightly toolchain. +rust_benchmark( + name = "bench", + srcs = ["benches/fibonacci.rs"], + edition = "2018", + tags = ["manual"], + use_libtest_harness = True, +) + +rust_test( + name = "bench_test", + srcs = ["//test/bench/private:test_bench_runner.rs"], + data = [":bench"], + rustc_env = { + "BENCH_FILES": "$(rootpaths :bench)", + }, + tags = ["manual"], + use_libtest_harness = False, +) diff --git a/test/bench/libtest/benches/fibonacci.rs b/test/bench/libtest/benches/fibonacci.rs new file mode 100644 index 0000000000..f4ae47fef1 --- /dev/null +++ b/test/bench/libtest/benches/fibonacci.rs @@ -0,0 +1,17 @@ +#![feature(test)] +extern crate test; +use test::Bencher; +use test::black_box; + +fn fibonacci(n: u64) -> u64 { + match n { + 0 => 1, + 1 => 1, + n => fibonacci(n-1) + fibonacci(n-2), + } +} + +#[bench] +fn bench_fib(b: &mut Bencher) { + b.iter(|| fibonacci(black_box(20))); +} diff --git a/test/bench/private/BUILD.bazel b/test/bench/private/BUILD.bazel new file mode 100644 index 0000000000..7727557d8f --- /dev/null +++ b/test/bench/private/BUILD.bazel @@ -0,0 +1,6 @@ +exports_files( + [ + "test_bench_runner.rs", + ], + visibility = ["//test:__subpackages__"], +) diff --git a/test/bench/private/test_bench_runner.rs b/test/bench/private/test_bench_runner.rs new file mode 100644 index 0000000000..3c5524b13f --- /dev/null +++ b/test/bench/private/test_bench_runner.rs @@ -0,0 +1,25 @@ +//! The example_bench_runner is a small binary to ensure `rust_benchmark` +//! targets are executable. + +use std::process; + +fn main() { + // `rust_benchmark` targets produce two rust binaries. We want + // to get the benchmark runner executable + let bin = env!("BENCH_FILES") + .split(' ') + .find(|b| b.ends_with(".runner") || b.ends_with(".runner.exe")) + .unwrap(); + + // Run the benchmark as Cargo would + let status = process::Command::new(bin) + .status() + .expect("Failed to run benchmark"); + + // Ensure this binary exits with the same results + process::exit( + status + .code() + .expect("The process was terminated unexpectedly"), + ); +} diff --git a/test/deps.bzl b/test/deps.bzl index 1bd279a964..a7050d5368 100644 --- a/test/deps.bzl +++ b/test/deps.bzl @@ -2,6 +2,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") +load("//test/bench:deps.bzl", "benchmarking_deps") load("//test/load_arbitrary_tool:load_arbitrary_tool_test.bzl", "load_arbitrary_tool_test") _LIBC_BUILD_FILE_CONTENT = """\ @@ -31,3 +32,5 @@ def rules_rust_test_deps(): "https://github.com/rust-lang/libc/archive/0.2.20.zip", ], ) + + benchmarking_deps() diff --git a/util/bench/BUILD.bazel b/util/bench/BUILD.bazel new file mode 100644 index 0000000000..9fa88c8f51 --- /dev/null +++ b/util/bench/BUILD.bazel @@ -0,0 +1,5 @@ +package(default_visibility = ["//visibility:public"]) + +exports_files([ + "bench_runner.rs", +]) diff --git a/util/bench/bench_runner.rs b/util/bench/bench_runner.rs new file mode 100644 index 0000000000..a2a952dbb9 --- /dev/null +++ b/util/bench/bench_runner.rs @@ -0,0 +1,26 @@ +use std::process; + +fn main() { + let mut cmd = process::Command::new(env!("BENCH_BINARY")); + + // Get args but skip the binary + let args: Vec<_> = std::env::args_os().skip(1).collect(); + + // If there are arguments passed to the binary, use those + // otherwise, use that the binary was compiled with. + if !args.is_empty() { + cmd.args(args); + } else { + cmd.args(env!("BENCH_ARGS").split(" ")); + } + + // Run the benchmark + let status = cmd.status().expect("Failed to run benchmark"); + + // Ensure this binary exits with the same results + process::exit( + status + .code() + .expect("The process was terminated unexpectedly"), + ); +}