aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: 44a3cf78dc27390337752d6c8047b3886976ef26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// This file is generated by cargo2android.py --run --dependencies --device --tests.
// Do not modify this file as changes will be overridden on upgrade.

package {
    default_applicable_licenses: ["external_rust_crates_tokio-test_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
    name: "external_rust_crates_tokio-test_license",
    visibility: [":__subpackages__"],
    license_kinds: [
        "SPDX-license-identifier-MIT",
    ],
    license_text: [
        "LICENSE",
    ],
}

rust_library {
    name: "libtokio_test",
    host_supported: true,
    crate_name: "tokio_test",
    srcs: ["src/lib.rs"],
    edition: "2018",
    rustlibs: [
        "libasync_stream",
        "libbytes",
        "libfutures_core",
        "libtokio",
        "libtokio_stream",
    ],
}

rust_defaults {
    name: "tokio-test_defaults",
    crate_name: "tokio_test",
    srcs: ["src/lib.rs"],
    test_suites: ["general-tests"],
    auto_gen_config: true,
    edition: "2018",
    rustlibs: [
        "libasync_stream",
        "libbytes",
        "libfutures_core",
        "libfutures_util",
        "libtokio",
        "libtokio_stream",
    ],
}

rust_test_host {
    name: "tokio-test_host_test_src_lib",
    defaults: ["tokio-test_defaults"],
    test_options: {
        unit_test: true,
    },
}

rust_test {
    name: "tokio-test_device_test_src_lib",
    defaults: ["tokio-test_defaults"],
}

rust_defaults {
    name: "tokio-test_defaults_tokio_test",
    crate_name: "tokio_test",
    test_suites: ["general-tests"],
    auto_gen_config: true,
    edition: "2018",
    rustlibs: [
        "libasync_stream",
        "libbytes",
        "libfutures_core",
        "libfutures_util",
        "libtokio",
        "libtokio_stream",
        "libtokio_test",
    ],
}

rust_test_host {
    name: "tokio-test_host_test_tests_block_on",
    defaults: ["tokio-test_defaults_tokio_test"],
    srcs: ["tests/block_on.rs"],
    test_options: {
        unit_test: true,
    },
}

rust_test {
    name: "tokio-test_device_test_tests_block_on",
    defaults: ["tokio-test_defaults_tokio_test"],
    srcs: ["tests/block_on.rs"],
}

rust_test_host {
    name: "tokio-test_host_test_tests_io",
    defaults: ["tokio-test_defaults_tokio_test"],
    srcs: ["tests/io.rs"],
    test_options: {
        unit_test: true,
    },
}

rust_test {
    name: "tokio-test_device_test_tests_io",
    defaults: ["tokio-test_defaults_tokio_test"],
    srcs: ["tests/io.rs"],
}

rust_test_host {
    name: "tokio-test_host_test_tests_macros",
    defaults: ["tokio-test_defaults_tokio_test"],
    srcs: ["tests/macros.rs"],
    test_options: {
        unit_test: true,
    },
}

rust_test {
    name: "tokio-test_device_test_tests_macros",
    defaults: ["tokio-test_defaults_tokio_test"],
    srcs: ["tests/macros.rs"],
}

// dependent_library ["feature_list"]
//   async-stream-0.3.1
//   async-stream-impl-0.3.1
//   autocfg-1.0.1
//   bytes-1.0.1 "default,std"
//   cfg-if-1.0.0
//   futures-core-0.3.15 "alloc,default,std"
//   futures-macro-0.3.15
//   futures-task-0.3.15 "alloc,std"
//   futures-util-0.3.15 "alloc,async-await,async-await-macro,default,futures-macro,proc-macro-hack,proc-macro-nested,slab,std"
//   instant-0.1.9
//   libc-0.2.94 "default,std"
//   lock_api-0.4.4
//   log-0.4.14
//   memchr-2.4.0 "default,std"
//   mio-0.7.11 "default,net,os-ext,os-poll,os-util,tcp,udp,uds"
//   num_cpus-1.13.0
//   once_cell-1.7.2 "alloc,default,race,std"
//   parking_lot-0.11.1 "default"
//   parking_lot_core-0.8.3
//   pin-project-lite-0.2.6
//   pin-utils-0.1.0
//   proc-macro-hack-0.5.19
//   proc-macro-nested-0.1.7
//   proc-macro2-1.0.26 "default,proc-macro"
//   quote-1.0.9 "default,proc-macro"
//   scopeguard-1.1.0
//   signal-hook-registry-1.3.0
//   slab-0.4.3 "default,std"
//   smallvec-1.6.1
//   syn-1.0.72 "clone-impls,default,derive,extra-traits,full,parsing,printing,proc-macro,quote,visit-mut"
//   tokio-1.6.0 "bytes,default,fs,full,io-std,io-util,libc,macros,memchr,mio,net,num_cpus,once_cell,parking_lot,process,rt,rt-multi-thread,signal,signal-hook-registry,sync,test-util,time,tokio-macros,winapi"
//   tokio-macros-1.2.0
//   tokio-stream-0.1.6 "default,time"
//   unicode-xid-0.2.2 "default"