Merge FreeBSD build fix

Harvested from PR #5254 by @mky

rquickjs ships no pre-generated bindings for FreeBSD, so `rquickjs-sys`
failed to compile there:

  rquickjs probably doesn't ship bindings for platform
  `x86_64-unknown-freebsd(n/a)`. try the `bindgen` feature instead.

Adds the `bindgen` feature for `cfg(target_os = "freebsd")`, mirroring the
NetBSD and Android blocks already directly above and below it — same
shape, same rationale, same comment form.
Co-authored-by: mky <[email protected]>
This commit is contained in:
CodeWhale Bot committed 2026-08-06 16:04:11 -07:00
commit 147e407464
1 file changed
+6
+6
View File
@@ -22,6 +22,12 @@ tokio.workspace = true
[target.'cfg(target_os = "android")'.dependencies]
rquickjs = { workspace = true, features = ["bindgen"] }
# rquickjs does not ship pre-generated bindings for FreeBSD. Generate them at
# build time so the crate compiles there instead of trying to include a
# nonexistent bindings file.
[target.'cfg(target_os = "freebsd")'.dependencies]
rquickjs = { workspace = true, features = ["bindgen"] }
# rquickjs does not ship pre-generated bindings for NetBSD. Generate them at
# build time so the crate compiles there instead of trying to include a
# nonexistent bindings file.