mirror of
https://github.com/FluxaMedia/fluxa-core.git
synced 2026-08-17 20:46:01 +00:00
fix(core): scope rquickjs bindgen feature to Android only
Adding "bindgen" to rquickjs unconditionally also pulled it into desktop builds (features = ["desktop"] enables plugin-js-engine, which depends on rquickjs), reintroducing the libclang requirement that was deliberately dropped for exactly that reason. Move it to a target.'cfg(target_os = "android")' dependency override so only the Android cross-compile (which lacks prebuilt rquickjs-sys bindings for aarch64-linux-android) pulls it in; host builds are unaffected. Verified: `cargo build --features desktop` succeeds without bindgen, and the Android arm64-v8a cross-compile still enables it.
This commit is contained in:
parent
6c1e6fa4e8
commit
2faa403884
1 changed files with 4 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ p256 = { version = "0.14.0", optional = true }
|
|||
pbkdf2 = { version = "0.13.0", optional = true }
|
||||
rand = { version = "0.10.2", optional = true }
|
||||
regex = "1"
|
||||
rquickjs = { version = "0.12.1", default-features = false, features = ["std", "chrono", "loader", "dyn-load", "either", "indexmap", "futures", "bindgen"], optional = true }
|
||||
rquickjs = { version = "0.12.1", default-features = false, features = ["std", "chrono", "loader", "dyn-load", "either", "indexmap", "futures"], optional = true }
|
||||
rsa = { version = "0.9.10", features = ["sha2"], optional = true }
|
||||
scraper = { version = "0.27.0", optional = true }
|
||||
sha1 = { version = "0.11.0", optional = true }
|
||||
|
|
@ -108,6 +108,9 @@ uniffi = { version = "0.31.1", optional = true }
|
|||
wasm-bindgen = { version = "0.2", optional = true }
|
||||
web-time = "1"
|
||||
|
||||
[target.'cfg(target_os = "android")'.dependencies]
|
||||
rquickjs = { version = "0.12.1", default-features = false, features = ["std", "chrono", "loader", "dyn-load", "either", "indexmap", "futures", "bindgen"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = { version = "0.5", default-features = false }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue