Skip to content

armgit / moli

Public Imported from GitHub
0

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

fix: scope vendored OpenSSL to Windows

ldm0d4860e48849e
diff --git a/moli-fetch/Cargo.toml b/moli-fetch/Cargo.toml
index 4450eaebb..b4f57e7f7 100644
--- a/moli-fetch/Cargo.toml
+++ b/moli-fetch/Cargo.toml
@@ -24,7 +24,6 @@ moli-trace = { path = "../moli-trace" }
moli-url = { path = "../moli-url" }
moli-url-policy = { path = "../moli-url-policy" }
moli-web-mime = { path = "../moli-web-mime" }
-openssl-sys = { version = "0.9", features = ["vendored"] }
parking_lot = "0.12"
strum = { version = "0.28.0", features = ["derive"] }
tokio = { version = "1.51.0", features = ["rt", "sync"] }
@@ -32,6 +31,12 @@ tracing = "0.1.41"
url = "2.5.7"
wildcard = "0.3.0"
+[target.'cfg(windows)'.dependencies]
+openssl-sys = { version = "0.9", features = ["vendored"] }
+
+[target.'cfg(not(windows))'.dependencies]
+openssl-sys = "0.9"
+
[dev-dependencies]
h2 = "0.4"
moli-cookie-jar = { path = "../moli-cookie-jar", features = ["test-support"] }