From 4e6a5dc929bebf7e670b790a260e4792cea37b55 Mon Sep 17 00:00:00 2001 From: Kayos Date: Sun, 24 May 2026 17:36:44 -0700 Subject: [PATCH] =?UTF-8?q?Phase=207=20fix=20=E2=80=94=20pin=20rquickjs-sy?= =?UTF-8?q?s=20bindgen=20for=20Android=20cross-compile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rquickjs-sys 0.11 ships pre-generated bindings only for x86_64 hosts; Android targets need bindgen at build time. Direct-dep with the feature flag so cargo's feature resolver lifts it to the transitive use through strawcore-core → rquickjs → rquickjs-sys. --- rust/strawcore/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/strawcore/Cargo.toml b/rust/strawcore/Cargo.toml index 00d6ebc2f..f693973ee 100644 --- a/rust/strawcore/Cargo.toml +++ b/rust/strawcore/Cargo.toml @@ -26,6 +26,12 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] } # (which has to stay `strawcore` so the .so name + Kotlin loadLibrary # call keep working). strawcore-core = { path = "../../../strawcore" } +# rquickjs-sys is pulled transitively by strawcore-core → rquickjs. The +# Android target has no pre-generated bindings — flip on the `bindgen` +# feature so cargo regenerates at build time. Direct dep so the feature +# flag propagates (cargo's unified feature resolver lifts this to the +# transitive use). Crafting-table has libclang preinstalled. +rquickjs-sys = { version = "0.11", default-features = false, features = ["bindgen"] } # Error glue. thiserror = "1" # Single-threaded init for the runtime + extractor singletons.