Files
android-activity/android-activity/Cargo.toml
T
Robert Bragg 483164c333 Replace cesu8 with simd_cesu8 (consistent with jni 0.22.2)
The `cesu8` crate hasn't been updated for 10 years where as the
`simd_cesu8` crate is more actively maintained and is expected to have
better performance in all conditions:

<https://docs.rs/simd_cesu8/latest/simd_cesu8/#benchmarks>

This change is consistent with the `jni` crate which switched to using
`simd_cesu8` in the 0.22.2 release - so this avoids needing to build
two separate crates for mutf8 encoding.

This also addresses the current CI issue that comes from incorrectly
depending on `cesu8 = "1"` instead of `"1.1.0"` (which adds the
java/mutf8 APIs that we used). Previously this went unnoticed because
of the `jni` crate pulling in the correct minimum version.
2026-03-02 15:02:03 +00:00

53 lines
1.4 KiB
TOML

[package]
name = "android-activity"
version = "0.6.0"
edition = "2021"
keywords = ["android", "ndk"]
readme = "../README.md"
homepage = "https://github.com/rust-mobile/android-activity"
repository = "https://github.com/rust-mobile/android-activity"
documentation = "https://docs.rs/android-activity"
description = "Glue for building Rust applications on Android with NativeActivity or GameActivity"
license = "MIT OR Apache-2.0"
include = ["/build.rs", "/android-games-sdk", "/LICENSE*", "/src"]
rust-version = "1.85.0"
[features]
# Note: we don't enable any backend by default since features
# are generally supposed to be additive, while these backends
# are actually mutually exclusive.
#
# In general it's only the final application crate that needs
# to decide on a backend.
default = []
game-activity = ["simd_cesu8"]
native-activity = []
api-level-30 = ["ndk/api-level-30"]
[dependencies]
log = "0.4"
simd_cesu8 = { version = "1.0.1", optional = true }
jni = "0.22.2"
ndk-sys = "0.6.0"
ndk = { version = "0.9.0", default-features = false }
ndk-context = "0.1.1"
android-properties = "0.2"
num_enum = "0.7"
bitflags = "2.0"
libc = "0.2.139"
thiserror = "1"
[build-dependencies]
cc = { version = "1.0.42", features = ["parallel"] }
[package.metadata.docs.rs]
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",
"i686-linux-android",
"x86_64-linux-android",
]
rustdoc-args = ["--cfg", "docsrs"]