Add missing patch for extern crate std.
Bug: http://b/339424309
Test: treehugger
Change-Id: I491c846af00a45e55f0fcea9d231295ecad7f301
diff --git a/patches/std.diff b/patches/std.diff
new file mode 100644
index 0000000..317015d
--- /dev/null
+++ b/patches/std.diff
@@ -0,0 +1,15 @@
+diff --git b/src/lib.rs a/src/lib.rs
+index 1fe9b1a..6bf3d1b 100644
+--- b/src/lib.rs
++++ a/src/lib.rs
+@@ -16,6 +16,10 @@
+ #![no_std]
+ #![deny(clippy::undocumented_unsafe_blocks)]
+
++/// Local Android change: Use std to allow building as a dylib.
++#[cfg(android_dylib)]
++extern crate std;
++
+ extern crate alloc;
+ use alloc::{vec, vec::Vec};
+