mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-13 01:58:54 +00:00
98aef99419
The `ndk` crate enables `raw-window-handle 0.6` by default (because of https://github.com/rust-mobile/ndk/pull/434#issuecomment-1752089087) which might not be used by consumers of the `android-activity` crate at all, or might (still) be a mismatching version. Even if the `rwh_0x` features are additive, figuring that out leads to cryptic errors and it is best to turn off these defaults completely and leave it to the user to turn it back on in their own `[dependencies]` section if desired.
60 lines
1.5 KiB
TOML
60 lines
1.5 KiB
TOML
[package]
|
|
name = "android-activity"
|
|
version = "0.5.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"
|
|
|
|
# 1.68 was when Rust last updated the Android NDK version used to build the
|
|
# standard library which avoids needing the -lunwind workaround in build tools.
|
|
#
|
|
# We depend on cargo-ndk for building which has dropped support for the above
|
|
# linker workaround.
|
|
rust-version = "1.68.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 = []
|
|
native-activity = []
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
jni-sys = "0.3"
|
|
cesu8 = "1"
|
|
jni = "0.21"
|
|
ndk-sys = "0.5.0"
|
|
ndk = { version = "0.8.0", default-features = false }
|
|
ndk-context = "0.1"
|
|
android-properties = "0.2"
|
|
num_enum = "0.7"
|
|
bitflags = "2.0"
|
|
libc = "0.2"
|
|
thiserror = "1"
|
|
|
|
[build-dependencies]
|
|
cc = { version = "1.0", features = ["parallel"] }
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = [
|
|
"aarch64-linux-android",
|
|
"armv7-linux-androideabi",
|
|
"i686-linux-android",
|
|
"x86_64-linux-android",
|
|
]
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dev-dependencies]
|
|
ndk = "0.8.0"
|