1// This file is generated by cargo_embargo.
2// Do not modify this file because the changes will be overridden on upgrade.
3
4package {
5    default_applicable_licenses: ["external_rust_crates_v4l2r_license"],
6}
7
8rust_library {
9    name: "libv4l2r",
10    host_supported: true,
11    crate_name: "v4l2r",
12    cargo_env_compat: true,
13    cargo_pkg_version: "0.0.4",
14    crate_root: "src/lib.rs",
15    edition: "2021",
16    rustlibs: [
17        "libanyhow",
18        "libbitflags",
19        "liblog_rust",
20        "libnix",
21        "libthiserror",
22    ],
23    proc_macros: ["libenumn"],
24    apex_available: [
25        "//apex_available:platform",
26        "//apex_available:anyapex",
27    ],
28    product_available: true,
29    vendor_available: true,
30    // Bindgen-generated bindings of our local videodev2.h.
31    srcs: [":libv4l2r_bindgen"],
32
33}
34
35rust_test {
36    name: "v4l2r_test_src_lib",
37    host_supported: true,
38    crate_name: "v4l2r",
39    cargo_env_compat: true,
40    cargo_pkg_version: "0.0.4",
41    crate_root: "src/lib.rs",
42    test_suites: ["general-tests"],
43    auto_gen_config: true,
44    test_options: {
45        unit_test: true,
46    },
47    edition: "2021",
48    rustlibs: [
49        "libanyhow",
50        "libbitflags",
51        "libenv_logger",
52        "liblog_rust",
53        "libnix",
54        "libthiserror",
55        "libv4l2r_utils",
56    ],
57    proc_macros: ["libenumn"],
58    // Bindgen-generated bindings of our local videodev2.h.
59    srcs: [":libv4l2r_bindgen"],
60
61}
62