mirror of
https://github.com/logos-co/logos-evm-net-proxy.git
synced 2026-08-27 12:21:17 +00:00
The single, fail-closed constructor of HTTP clients for the Logos EVM wallet networking modules. build_client refuses to return a client when a proxy is required but unset/unusable, so requests are never sent in the clear. rustls-tls + socks (socks5h, Tor-ready). 6 unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
791 B
TOML
19 lines
791 B
TOML
[package]
|
|
name = "logos-net-proxy"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
description = "Fail-closed proxyable HTTP client constructor for Logos wallet modules — the single chokepoint for outbound requests, Tor/SOCKS5h-ready."
|
|
repository = "https://github.com/logos-co/logos-net-proxy"
|
|
|
|
# Standalone crate — the empty table keeps cargo from adopting any workspace it
|
|
# finds in a parent directory (the workspace has many sibling crates).
|
|
[workspace]
|
|
|
|
[dependencies]
|
|
# rustls-tls (not native-tls) keeps the crate pure-Rust at link time; `socks`
|
|
# enables socks5h:// (remote DNS through the proxy — what we want for Tor).
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "socks", "json", "blocking"] }
|
|
url = "2"
|
|
thiserror = "2"
|