• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2025, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["system_see_authmgr_license"],
17}
18
19rust_library {
20    name: "libauthmgr_common",
21    crate_name: "authmgr_common",
22    srcs: ["src/lib.rs"],
23    host_supported: true,
24    vendor_available: true,
25    rustlibs: [
26        "libauthgraph_core",
27        "libcoset",
28        "libdice_policy",
29        "liblog_rust",
30        "libnum_traits",
31    ],
32    proc_macros: [
33        "libnum_derive",
34    ],
35}
36
37rust_test {
38    name: "libauthmgr_common_unit_test",
39    crate_name: "authmgr_common_unit_test",
40    srcs: ["src/lib.rs"],
41    host_supported: true,
42    rustlibs: [
43        "libauthgraph_boringssl",
44        "libauthgraph_core_test",
45        "libauthgraph_core",
46        "libauthmgr_common",
47        "libauthmgr_common_util",
48        "libcoset",
49        "libdice_policy",
50        "libdice_policy_builder",
51        "libnum_traits",
52    ],
53    proc_macros: [
54        "libnum_derive",
55    ],
56    test_suites: ["general-tests"],
57}
58