diff options
-rw-r--r-- | Android.bp | 10 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..1b72c5e --- /dev/null +++ b/Android.bp @@ -0,0 +1,10 @@ +// This file is generated by cargo2android.py --run --device --dependencies. + +rust_library { + name: "libunicode_segmentation", + // has rustc warnings + host_supported: true, + crate_name: "unicode_segmentation", + srcs: ["src/lib.rs"], + edition: "2015", +} @@ -55,7 +55,7 @@ #![no_std] -#[cfg(test)] +// ANDROID: Always import std to enable building as a dylib #[macro_use] extern crate std; |