BUILD.bazel 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_binary")
  13. package(default_visibility = ["//visibility:public"])
  14. rust_binary(
  15. name = "metabase_smoketest",
  16. srcs = glob(["src/**/*.rs"]),
  17. aliases = aliases(
  18. normal = True,
  19. proc_macro = True,
  20. ),
  21. compile_data = [],
  22. crate_root = "src/bin/metabase-smoketest.rs",
  23. data = [],
  24. env = {},
  25. features = [],
  26. lint_config = ":lints",
  27. proc_macro_deps = [] + all_crate_deps(proc_macro = True),
  28. rustc_env = {},
  29. rustc_flags = [] + select({
  30. "@//misc/bazel/platforms:xlang_lto_enabled": ["-Clinker-plugin-lto"],
  31. "//conditions:default": [],
  32. }),
  33. version = "0.0.0",
  34. deps = [
  35. "//src/metabase:mz_metabase",
  36. "//src/ore:mz_ore",
  37. ] + all_crate_deps(normal = True),
  38. )
  39. extract_cargo_lints(
  40. name = "lints",
  41. manifest = "Cargo.toml",
  42. workspace = "@//:Cargo.toml",
  43. )