mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-16 19:48:54 +00:00
2a9ed44d93
I was mistaken recently, thinking that cpal's dev-dependency on ndk-glue was somehow being inherited by the example. Actually the real issue was that cpal 0.13.5 has a regular _dependency_ on ndk-glue, which is a much simpler explanation for why we were seeing a crash. This updates the example to just use the master branch of cpal, which we'll need until there is a new release of cpal.
23 lines
599 B
TOML
23 lines
599 B
TOML
[package]
|
|
name = "agdk-cpal"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
android_logger = "0.11.0"
|
|
android-activity = { path="../../android-activity", features = ["game-activity"] }
|
|
cpal = "0.13"
|
|
atomic_float = "0.1"
|
|
anyhow = "1"
|
|
|
|
# We currently need to use cpal master which doesn't have ndk-glue as a dependency
|
|
# and is also updated to ndk 0.7
|
|
[patch.crates-io]
|
|
cpal = { git = "https://github.com/RustAudio/cpal", commit = "9b7bb339650" }
|
|
|
|
[lib]
|
|
name="main"
|
|
crate_type=["cdylib"] |