mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-19 14:00:52 +01:00
Engine downloads (Ghidra and its JDK, Godot, pinned installs) used only the proxy environment variables, so behind a VPN that sets only the Windows system proxy they went direct and timed out. When no proxy variable is set, they now use the person's manual proxy from Windows' settings, read from the registry once per download; this computer and Windows' own exceptions go direct, and a NO_PROXY the person set replaces those exceptions. Settings with credentials, SOCKS only or no port are ignored. AI clients are unchanged. Not run behind a real system proxy. Fixes #1827, #1787.
44 lines
1.5 KiB
TOML
44 lines
1.5 KiB
TOML
[package]
|
|
name = "craft-anything-engines"
|
|
description = "Adapters for optional external engines (Ghidra, adb, Chromium, Frida, JADX…) used by Craft Anything"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
craft-anything-evidence = { workspace = true }
|
|
craft-anything-platform = { workspace = true }
|
|
craft-anything-formats = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
hex = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
ureq = "3"
|
|
# The same version the engine crate uses (fal.ai sends files as base64 in some answers).
|
|
base64 = "0.22"
|
|
# The WebSocket handshake of the CDP client.
|
|
sha1 = "0.10"
|
|
toml = { workspace = true }
|
|
# WASM component plugins (R1.8), only with the `wasm-plugins` feature: a large build, so off by
|
|
# default. Safe API; no unsafe in our code.
|
|
wasmtime = { version = "49", optional = true, default-features = false, features = ["std", "runtime", "cranelift", "component-model", "wat"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# Reads the person's manual proxy for engine downloads (the version already in the lockfile).
|
|
winreg = "0.55"
|
|
|
|
[features]
|
|
wasm-plugins = ["dep:wasmtime"]
|
|
|
|
[dev-dependencies]
|
|
rcgen = { version = "0.14", default-features = false, features = ["crypto", "ring"] }
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
|
|
tempfile = "3"
|
|
craft-anything-testkit = { workspace = true }
|