| # |
| # 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_library", "rust_doc", "rust_clippy", "rust_test", "rust_doc_test") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| rust_library( |
| name = "applicability", |
| srcs = glob(['src/**/*.rs']), |
| deps = all_crate_deps(normal = True), |
| crate_features = [ |
| "default", |
| "derive", |
| "serde" |
| ] |
| ) |
| |
| rust_test( |
| name="applicability_test", |
| crate=":applicability", |
| size="small" |
| ) |
| |
| rust_doc( |
| name="applicability_doc", |
| crate=":applicability" |
| ) |
| |
| rust_doc_test( |
| name="applicability_doc_test", |
| crate=":applicability", |
| size="small" |
| ) |
| |
| rust_clippy( |
| name="applicability_clippy", |
| testonly = True, |
| deps=[ |
| ":applicability" |
| ] |
| ) |