fix: restore production-safe cross-platform reqwest backend after impersonation API audit
Browse files- crates/bex-core/Cargo.toml +20 -12
crates/bex-core/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
[package]
|
| 2 |
name = "bex-core"
|
| 3 |
-
version = "2.1.
|
| 4 |
edition = "2021"
|
| 5 |
|
| 6 |
[dependencies]
|
|
@@ -14,19 +14,27 @@ serde = { workspace = true }
|
|
| 14 |
serde_json = { workspace = true }
|
| 15 |
serde_yaml = { workspace = true }
|
| 16 |
tracing = { workspace = true }
|
| 17 |
-
|
| 18 |
-
#
|
| 19 |
-
#
|
| 20 |
-
#
|
| 21 |
-
#
|
| 22 |
-
#
|
| 23 |
-
#
|
|
|
|
| 24 |
#
|
| 25 |
-
#
|
| 26 |
-
# API
|
| 27 |
-
|
| 28 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
] }
|
|
|
|
| 30 |
wasmtime = { version = "30", features = ["component-model", "cranelift", "parallel-compilation"] }
|
| 31 |
wasmtime-wasi = "30"
|
| 32 |
wasmtime-wasi-io = "30"
|
|
|
|
| 1 |
[package]
|
| 2 |
name = "bex-core"
|
| 3 |
+
version = "2.1.1"
|
| 4 |
edition = "2021"
|
| 5 |
|
| 6 |
[dependencies]
|
|
|
|
| 14 |
serde_json = { workspace = true }
|
| 15 |
serde_yaml = { workspace = true }
|
| 16 |
tracing = { workspace = true }
|
| 17 |
+
|
| 18 |
+
# Production-safe default HTTP backend.
|
| 19 |
+
#
|
| 20 |
+
# IMPORTANT:
|
| 21 |
+
# - This is the portable/cross-platform default for Linux/macOS/Windows and most app embedding.
|
| 22 |
+
# - It does browser-like HTTP headers, cookies, HTTP/2, compression, and session persistence.
|
| 23 |
+
# - It does NOT provide byte-identical Chrome TLS JA3/JA4. For advanced CF/DataDome-level
|
| 24 |
+
# bypass you need a BoringSSL/curl-impersonate backend, which must be validated per target.
|
| 25 |
#
|
| 26 |
+
# The previous experimental rquest dependency was intentionally removed because the exact
|
| 27 |
+
# crate version/API was not verified in this environment and could make the repo fail to build.
|
| 28 |
+
reqwest = { version = "0.12", default-features = false, features = [
|
| 29 |
+
"rustls-tls",
|
| 30 |
+
"json",
|
| 31 |
+
"gzip",
|
| 32 |
+
"brotli",
|
| 33 |
+
"deflate",
|
| 34 |
+
"cookies",
|
| 35 |
+
"http2",
|
| 36 |
] }
|
| 37 |
+
|
| 38 |
wasmtime = { version = "30", features = ["component-model", "cranelift", "parallel-compilation"] }
|
| 39 |
wasmtime-wasi = "30"
|
| 40 |
wasmtime-wasi-io = "30"
|