1// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace --no-subdir. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "external_crosvm_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-BSD 10 default_applicable_licenses: ["external_crosvm_license"], 11} 12 13rust_defaults { 14 name: "bit_field_defaults", 15 defaults: ["crosvm_defaults"], 16 crate_name: "bit_field", 17 srcs: ["src/lib.rs"], 18 test_suites: ["general-tests"], 19 auto_gen_config: true, 20 edition: "2018", 21 proc_macros: ["libbit_field_derive"], 22} 23 24rust_test_host { 25 name: "bit_field_host_test_src_lib", 26 defaults: ["bit_field_defaults"], 27 test_options: { 28 unit_test: true, 29 }, 30} 31 32rust_test { 33 name: "bit_field_device_test_src_lib", 34 defaults: ["bit_field_defaults"], 35} 36 37rust_defaults { 38 name: "bit_field_defaults_bit_field", 39 defaults: ["crosvm_defaults"], 40 crate_name: "bit_field", 41 test_suites: ["general-tests"], 42 auto_gen_config: true, 43 edition: "2018", 44 rustlibs: [ 45 "libbit_field", 46 ], 47 proc_macros: ["libbit_field_derive"], 48} 49 50rust_test_host { 51 name: "bit_field_host_test_tests_test_enum", 52 defaults: ["bit_field_defaults_bit_field"], 53 srcs: ["tests/test_enum.rs"], 54 test_options: { 55 unit_test: true, 56 }, 57} 58 59rust_test { 60 name: "bit_field_device_test_tests_test_enum", 61 defaults: ["bit_field_defaults_bit_field"], 62 srcs: ["tests/test_enum.rs"], 63} 64 65rust_test_host { 66 name: "bit_field_host_test_tests_test_tuple_struct", 67 defaults: ["bit_field_defaults_bit_field"], 68 srcs: ["tests/test_tuple_struct.rs"], 69 test_options: { 70 unit_test: true, 71 }, 72} 73 74rust_test { 75 name: "bit_field_device_test_tests_test_tuple_struct", 76 defaults: ["bit_field_defaults_bit_field"], 77 srcs: ["tests/test_tuple_struct.rs"], 78} 79 80rust_library { 81 name: "libbit_field", 82 defaults: ["crosvm_defaults"], 83 host_supported: true, 84 crate_name: "bit_field", 85 srcs: ["src/lib.rs"], 86 edition: "2018", 87 proc_macros: ["libbit_field_derive"], 88} 89 90// dependent_library ["feature_list"] 91// proc-macro2-1.0.26 "default,proc-macro" 92// quote-1.0.9 "default,proc-macro" 93// syn-1.0.70 "clone-impls,default,derive,parsing,printing,proc-macro,quote" 94// unicode-xid-0.2.1 "default" 95