| # |
| # Copyright (c) 2024 Boeing |
| # |
| # This program and the accompanying materials are made |
| # available under the terms of the Eclipse Public License 2.0 |
| # which is available at https://www.eclipse.org/legal/epl-2.0/ |
| # |
| # SPDX-License-Identifier: EPL-2.0 |
| # |
| # Contributors: |
| # Boeing - initial API and implementation |
| # |
| load("@crates//:defs.bzl", "all_crate_deps") |
| load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_doc", "rust_clippy", "rust_test") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| rust_binary( |
| name = "bat", |
| srcs = glob(['src/**/*.rs']), |
| deps = all_crate_deps(normal = True)+[ |
| "//cli/applicability:applicability", |
| "//cli/applicability_parser:applicability_parser" |
| ], |
| crate_features = [ |
| "default", |
| "derive", |
| "serde" |
| ] |
| ) |
| |
| rust_test( |
| name="bat_test", |
| crate=":bat", |
| size="small" |
| ) |
| |
| rust_doc( |
| name="bat_doc", |
| crate=":bat" |
| ) |
| |
| rust_clippy( |
| name="bat_clippy", |
| testonly = True, |
| deps=[ |
| ":bat" |
| ] |
| ) |