Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

build(release): vendor OpenSSL so all 8 cross-compiled targets are self-contained

xerj-org45631c0aea03
diff --git a/engine/Cargo.lock b/engine/Cargo.lock
index ae5d526c4..11a47ce2e 100644
--- a/engine/Cargo.lock
+++ b/engine/Cargo.lock
@@ -1653,6 +1653,15 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
+[[package]]
+name = "openssl-src"
+version = "300.6.1+3.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46eb8fb9fb3b61ce1c0f8a026c4c1a0714d3a9e138e7fbde78753ce2babc3846"
+dependencies = [
+ "cc",
+]
+
[[package]]
name = "openssl-sys"
version = "0.9.113"
@@ -1661,6 +1670,7 @@ checksum = "ad2f2c0eba47118757e4c6d2bff2838f3e0523380021356e7875e858372ce644"
dependencies = [
"cc",
"libc",
+ "openssl-src",
"pkg-config",
"vcpkg",
]
@@ -3712,6 +3722,7 @@ dependencies = [
"dashmap",
"hmac",
"http-body-util",
+ "openssl",
"rand 0.8.5",
"serde",
"serde_json",
diff --git a/engine/crates/xerj-console-api/Cargo.toml b/engine/crates/xerj-console-api/Cargo.toml
index 4a83a5dd1..9f7276654 100644
--- a/engine/crates/xerj-console-api/Cargo.toml
+++ b/engine/crates/xerj-console-api/Cargo.toml
@@ -62,6 +62,11 @@ subtle = "2" # constant-time comparison
# WebAuthn / passkeys.
webauthn-rs = { version = "0.5", default-features = false, features = ["danger-allow-state-serialisation"] }
+# webauthn-rs-core links OpenSSL. Vendor it (compiled from source per
+# target) so the 8 cross-compiled release binaries are self-contained —
+# without this every non-native release target fails in openssl-sys
+# looking for system headers that aren't there.
+openssl = { version = "0.10", features = ["vendored"] }
# Cookie helpers (HttpOnly, Secure, SameSite=Lax session cookies).
axum-extra = { version = "0.9", features = ["cookie"] }