diff --git a/scripts/cargo2android.py b/scripts/cargo2android.py index 750932aa2..ce6096dc2 100755 --- a/scripts/cargo2android.py +++ b/scripts/cargo2android.py @@ -142,7 +142,7 @@ CARGO_TEST_LIST_END_PAT = re.compile('^(\d+) tests?, (\d+) benchmarks$') CARGO2ANDROID_RUNNING_PAT = re.compile('^### Running: .*$') # Rust package name with suffix -d1.d2.d3(+.*)?. -VERSION_SUFFIX_PAT = re.compile(r'^(.*)-[0-9]+\.[0-9]+\.[0-9]+(?:\+.*)?$') +VERSION_SUFFIX_PAT = re.compile(r'^(.*)-[0-9]+\.[0-9]+\.[0-9]+(?:-(alpha|beta)\.[0-9]+)?(?:\+.*)?$') # Crate types corresponding to a C ABI library C_LIBRARY_CRATE_TYPES = ['staticlib', 'cdylib']