diff options
author | Hasini Gunasinghe <hasinitg@google.com> | 2022-05-19 17:06:54 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-05-19 17:06:54 +0000 |
commit | d7c8d4e625de1b5e9118e93f680ff1e3b1099b34 (patch) | |
tree | 36f779c2efb7e7a01cd1544bc91ea42afabf6e22 | |
parent | d9b77fd7cfd092afd5776b062fb2de36ba7c5218 (diff) | |
parent | 93da6338b3a70320fc5fd9ba59b3305138d6ca87 (diff) | |
download | unicode-xid-d7c8d4e625de1b5e9118e93f680ff1e3b1099b34.tar.gz |
Restrict the import of std crate to dylib only. am: b8d1a747d4 am: 51fe992c94 am: 1bf4c71ef0 am: 93da6338b3
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/unicode-xid/+/2098651
Change-Id: Ibb9cb4218825528fc4d193dd23d7a44e8e2e1d66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | patches/std.diff | 1 | ||||
-rw-r--r-- | src/lib.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/patches/std.diff b/patches/std.diff index 73141c0..8237bc9 100644 --- a/patches/std.diff +++ b/patches/std.diff @@ -11,6 +11,7 @@ index 01c81e2..927fc9a 100644 +// #[cfg(test)] +// ANDROID: Unconditionally use std to allow building as a dylib. +// #[macro_use] ++#[cfg(android_dylib)] extern crate std; #[cfg(feature = "bench")] @@ -40,6 +40,7 @@ // #[cfg(test)] // ANDROID: Unconditionally use std to allow building as a dylib. // #[macro_use] +#[cfg(android_dylib)] extern crate std; #[cfg(feature = "bench")] |