aboutsummaryrefslogtreecommitdiff
path: root/src/untrusted.rs
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2020-12-07 17:22:10 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-12-07 17:22:10 +0000
commit6aa137e85bd01af91bdbe6acb6a614e15bbbae86 (patch)
tree972121bef91fceefc4fe70302f6e75d132c451a4 /src/untrusted.rs
parent64b7afd4a649f7fcfe117c341f44805c77daa9ab (diff)
parente595b63c7542df5941c7701feaf9b1e82919e80e (diff)
downloaduntrusted-6aa137e85bd01af91bdbe6acb6a614e15bbbae86.tar.gz
Add Android.bp am: e595b63c75
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/untrusted/+/1517421 Change-Id: Idd1fa3391149ae0b82344245726a650118296cab
Diffstat (limited to 'src/untrusted.rs')
-rw-r--r--src/untrusted.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/untrusted.rs b/src/untrusted.rs
index 2f88bb4..b9f1439 100644
--- a/src/untrusted.rs
+++ b/src/untrusted.rs
@@ -102,6 +102,9 @@
)]
#![no_std]
+// ANDROID: Unconditionally use std to allow building as a dylib.
+extern crate std;
+
/// A wrapper around `&'a [u8]` that helps in writing panic-free code.
///
/// No methods of `Input` will ever panic.