mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 05:12:00 +02:00
chore(rust): update crypto, network and UniFFI dependencies
This commit is contained in:
@@ -27,9 +27,8 @@ fi
|
||||
|
||||
cd "$RUST_BACKEND_DIR"
|
||||
export CARGO_TARGET_DIR="$RUST_BACKEND_DIR/target"
|
||||
# AES 0.8 requires this opt-in on ARM64. Runtime detection retains the software
|
||||
# fallback on CPUs without AES; do not force target-feature=+aes on Android.
|
||||
export RUSTFLAGS="${RUSTFLAGS:-} --cfg aes_armv8"
|
||||
# AES 0.9 detects ARM64 AES at runtime and retains the software fallback;
|
||||
# do not force target-feature=+aes on Android.
|
||||
|
||||
case "$(uname -s)" in
|
||||
Darwin)
|
||||
@@ -44,10 +43,10 @@ esac
|
||||
# Build separately from bindgen so CLI and cargo-metadata features are not
|
||||
# enabled in the shipped library through Cargo's workspace feature unification.
|
||||
cargo build --locked --release -p spotiflac-mobile
|
||||
# Bindgen discovers each crate's uniffi.toml through Cargo metadata.
|
||||
for language in kotlin swift; do
|
||||
cargo run --locked -p spotiflac-bindgen -- generate \
|
||||
--library "$HOST_LIBRARY" \
|
||||
--config crates/mobile/uniffi.toml \
|
||||
--language "$language" \
|
||||
--out-dir "$CARGO_TARGET_DIR/bindings/$language" \
|
||||
--no-format
|
||||
|
||||
@@ -35,8 +35,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
|
||||
cd "$PROJECT_DIR/rust_backend"
|
||||
# Exercise the same runtime-detected AES backend as the release build.
|
||||
export RUSTFLAGS="${RUSTFLAGS:-} --cfg aes_armv8"
|
||||
# AES 0.9 uses the same runtime-detected backend as the release build.
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||
cargo test --workspace --locked
|
||||
|
||||
Reference in New Issue
Block a user