diff options
author | Matthew Maurer <mmaurer@google.com> | 2020-07-07 01:20:56 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-07 01:20:56 +0000 |
commit | fcdc5eed365000762c55e4913fae5c34623bef65 (patch) | |
tree | edf022dd54a322e087cc385a24e21741105f508f | |
parent | 255f10e3b1fc55bc012094223337e9b59a16d066 (diff) | |
parent | 7f8fe6e1f840c23133666052a8d33a17accc9c79 (diff) | |
download | pin-project-fcdc5eed365000762c55e4913fae5c34623bef65.tar.gz |
Support building all variants. am: 27022a622d am: 877ecd6a34 am: 7f8fe6e1f8
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1356188
Change-Id: Ie69fac76fadb96e14d5c3e8a2861ba00bc0eb825
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ // This file is generated by cargo2android.py --run --device. -rust_library_rlib { +rust_library { name: "libpin_project", host_supported: true, crate_name: "pin_project", @@ -45,6 +45,9 @@ #![allow(clippy::mem_replace_with_default, clippy::manual_non_exhaustive)] #![allow(clippy::needless_doctest_main)] +// ANDROID: Use std to allow building as a dylib. +extern crate std; + #[doc(inline)] pub use pin_project_internal::pin_project; |