• 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_crosvm_license"],
8    default_team: "trendy_team_foundation_security_rust_pkvm_",
9}
10
11rust_test {
12    name: "hypervisor_test_src_lib",
13    defaults: ["crosvm_defaults"],
14    host_supported: true,
15    crate_name: "hypervisor",
16    cargo_env_compat: true,
17    cargo_pkg_version: "0.1.0",
18    crate_root: "src/lib.rs",
19    test_suites: ["general-tests"],
20    auto_gen_config: true,
21    test_options: {
22        unit_test: false,
23    },
24    edition: "2021",
25    features: [
26        "geniezone",
27        "gunyah",
28    ],
29    rustlibs: [
30        "libanyhow",
31        "libbase_rust",
32        "libbit_field_crosvm",
33        "libbitflags",
34        "libcros_fdt",
35        "libdata_model",
36        "libdowncast_rs",
37        "libfnv",
38        "libkvm_sys",
39        "liblibc",
40        "libonce_cell",
41        "libserde",
42        "libserde_json",
43        "libsnapshot_crosvm",
44        "libsync_rust",
45        "libvm_memory",
46        "libzerocopy",
47    ],
48    proc_macros: [
49        "libenumn",
50        "libhypervisor_test_macro",
51    ],
52}
53
54rust_test {
55    name: "hypervisor_test_tests_dirty_log",
56    defaults: ["crosvm_defaults"],
57    host_supported: true,
58    crate_name: "dirty_log",
59    cargo_env_compat: true,
60    cargo_pkg_version: "0.1.0",
61    crate_root: "tests/dirty_log.rs",
62    test_suites: ["general-tests"],
63    auto_gen_config: true,
64    test_options: {
65        unit_test: false,
66    },
67    edition: "2021",
68    features: [
69        "geniezone",
70        "gunyah",
71    ],
72    rustlibs: [
73        "libanyhow",
74        "libbase_rust",
75        "libbit_field_crosvm",
76        "libbitflags",
77        "libcros_fdt",
78        "libdata_model",
79        "libdowncast_rs",
80        "libfnv",
81        "libhypervisor",
82        "libkvm_sys",
83        "liblibc",
84        "libonce_cell",
85        "libserde",
86        "libserde_json",
87        "libsnapshot_crosvm",
88        "libsync_rust",
89        "libvm_memory",
90        "libzerocopy",
91    ],
92    proc_macros: [
93        "libenumn",
94        "libhypervisor_test_macro",
95    ],
96}
97
98rust_test {
99    name: "hypervisor_test_tests_hypervisor_virtualization",
100    defaults: ["crosvm_defaults"],
101    host_supported: true,
102    crate_name: "hypervisor_virtualization",
103    cargo_env_compat: true,
104    cargo_pkg_version: "0.1.0",
105    crate_root: "tests/hypervisor_virtualization.rs",
106    test_suites: ["general-tests"],
107    auto_gen_config: true,
108    test_options: {
109        unit_test: false,
110    },
111    edition: "2021",
112    features: [
113        "geniezone",
114        "gunyah",
115    ],
116    rustlibs: [
117        "libanyhow",
118        "libbase_rust",
119        "libbit_field_crosvm",
120        "libbitflags",
121        "libcros_fdt",
122        "libdata_model",
123        "libdowncast_rs",
124        "libfnv",
125        "libhypervisor",
126        "libkvm_sys",
127        "liblibc",
128        "libonce_cell",
129        "libserde",
130        "libserde_json",
131        "libsnapshot_crosvm",
132        "libsync_rust",
133        "libvm_memory",
134        "libzerocopy",
135    ],
136    proc_macros: [
137        "libenumn",
138        "libhypervisor_test_macro",
139    ],
140}
141
142rust_test {
143    name: "hypervisor_test_tests_kvm_main",
144    defaults: ["crosvm_defaults"],
145    host_supported: true,
146    crate_name: "kvm",
147    cargo_env_compat: true,
148    cargo_pkg_version: "0.1.0",
149    crate_root: "tests/kvm/main.rs",
150    test_suites: ["general-tests"],
151    auto_gen_config: true,
152    test_options: {
153        unit_test: false,
154    },
155    edition: "2021",
156    features: [
157        "geniezone",
158        "gunyah",
159    ],
160    rustlibs: [
161        "libanyhow",
162        "libbase_rust",
163        "libbit_field_crosvm",
164        "libbitflags",
165        "libcros_fdt",
166        "libdata_model",
167        "libdowncast_rs",
168        "libfnv",
169        "libhypervisor",
170        "libkvm_sys",
171        "liblibc",
172        "libonce_cell",
173        "libserde",
174        "libserde_json",
175        "libsnapshot_crosvm",
176        "libsync_rust",
177        "libvm_memory",
178        "libzerocopy",
179    ],
180    proc_macros: [
181        "libenumn",
182        "libhypervisor_test_macro",
183    ],
184}
185
186rust_test {
187    name: "hypervisor_test_tests_mmio_and_pio",
188    defaults: ["crosvm_defaults"],
189    host_supported: true,
190    crate_name: "mmio_and_pio",
191    cargo_env_compat: true,
192    cargo_pkg_version: "0.1.0",
193    crate_root: "tests/mmio_and_pio.rs",
194    test_suites: ["general-tests"],
195    auto_gen_config: true,
196    test_options: {
197        unit_test: false,
198    },
199    edition: "2021",
200    features: [
201        "geniezone",
202        "gunyah",
203    ],
204    rustlibs: [
205        "libanyhow",
206        "libbase_rust",
207        "libbit_field_crosvm",
208        "libbitflags",
209        "libcros_fdt",
210        "libdata_model",
211        "libdowncast_rs",
212        "libfnv",
213        "libhypervisor",
214        "libkvm_sys",
215        "liblibc",
216        "libonce_cell",
217        "libserde",
218        "libserde_json",
219        "libsnapshot_crosvm",
220        "libsync_rust",
221        "libvm_memory",
222        "libzerocopy",
223    ],
224    proc_macros: [
225        "libenumn",
226        "libhypervisor_test_macro",
227    ],
228}
229
230rust_test {
231    name: "hypervisor_test_tests_read_only_memory",
232    defaults: ["crosvm_defaults"],
233    host_supported: true,
234    crate_name: "read_only_memory",
235    cargo_env_compat: true,
236    cargo_pkg_version: "0.1.0",
237    crate_root: "tests/read_only_memory.rs",
238    test_suites: ["general-tests"],
239    auto_gen_config: true,
240    test_options: {
241        unit_test: false,
242    },
243    edition: "2021",
244    features: [
245        "geniezone",
246        "gunyah",
247    ],
248    rustlibs: [
249        "libanyhow",
250        "libbase_rust",
251        "libbit_field_crosvm",
252        "libbitflags",
253        "libcros_fdt",
254        "libdata_model",
255        "libdowncast_rs",
256        "libfnv",
257        "libhypervisor",
258        "libkvm_sys",
259        "liblibc",
260        "libonce_cell",
261        "libserde",
262        "libserde_json",
263        "libsnapshot_crosvm",
264        "libsync_rust",
265        "libvm_memory",
266        "libzerocopy",
267    ],
268    proc_macros: [
269        "libenumn",
270        "libhypervisor_test_macro",
271    ],
272}
273
274rust_test {
275    name: "hypervisor_test_tests_real_run_addr",
276    defaults: ["crosvm_defaults"],
277    host_supported: true,
278    crate_name: "real_run_addr",
279    cargo_env_compat: true,
280    cargo_pkg_version: "0.1.0",
281    crate_root: "tests/real_run_addr.rs",
282    test_suites: ["general-tests"],
283    auto_gen_config: true,
284    test_options: {
285        unit_test: false,
286    },
287    edition: "2021",
288    features: [
289        "geniezone",
290        "gunyah",
291    ],
292    rustlibs: [
293        "libanyhow",
294        "libbase_rust",
295        "libbit_field_crosvm",
296        "libbitflags",
297        "libcros_fdt",
298        "libdata_model",
299        "libdowncast_rs",
300        "libfnv",
301        "libhypervisor",
302        "libkvm_sys",
303        "liblibc",
304        "libonce_cell",
305        "libserde",
306        "libserde_json",
307        "libsnapshot_crosvm",
308        "libsync_rust",
309        "libvm_memory",
310        "libzerocopy",
311    ],
312    proc_macros: [
313        "libenumn",
314        "libhypervisor_test_macro",
315    ],
316}
317
318rust_test {
319    name: "hypervisor_test_tests_remove_memory",
320    defaults: ["crosvm_defaults"],
321    host_supported: true,
322    crate_name: "remove_memory",
323    cargo_env_compat: true,
324    cargo_pkg_version: "0.1.0",
325    crate_root: "tests/remove_memory.rs",
326    test_suites: ["general-tests"],
327    auto_gen_config: true,
328    test_options: {
329        unit_test: false,
330    },
331    edition: "2021",
332    features: [
333        "geniezone",
334        "gunyah",
335    ],
336    rustlibs: [
337        "libanyhow",
338        "libbase_rust",
339        "libbit_field_crosvm",
340        "libbitflags",
341        "libcros_fdt",
342        "libdata_model",
343        "libdowncast_rs",
344        "libfnv",
345        "libhypervisor",
346        "libkvm_sys",
347        "liblibc",
348        "libonce_cell",
349        "libserde",
350        "libserde_json",
351        "libsnapshot_crosvm",
352        "libsync_rust",
353        "libvm_memory",
354        "libzerocopy",
355    ],
356    proc_macros: [
357        "libenumn",
358        "libhypervisor_test_macro",
359    ],
360}
361
362rust_test {
363    name: "hypervisor_test_tests_tsc_offsets",
364    defaults: ["crosvm_defaults"],
365    host_supported: true,
366    crate_name: "tsc_offsets",
367    cargo_env_compat: true,
368    cargo_pkg_version: "0.1.0",
369    crate_root: "tests/tsc_offsets.rs",
370    test_suites: ["general-tests"],
371    auto_gen_config: true,
372    test_options: {
373        unit_test: false,
374    },
375    edition: "2021",
376    features: [
377        "geniezone",
378        "gunyah",
379    ],
380    rustlibs: [
381        "libanyhow",
382        "libbase_rust",
383        "libbit_field_crosvm",
384        "libbitflags",
385        "libcros_fdt",
386        "libdata_model",
387        "libdowncast_rs",
388        "libfnv",
389        "libhypervisor",
390        "libkvm_sys",
391        "liblibc",
392        "libonce_cell",
393        "libserde",
394        "libserde_json",
395        "libsnapshot_crosvm",
396        "libsync_rust",
397        "libvm_memory",
398        "libzerocopy",
399    ],
400    proc_macros: [
401        "libenumn",
402        "libhypervisor_test_macro",
403    ],
404}
405
406rust_library {
407    name: "libhypervisor",
408    defaults: ["crosvm_defaults"],
409    host_supported: true,
410    crate_name: "hypervisor",
411    cargo_env_compat: true,
412    cargo_pkg_version: "0.1.0",
413    crate_root: "src/lib.rs",
414    edition: "2021",
415    features: [
416        "geniezone",
417        "gunyah",
418    ],
419    rustlibs: [
420        "libanyhow",
421        "libbase_rust",
422        "libbit_field_crosvm",
423        "libbitflags",
424        "libcros_fdt",
425        "libdata_model",
426        "libdowncast_rs",
427        "libfnv",
428        "libkvm_sys",
429        "liblibc",
430        "libonce_cell",
431        "libserde",
432        "libserde_json",
433        "libsnapshot_crosvm",
434        "libsync_rust",
435        "libvm_memory",
436    ],
437    proc_macros: ["libenumn"],
438    apex_available: ["com.android.virt"],
439}
440