• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    default_team: "trendy_team_android_rust",
8    default_applicable_licenses: ["external_rust_crates_p9_license"],
9}
10
11license {
12    name: "external_rust_crates_p9_license",
13    visibility: [":__subpackages__"],
14    license_kinds: [
15        "SPDX-license-identifier-BSD-3-Clause",
16    ],
17    license_text: [
18        "LICENSE",
19    ],
20}
21
22rust_library {
23    name: "libp9",
24    host_supported: true,
25    crate_name: "p9",
26    cargo_env_compat: true,
27    cargo_pkg_version: "0.2.3",
28    crate_root: "src/lib.rs",
29    edition: "2021",
30    rustlibs: [
31        "liblibc",
32        "libserde",
33    ],
34    proc_macros: ["libp9_wire_format_derive"],
35    compile_multilib: "first",
36    apex_available: [
37        "//apex_available:platform",
38        "//apex_available:anyapex",
39    ],
40    product_available: true,
41    vendor_available: true,
42    // Doesn't compile on 32-bit targets.
43    target: {
44        android_arm: {
45            enabled: false,
46        },
47        android_x86: {
48            enabled: false,
49        },
50    },
51}
52
53rust_test {
54    name: "p9_test_src_lib",
55    host_supported: true,
56    crate_name: "p9",
57    cargo_env_compat: true,
58    cargo_pkg_version: "0.2.3",
59    crate_root: "src/lib.rs",
60    test_suites: ["general-tests"],
61    auto_gen_config: true,
62    test_options: {
63        unit_test: true,
64    },
65    edition: "2021",
66    rustlibs: [
67        "liblibc",
68        "libserde",
69    ],
70    proc_macros: ["libp9_wire_format_derive"],
71    // Doesn't compile on 32-bit targets.
72    target: {
73        android_arm: {
74            enabled: false,
75        },
76        android_x86: {
77            enabled: false,
78        },
79    },
80}
81