// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace. package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "external_crosvm_license" // to get the below license kinds: // SPDX-license-identifier-BSD default_applicable_licenses: ["external_crosvm_license"], } rust_defaults { name: "cros_async_defaults", defaults: ["crosvm_defaults"], crate_name: "cros_async", // has rustc warnings srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, edition: "2018", rustlibs: [ "libasync_task", "libdata_model", "libfutures", "libfutures_executor", "libfutures_util", "libintrusive_collections", "libio_uring", "liblibc", "libpin_utils", "libslab", "libsync_rust", "libsys_util", "libsyscall_defines", "libtempfile", "libthiserror", "libvm_memory", ], proc_macros: [ "libasync_trait", "libpaste", ], } rust_test_host { name: "cros_async_host_test_src_lib", defaults: ["cros_async_defaults"], test_options: { unit_test: true, }, } rust_test { name: "cros_async_device_test_src_lib", defaults: ["cros_async_defaults"], } rust_library { name: "libcros_async", defaults: ["crosvm_defaults"], // has rustc warnings host_supported: true, crate_name: "cros_async", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ "libasync_task", "libdata_model", "libfutures", "libintrusive_collections", // added manually "libio_uring", "liblibc", "libpin_utils", "libslab", "libsync_rust", "libsys_util", "libsyscall_defines", "libthiserror", ], proc_macros: [ "libasync_trait", "libpaste", ], } // dependent_library ["feature_list"] // ../assertions/src/lib.rs // ../base/src/lib.rs // ../data_model/src/lib.rs // ../io_uring/src/lib.rs // ../sync/src/lib.rs // ../sys_util/poll_token_derive/poll_token_derive.rs // ../sys_util/src/lib.rs // ../syscall_defines/src/lib.rs // ../tempfile/src/lib.rs // ../vm_memory/src/lib.rs // async-task-4.0.3 "default,std" // async-trait-0.1.45 // futures-0.3.13 "alloc,async-await,default,executor,futures-executor,std" // futures-channel-0.3.13 "alloc,futures-sink,sink,std" // futures-core-0.3.13 "alloc,std" // futures-executor-0.3.13 "std" // futures-io-0.3.13 "std" // futures-macro-0.3.13 // futures-sink-0.3.13 "alloc,std" // futures-task-0.3.13 "alloc,std" // futures-util-0.3.13 "alloc,async-await,async-await-macro,channel,futures-channel,futures-io,futures-macro,futures-sink,io,memchr,proc-macro-hack,proc-macro-nested,sink,slab,std" // libc-0.2.87 "default,std" // memchr-2.3.4 "default,std" // paste-1.0.4 // 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.24 "default,proc-macro" // quote-1.0.9 "default,proc-macro" // serde-1.0.123 "default,derive,serde_derive,std" // serde_derive-1.0.123 "default" // slab-0.4.2 // syn-1.0.61 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut" // thiserror-1.0.24 // thiserror-impl-1.0.24 // unicode-xid-0.2.1 "default"