1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_bt_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_bt_license"],
8}
9
10rust_library {
11    name: "libbt_hci",
12    defaults: ["gd_rust_defaults"],
13    crate_name: "bt_hci",
14    srcs: ["src/lib.rs"],
15    edition: "2018",
16    rustlibs: [
17        "libbt_hal",
18        "libbt_facade_proto",
19        "libbt_packets",
20        "libbytes",
21        "libfutures",
22        "libgrpcio",
23        "libnum_traits",
24        "libthiserror",
25        "libtokio",
26        "libprotobuf",
27        "libgddi",
28        "liblog_rust",
29        "libbt_common",
30        "libbt_hci_custom_types",
31        "libbt_facade_helpers",
32    ],
33    proc_macros: [
34        "libnum_derive",
35    ],
36}
37
38rust_library {
39    name: "libbt_hci_custom_types",
40    defaults: ["gd_rust_defaults"],
41    crate_name: "bt_hci_custom_types",
42    srcs: ["custom_types/lib.rs"],
43    edition: "2018",
44}
45