aboutsummaryrefslogtreecommitdiff
path: root/src/untrusted.rs
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2020-12-04 14:18:07 +0100
committerJeff Vander Stoep <jeffv@google.com>2020-12-04 14:18:07 +0100
commite595b63c7542df5941c7701feaf9b1e82919e80e (patch)
tree972121bef91fceefc4fe70302f6e75d132c451a4 /src/untrusted.rs
parent10c89c58562f8e90c25e7573096e71dc83dc4786 (diff)
downloaduntrusted-e595b63c7542df5941c7701feaf9b1e82919e80e.tar.gz
Add Android.bp
And patch file to include std crate. Test: mm Bug: 155855709 Change-Id: I3c662624df1cf78a089829e9acacf02923c94912
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.