diff options
author | Matthew Maurer <mmaurer@google.com> | 2020-07-07 00:50:55 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-07-07 00:50:55 +0000 |
commit | 7f8fe6e1f840c23133666052a8d33a17accc9c79 (patch) | |
tree | edf022dd54a322e087cc385a24e21741105f508f | |
parent | c67493b90554817549d5ae0adb2e7bd00b5e97d1 (diff) | |
parent | 877ecd6a34c5af7d0b1661a3fbb47d36ac65665e (diff) | |
download | pin-project-7f8fe6e1f840c23133666052a8d33a17accc9c79.tar.gz |
Support building all variants. am: 27022a622d am: 877ecd6a34
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1356188
Change-Id: I0fa6c16e5374bae09177682fc126b48b8d2f7091
-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; |