Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

perf(deps): unify AWS-LC on the latest backend

ldm087527dec8546
diff --git a/.cargo/config.toml b/.cargo/config.toml
index bc0f01ed8..72ac2a562 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -32,6 +32,11 @@ HTTPS_PROXY = { value = "", force = true }
# number generation, and libcurl hash seed randomization remain enabled.
AWS_LC_SYS_NO_JITTER_ENTROPY = "1"
+# Keep TLS and crypto on the pinned, statically linked AWS-LC source build.
+# Newer aws-lc-sys versions otherwise probe for a system installation first.
+AWS_LC_SYS_USE_SYSTEM = "0"
+AWS_LC_SYS_STATIC = "1"
+
# Browser imports only query ordinary SQLite tables. libsqlite3-sys enables
# these extensions in its bundled C build regardless of rusqlite features.
# Its LIBSQLITE3_FLAGS are appended after the defaults: use -U, since defining
diff --git a/Cargo.lock b/Cargo.lock
index efa39539a..ddb3a136a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -187,29 +187,17 @@ version = "1.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faac5829c2b74c28f830747e7818ccfb684261b5f48a1118b1e2a13d36dfab13"
dependencies = [
- "aws-lc-sys 0.46.0",
+ "aws-lc-sys",
"zeroize",
]
-[[package]]
-name = "aws-lc-sys"
-version = "0.39.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83a25cf98105baa966497416dbd42565ce3a8cf8dbfd59803ec9ad46f3126399"
-dependencies = [
- "bindgen 0.72.1",
- "cc",
- "cmake",
- "dunce",
- "fs_extra",
-]
-
[[package]]
name = "aws-lc-sys"
version = "0.46.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1622d8446a2d4b2ce0c7eefc73dd43a99779028d5ee5c2dd8073a658ba8a2bc"
dependencies = [
+ "bindgen 0.73.2",
"cc",
"cmake",
"dunce",
@@ -312,7 +300,7 @@ dependencies = [
"quote",
"regex",
"rustc-hash 1.1.0",
- "shlex",
+ "shlex 1.3.0",
"syn 2.0.117",
]
@@ -332,7 +320,26 @@ dependencies = [
"quote",
"regex",
"rustc-hash 2.1.1",
- "shlex",
+ "shlex 1.3.0",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "bindgen"
+version = "0.73.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "787ef8ef523575546b106a58213d6e6b06198a05c2f757258c68a74273670cfa"
+dependencies = [
+ "bitflags",
+ "cexpr",
+ "clang-sys",
+ "log",
+ "prettyplease",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "rustc-hash 2.1.1",
+ "shlex 2.0.1",
"syn 2.0.117",
]
@@ -513,7 +520,7 @@ dependencies = [
"find-msvc-tools",
"jobserver",
"libc",
- "shlex",
+ "shlex 1.3.0",
]
[[package]]
@@ -3989,11 +3996,10 @@ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
[[package]]
name = "openssl-sys"
-version = "0.9.116"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"
+version = "0.9.117"
+source = "git+https://github.com/lexmount/rust-openssl?rev=4497b245b09660f838dd00750616929b4cfe52ba#4497b245b09660f838dd00750616929b4cfe52ba"
dependencies = [
- "aws-lc-sys 0.39.1",
+ "aws-lc-sys",
"cc",
"libc",
"pkg-config",
@@ -5212,6 +5218,12 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
[[package]]
name = "signal-hook-registry"
version = "1.4.8"
diff --git a/Cargo.toml b/Cargo.toml
index 7fdf59871..3cc6c4666 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -98,6 +98,8 @@ members = [
license = "MIT OR Apache-2.0"
[patch.crates-io]
+# Share AWS-LC 0.46 with aws-lc-rs until upstream openssl-sys updates its backend.
+openssl-sys = { git = "https://github.com/lexmount/rust-openssl", rev = "4497b245b09660f838dd00750616929b4cfe52ba" }
parley = { git = "https://github.com/lexmount/parley", rev = "a18cfc3ba6638d44ff0d0c9ce7b0b3396b42e8cf" }
fontique = { git = "https://github.com/lexmount/parley", rev = "a18cfc3ba6638d44ff0d0c9ce7b0b3396b42e8cf" }
# Share fontations between shaping, raster rendering and PDF font subsetting.
diff --git a/moli-crypto/Cargo.toml b/moli-crypto/Cargo.toml
index 480a8010c..b46b7e97f 100644
--- a/moli-crypto/Cargo.toml
+++ b/moli-crypto/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2024"
description = "Backend-neutral cryptographic primitives for Moli"
[dependencies]
-aws-lc-rs = { version = "1.16.2", default-features = false, features = ["aws-lc-sys"] }
+aws-lc-rs = { version = "1.18.2", default-features = false, features = ["aws-lc-sys"] }
openssl = { version = "0.10.80", features = ["aws-lc"] }
[lints]