123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- # Code generated by cargo-gazelle DO NOT EDIT
- # Copyright Materialize, Inc. and contributors. All rights reserved.
- #
- # Use of this software is governed by the Business Source License
- # included in the LICENSE file at the root of this repository.
- #
- # As of the Change Date specified in that file, in accordance with
- # the Business Source License, use of this software will be governed
- # by the Apache License, Version 2.0.
- load("@crates_io//:defs.bzl", "aliases", "all_crate_deps")
- load("@rules_rust//cargo:defs.bzl", "extract_cargo_lints")
- load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_doc_test", "rust_library", "rust_test")
- package(default_visibility = ["//visibility:public"])
- rust_library(
- name = "cargo_gazelle",
- srcs = glob(["src/**/*.rs"]),
- aliases = aliases(
- normal = True,
- proc_macro = True,
- ),
- compile_data = [],
- crate_features = ["default"],
- data = [],
- lint_config = ":lints",
- proc_macro_deps = [] + all_crate_deps(proc_macro = True),
- rustc_env = {},
- rustc_flags = [],
- version = "0.0.0",
- deps = [] + all_crate_deps(normal = True),
- )
- alias(
- name = "cargo-gazelle",
- actual = "cargo_gazelle",
- )
- rust_test(
- name = "cargo_gazelle_lib_tests",
- size = "medium",
- aliases = aliases(
- normal = True,
- normal_dev = True,
- proc_macro = True,
- proc_macro_dev = True,
- ),
- compile_data = [],
- crate = ":cargo_gazelle",
- crate_features = ["default"],
- data = [],
- env = {},
- lint_config = ":lints",
- proc_macro_deps = [] + all_crate_deps(
- proc_macro = True,
- proc_macro_dev = True,
- ),
- rustc_env = {},
- rustc_flags = [],
- version = "0.0.0",
- deps = [] + all_crate_deps(
- normal = True,
- normal_dev = True,
- ),
- )
- rust_doc_test(
- name = "cargo_gazelle_doc_test",
- crate = ":cargo_gazelle",
- deps = [] + all_crate_deps(
- normal = True,
- normal_dev = True,
- ),
- )
- rust_binary(
- name = "main",
- srcs = glob(["src/**/*.rs"]),
- aliases = aliases(
- normal = True,
- proc_macro = True,
- ),
- compile_data = [],
- crate_root = "src/bin/main.rs",
- data = [],
- env = {},
- features = [],
- lint_config = ":lints",
- proc_macro_deps = [] + all_crate_deps(proc_macro = True),
- rustc_env = {},
- rustc_flags = ["-Copt-level=3"] + select({
- "@//misc/bazel/platforms:xlang_lto_enabled": ["-Clinker-plugin-lto"],
- "//conditions:default": [],
- }),
- version = "0.0.0",
- deps = [":cargo_gazelle"] + all_crate_deps(normal = True),
- )
- extract_cargo_lints(
- name = "lints",
- manifest = "Cargo.toml",
- workspace = "@//:Cargo.toml",
- )
|