unplugged-system/external/rust/crates/static_assertions/patches/dylib-std.patch

15 lines
309 B
Diff
Raw Normal View History

diff --git a/src/lib.rs b/src/lib.rs
index aa7e227..df47529 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -101,6 +101,9 @@
)]
#![no_std]
+#[cfg(android_dylib)]
+extern crate std;
+
#[cfg(feature = "proc_static_assertions")]
extern crate proc_static_assertions;
#[cfg(feature = "proc_static_assertions")]