mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
2c2f737ab2
## Summary This cleans up the gpui_platform code a bit, and in combination the way we set up the http client for the web. This does introduce a `ForegroundExecutor` variant that it itself is Send-able, allowing to dispatch foreground futures from background workers (by requiring the future to be Send, unlike `ForegroundExecutor`), which is a requirement for web fetch. a31c7b54c60738b82524e4e4c12aec2f6caf101d fixes a bunch of warnings with our binary names Release Notes: - [gpui] N/A
35 lines
993 B
TOML
35 lines
993 B
TOML
[package]
|
|
name = "http_proxy"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/http_proxy.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
# Compiles in the `ZED_SANDBOX_PROXY_ALLOW_LOCAL_IPS` escape hatch that lets the
|
|
# proxy reach loopback/private/link-local addresses. This disables the proxy's
|
|
# DNS-rebinding/SSRF protection, so it must NEVER be enabled in a real Zed
|
|
# build (debug or release) — it exists solely for the NixOS sandbox integration
|
|
# tests, whose echo servers live on the VM's private network. Enabled only via
|
|
# `sandbox/nixos-test` when building `bwrap-test-helper`.
|
|
nixos-integration-tests = []
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
base64.workspace = true
|
|
futures.workspace = true
|
|
httparse.workspace = true
|
|
idna.workspace = true
|
|
log = { workspace = true, features = ["serde"] }
|
|
percent-encoding.workspace = true
|
|
proxyvars.workspace = true
|
|
thiserror.workspace = true
|
|
url.workspace = true
|