diff options
author | Hasini Gunasinghe <hasinitg@google.com> | 2022-05-19 16:24:06 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-05-19 16:24:06 +0000 |
commit | f20684e8daaf7afbaa026f951c13b52c80a1ae49 (patch) | |
tree | 637528226ec2c16943147d948fb1d1597b6f1e70 | |
parent | 525a0dd9ae3269ccd7bd5db2a402195f67c5dd7a (diff) | |
parent | a533ecddca1d4b41575645d0bd386d87dceeb83c (diff) | |
download | ciborium-io-f20684e8daaf7afbaa026f951c13b52c80a1ae49.tar.gz |
Restrict the import of std crate to dylib only. am: eaeefa6490 am: 18506cfdbc am: a533ecddca
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2097481
Change-Id: Iee533f7cbd46284303b0521172130c92b0568bf3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | patches/std.diff | 3 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/patches/std.diff b/patches/std.diff index fcb2329..d27ac7c 100644 --- a/patches/std.diff +++ b/patches/std.diff @@ -5,7 +5,8 @@ index c887e19..0594e8c 100644 @@ -19,6 +19,8 @@ #![deny(clippy::all)] #![deny(clippy::cargo)] - + - + +#[cfg(android_dylib)] +extern crate std; + #[cfg(feature = "alloc")] @@ -18,7 +18,7 @@ #![deny(missing_docs)] #![deny(clippy::all)] #![deny(clippy::cargo)] - +#[cfg(android_dylib)] extern crate std; #[cfg(feature = "alloc")] |