• 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_applicable_licenses: ["external_rust_crates_nix_license"],
8}
9
10// Added automatically by a large-scale-change
11//
12// large-scale-change filtered out the below license kinds as false-positives:
13//   SPDX-license-identifier-GPL-2.0
14// See: http://go/android-license-faq
15license {
16    name: "external_rust_crates_nix_license",
17    visibility: [":__subpackages__"],
18    license_kinds: [
19        "SPDX-license-identifier-MIT",
20    ],
21    license_text: [
22        "LICENSE",
23    ],
24}
25
26rust_library {
27    name: "libnix",
28    host_supported: true,
29    crate_name: "nix",
30    cargo_env_compat: true,
31    cargo_pkg_version: "0.28.0",
32    crate_root: "src/lib.rs",
33    edition: "2021",
34    features: [
35        "event",
36        "feature",
37        "fs",
38        "ioctl",
39        "memoffset",
40        "mman",
41        "mount",
42        "net",
43        "poll",
44        "process",
45        "sched",
46        "signal",
47        "socket",
48        "term",
49        "time",
50        "uio",
51        "user",
52    ],
53    rustlibs: [
54        "libbitflags",
55        "libcfg_if",
56        "liblibc",
57        "libmemoffset",
58    ],
59    apex_available: [
60        "//apex_available:platform",
61        "//apex_available:anyapex",
62    ],
63    product_available: true,
64    vendor_available: true,
65    min_sdk_version: "29",
66    // Manually translated build.rs cfg aliases.
67    target: {
68        host_linux: {
69            cfgs: [
70                "linux",
71                "linux_android",
72            ],
73        },
74        android: {
75            cfgs: [
76                "android",
77                "linux_android",
78            ],
79        },
80    },
81
82}
83