• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_nix_license"],
6}
7
8// Added automatically by a large-scale-change
9//
10// large-scale-change filtered out the below license kinds as false-positives:
11//   SPDX-license-identifier-GPL-2.0
12// See: http://go/android-license-faq
13license {
14    name: "external_rust_crates_nix_license",
15    visibility: [":__subpackages__"],
16    license_kinds: [
17        "SPDX-license-identifier-MIT",
18    ],
19    license_text: [
20        "LICENSE",
21    ],
22}
23
24rust_library {
25    name: "libnix",
26    host_supported: true,
27    crate_name: "nix",
28    cargo_env_compat: true,
29    cargo_pkg_version: "0.26.2",
30    srcs: ["src/lib.rs"],
31    edition: "2018",
32    features: [
33        "acct",
34        "aio",
35        "default",
36        "dir",
37        "env",
38        "event",
39        "feature",
40        "fs",
41        "hostname",
42        "inotify",
43        "ioctl",
44        "kmod",
45        "memoffset",
46        "mman",
47        "mount",
48        "mqueue",
49        "net",
50        "personality",
51        "pin-utils",
52        "poll",
53        "process",
54        "pthread",
55        "ptrace",
56        "quota",
57        "reboot",
58        "resource",
59        "sched",
60        "signal",
61        "socket",
62        "term",
63        "time",
64        "ucontext",
65        "uio",
66        "user",
67        "zerocopy",
68    ],
69    rustlibs: [
70        "libbitflags",
71        "libcfg_if",
72        "liblibc",
73        "libmemoffset",
74        "libpin_utils",
75        "libstatic_assertions",
76    ],
77    apex_available: [
78        "//apex_available:platform",
79        "com.android.btservices",
80        "com.android.compos",
81        "com.android.virt",
82    ],
83    product_available: true,
84    vendor_available: true,
85    min_sdk_version: "29",
86}
87