blob: 875b8b57f4cfdb784195404ffc348222683c6fd0 [file] [log] [blame]
Andrew Walbran0038e822023-01-06 14:01:10 +00001diff --git a/Android.bp b/Android.bp
James Farrell3e1c4312024-06-07 15:28:46 +00002index 81021c8..916b74c 100644
Andrew Walbran0038e822023-01-06 14:01:10 +00003--- a/Android.bp
4+++ b/Android.bp
James Farrell3e1c4312024-06-07 15:28:46 +00005@@ -25,22 +25,22 @@ license {
6 rust_library_rlib {
7 name: "libvirtio_drivers",
8 crate_name: "virtio_drivers",
9 cargo_env_compat: true,
Per Larsen39ed1c12024-07-15 08:13:25 +000010 cargo_pkg_version: "0.7.4",
James Farrell3e1c4312024-06-07 15:28:46 +000011 crate_root: "src/lib.rs",
12 edition: "2018",
Andrew Walbran91b97302023-06-13 09:59:17 +000013 features: ["alloc"],
Andrew Walbran0038e822023-01-06 14:01:10 +000014 rustlibs: [
Andrew Walbran91b97302023-06-13 09:59:17 +000015 "libbitflags",
Andrew Walbran0038e822023-01-06 14:01:10 +000016- "liblog_rust",
Steven Morelandd69345d2023-02-06 21:26:14 +000017- "libzerocopy",
Andrew Walbran0038e822023-01-06 14:01:10 +000018+ "liblog_rust_nostd",
Steven Morelandd69345d2023-02-06 21:26:14 +000019+ "libzerocopy_nostd",
Andrew Walbran0038e822023-01-06 14:01:10 +000020 ],
21 apex_available: [
Andrew Walbran7fd303a2023-05-15 14:24:05 +000022 "//apex_available:platform",
James Farrell3e1c4312024-06-07 15:28:46 +000023 "//apex_available:anyapex",
24 ],
25 prefer_rlib: true,
26 no_stdlibs: true,
27 stdlibs: [
28 "libcompiler_builtins.rust_sysroot",
29 "libcore.rust_sysroot",
30@@ -53,13 +53,13 @@ rust_test {
31 cargo_env_compat: true,
Per Larsen39ed1c12024-07-15 08:13:25 +000032 cargo_pkg_version: "0.7.4",
James Farrell3e1c4312024-06-07 15:28:46 +000033 crate_root: "src/lib.rs",
34 test_suites: ["general-tests"],
35 auto_gen_config: true,
36 edition: "2018",
37 features: ["alloc"],
Jakob Vukalovic22645e82023-04-26 15:52:32 +010038 rustlibs: [
Andrew Walbran91b97302023-06-13 09:59:17 +000039 "libbitflags",
Jakob Vukalovic22645e82023-04-26 15:52:32 +010040 "liblog_rust",
Andrew Walbran91b97302023-06-13 09:59:17 +000041- "libzerocopy",
42+ "libzerocopy_nostd",
Jakob Vukalovic22645e82023-04-26 15:52:32 +010043 ],
Andrew Walbran91b97302023-06-13 09:59:17 +000044 }