• 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    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_crosvm_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-BSD
12    default_applicable_licenses: ["external_crosvm_license"],
13}
14
15rust_test {
16    name: "jail_test_src_lib",
17    defaults: ["crosvm_inner_defaults"],
18    host_supported: true,
19    crate_name: "jail",
20    cargo_env_compat: true,
21    cargo_pkg_version: "0.1.0",
22    srcs: ["src/lib.rs"],
23    test_suites: ["general-tests"],
24    auto_gen_config: true,
25    test_options: {
26        unit_test: true,
27    },
28    edition: "2021",
29    rustlibs: [
30        "libanyhow",
31        "libbase_rust",
32        "libcfg_if",
33        "liblibc",
34        "libminijail_rust",
35        "libonce_cell",
36        "libserde",
37        "libserde_keyvalue",
38        "libstatic_assertions",
39        "libzerocopy",
40    ],
41}
42
43rust_library {
44    name: "libjail",
45    defaults: ["crosvm_inner_defaults"],
46    host_supported: true,
47    crate_name: "jail",
48    cargo_env_compat: true,
49    cargo_pkg_version: "0.1.0",
50    srcs: ["src/lib.rs"],
51    edition: "2021",
52    rustlibs: [
53        "libanyhow",
54        "libbase_rust",
55        "liblibc",
56        "libminijail_rust",
57        "libonce_cell",
58        "libserde",
59        "libserde_keyvalue",
60        "libstatic_assertions",
61        "libzerocopy",
62    ],
63}
64