blob: defbfb9cb7d74afba3b25909005a3435473eb9c4 [file]
# Copyright 2026 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library")
load("//build/bazel/rules/rust:rustc_test.bzl", "rustc_test")
load("//build/bazel/rules/testing:fx_unittest_package.bzl", "fx_unittest_package")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "packet-encoding",
srcs = ["src/lib.rs"],
build_flags = ["//build/config/rust/lints:deny_unused_results"],
edition = "2024",
visibility = ["//src/connectivity/bluetooth:__subpackages__"],
)
rustc_test(
name = "packet-encoding_test",
build_flags = ["//build/config/rust/lints:deny_unused_results"],
crate = ":packet-encoding",
target_compatible_with = ["@platforms//os:fuchsia"],
deps = [
"//third_party/rust_crates/vendor:assert_matches",
],
)
fx_unittest_package(
name = "packet-encoding-tests",
package_name = "packet-encoding-tests",
unit_tests = [":packet-encoding_test"],
visibility = ["//src/connectivity/bluetooth:__pkg__"],
)