diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-09 22:49:56 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-09 22:49:56 +0000 |
commit | 638e33bd399281010054cb2be13f04d1ce0918e6 (patch) | |
tree | dd2ba2ec30e89bb3d1add9b900a4c774a896d293 | |
parent | f9740e3b56978ffeeaf23557aaba84c59a9822bb (diff) | |
parent | 5e5a5f79ab8c379ad372bdfcf0d56388037055c8 (diff) | |
download | cast-main.tar.gz |
-rw-r--r-- | patches/std.diff | 14 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/patches/std.diff b/patches/std.diff new file mode 100644 index 0000000..76f18e6 --- /dev/null +++ b/patches/std.diff @@ -0,0 +1,14 @@ +diff --git a/src/lib.rs b/src/lib.rs +index f1db3fc..40d3c91 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -105,6 +105,9 @@ use std::error; + #[cfg(test)] + mod test; + ++#[cfg(android_dylib)] ++extern crate std; ++ + /// Cast errors + #[derive(Clone, Copy, Debug, Eq, PartialEq)] + pub enum Error { @@ -105,6 +105,9 @@ use std::error; #[cfg(test)] mod test; +#[cfg(android_dylib)] +extern crate std; + /// Cast errors #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Error { |