1// This file is generated by cargo2android.py --device --run --dependencies --test.
2
3package {
4    default_applicable_licenses: [
5        "external_rust_crates_fallible-iterator_license",
6    ],
7}
8
9// Added automatically by a large-scale-change that took the approach of
10// 'apply every license found to every target'. While this makes sure we respect
11// every license restriction, it may not be entirely correct.
12//
13// e.g. GPL in an MIT project might only apply to the contrib/ directory.
14//
15// Please consider splitting the single license below into multiple licenses,
16// taking care not to lose any license_kind information, and overriding the
17// default license using the 'licenses: [...]' property on targets as needed.
18//
19// For unused files, consider creating a 'fileGroup' with "//visibility:private"
20// to attach the license to, and including a comment whether the files may be
21// used in the current project.
22//
23// large-scale-change included anything that looked like it might be a license
24// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
25//
26// Please consider removing redundant or irrelevant files from 'license_text:'.
27// See: http://go/android-license-faq
28license {
29    name: "external_rust_crates_fallible-iterator_license",
30    visibility: [":__subpackages__"],
31    license_kinds: [
32        "SPDX-license-identifier-Apache-2.0",
33        "SPDX-license-identifier-MIT",
34    ],
35    license_text: [
36        "LICENSE-APACHE",
37        "LICENSE-MIT",
38    ],
39}
40
41rust_defaults {
42    name: "fallible-iterator_defaults",
43    crate_name: "fallible_iterator",
44    srcs: ["src/lib.rs"],
45    test_suites: ["general-tests"],
46    auto_gen_config: true,
47    edition: "2018",
48    features: [
49        "default",
50        "std",
51    ],
52}
53
54rust_test_host {
55    name: "fallible-iterator_host_test_src_lib",
56    defaults: ["fallible-iterator_defaults"],
57}
58
59rust_test {
60    name: "fallible-iterator_device_test_src_lib",
61    defaults: ["fallible-iterator_defaults"],
62}
63
64rust_library {
65    name: "libfallible_iterator",
66    host_supported: true,
67    crate_name: "fallible_iterator",
68    srcs: ["src/lib.rs"],
69    edition: "2018",
70    features: [
71        "default",
72        "std",
73    ],
74}
75