blob: d318d0ef6b04b45e5646b691152547ef5c465ed9 [file] [log] [blame]
Andrew Walbrand0ef4002022-05-16 16:14:10 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Jiyong Parkde13d402024-08-26 22:32:46 +09005rust_defaults {
6 name: "libvmclient.default",
Andrew Walbrand0ef4002022-05-16 16:14:10 +00007 crate_name: "vmclient",
Nikita Ioffeda1b2732023-09-04 13:46:56 +01008 defaults: ["avf_build_flags_rust"],
Andrew Walbrand0ef4002022-05-16 16:14:10 +00009 srcs: ["src/lib.rs"],
10 edition: "2021",
11 rustlibs: [
Alan Stokes2bead0d2022-09-05 16:58:34 +010012 "android.system.virtualizationcommon-rust",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000013 "android.system.virtualizationservice-rust",
Andrew Walbran1072cc02022-05-23 14:47:58 +000014 "libbinder_rs",
David Brazdil46446062022-10-25 13:18:18 +010015 "libcommand_fds",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000016 "liblog_rust",
David Brazdil46446062022-10-25 13:18:18 +010017 "libnix",
Andrew Walbran7eb5ca42022-08-08 15:33:34 +000018 "librpcbinder_rs",
David Brazdil46446062022-10-25 13:18:18 +010019 "libshared_child",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000020 "libthiserror",
21 ],
Andrew Walbrand0ef4002022-05-16 16:14:10 +000022 apex_available: [
23 "com.android.compos",
Aidan Wolterbb91a6b2024-07-01 15:42:20 +000024 "com.android.microfuchsia",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000025 "com.android.virt",
Inseob Kimf333ebc2024-09-13 14:01:05 +090026 "//apex_available:platform",
Andrew Walbrand0ef4002022-05-16 16:14:10 +000027 ],
28}
Jiyong Parkde13d402024-08-26 22:32:46 +090029
30rust_library {
31 name: "libvmclient",
32 defaults: ["libvmclient.default"],
33}
34
35rust_ffi_static {
36 name: "libvmclient.ffi",
37 defaults: ["libvmclient.default"],
38}