1// Copyright 2023 The Android Open Source Project
2
3package {
4    default_applicable_licenses: ["Android-Apache-2.0"],
5}
6
7rust_defaults {
8    name: "libbootimg_private_defaults",
9    srcs: ["bootimg_priv.rs"],
10    rustlibs: ["libzerocopy"],
11    lints: "none",
12}
13
14rust_library {
15    name: "libbootimg_private",
16    crate_name: "bootimg_private",
17    vendor_available: true,
18    defaults: ["libbootimg_private_defaults"],
19    host_supported: true,
20    visibility: [":__subpackages__"],
21}
22
23rust_test_host {
24    name: "libbootimg_tests_priv",
25    auto_gen_config: true,
26    defaults: ["libbootimg_private_defaults"],
27}
28
29rust_defaults {
30    name: "libbootimg_defaults",
31    srcs: ["bootimg.rs"],
32    rustlibs: [
33        "libzerocopy",
34        "libbootimg_private",
35    ],
36}
37
38rust_library {
39    name: "libbootimg",
40    crate_name: "bootimg",
41    vendor_available: true,
42    host_supported: true,
43    defaults: ["libbootimg_defaults"],
44}
45
46rust_test_host {
47    name: "libbootimg_tests",
48    auto_gen_config: true,
49    defaults: ["libbootimg_defaults"],
50}
51