BUILD.bazel 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Code generated by cargo-gazelle DO NOT EDIT
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. load("@crates_io//:defs.bzl", "aliases", "all_crate_deps")
  11. load("@rules_rust//cargo:defs.bzl", "extract_cargo_lints")
  12. load("@rules_rust//rust:defs.bzl", "rust_doc_test", "rust_library", "rust_test")
  13. package(default_visibility = ["//visibility:public"])
  14. rust_library(
  15. name = "mz_test_util",
  16. srcs = glob(["src/**/*.rs"]),
  17. aliases = aliases(
  18. normal = True,
  19. proc_macro = True,
  20. ),
  21. compile_data = [],
  22. crate_features = [],
  23. data = [],
  24. lint_config = ":lints",
  25. proc_macro_deps = [] + all_crate_deps(proc_macro = True),
  26. rustc_env = {},
  27. rustc_flags = [],
  28. version = "0.0.0",
  29. deps = [
  30. "//src/kafka-util:mz_kafka_util",
  31. "//src/ore:mz_ore",
  32. ] + all_crate_deps(normal = True),
  33. )
  34. alias(
  35. name = "test-util",
  36. actual = "mz_test_util",
  37. )
  38. rust_test(
  39. name = "mz_test_util_lib_tests",
  40. size = "medium",
  41. aliases = aliases(
  42. normal = True,
  43. normal_dev = True,
  44. proc_macro = True,
  45. proc_macro_dev = True,
  46. ),
  47. compile_data = [],
  48. crate = ":mz_test_util",
  49. crate_features = [],
  50. data = [],
  51. env = {},
  52. lint_config = ":lints",
  53. proc_macro_deps = [] + all_crate_deps(
  54. proc_macro = True,
  55. proc_macro_dev = True,
  56. ),
  57. rustc_env = {},
  58. rustc_flags = [],
  59. version = "0.0.0",
  60. deps = [
  61. "//src/kafka-util:mz_kafka_util",
  62. "//src/ore:mz_ore",
  63. ] + all_crate_deps(
  64. normal = True,
  65. normal_dev = True,
  66. ),
  67. )
  68. rust_doc_test(
  69. name = "mz_test_util_doc_test",
  70. crate = ":mz_test_util",
  71. deps = [
  72. "//src/kafka-util:mz_kafka_util",
  73. "//src/ore:mz_ore",
  74. ] + all_crate_deps(
  75. normal = True,
  76. normal_dev = True,
  77. ),
  78. )
  79. extract_cargo_lints(
  80. name = "lints",
  81. manifest = "Cargo.toml",
  82. workspace = "@//:Cargo.toml",
  83. )