mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-03 14:01:30 +01:00
Supersedes https://github.com/zed-industries/zed/pull/62653 ## Summary This PR unifies the download handling we have in the http_client crate, because we were alternating between the ways we were downloading a lot, in one case we changed the way of downloading entirely if a hex digest was present or not. With this in, we now handle this one way for all kinds of downloads, removing a lot of duplicated code and unifying the behavior here across download types. ## Testing Tested this manually. ## Self-review - [X] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Release Notes: - Improved reliability of language server and agent downloads by verifying checksums consistently, rejecting failed HTTP responses, and improving cleanup of partial downloads.
62 lines
1.4 KiB
TOML
62 lines
1.4 KiB
TOML
[package]
|
|
name = "dap"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/dap.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = [
|
|
"gpui/test-support",
|
|
"util/test-support",
|
|
"task/test-support",
|
|
"async-pipe",
|
|
"settings/test-support",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-compression.workspace = true
|
|
async-pipe = { workspace = true, optional = true }
|
|
async-tar.workspace = true
|
|
async-trait.workspace = true
|
|
client.workspace = true
|
|
collections.workspace = true
|
|
dap-types.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
github_releases.workspace = true
|
|
gpui.workspace = true
|
|
http_client.workspace = true
|
|
language.workspace = true
|
|
log.workspace = true
|
|
node_runtime.workspace = true
|
|
parking_lot.workspace = true
|
|
paths.workspace = true
|
|
proto.workspace = true
|
|
schemars.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
smallvec.workspace = true
|
|
smol.workspace = true
|
|
task.workspace = true
|
|
telemetry.workspace = true
|
|
util.workspace = true
|
|
|
|
[dev-dependencies]
|
|
async-pipe.workspace = true
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
settings = { workspace = true, features = ["test-support"] }
|
|
task = { workspace = true, features = ["test-support"] }
|
|
|
|
util = { workspace = true, features = ["test-support"] }
|
|
zlog.workspace = true
|