Extract http from util (#11680)

This avoids the CLI linking libssl etc...

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-10 15:50:20 -06:00 committed by GitHub
parent df41435d1a
commit 5515ba6043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 419 additions and 336 deletions

View file

@ -19,6 +19,7 @@ test-support = [
"settings/test-support",
"text/test-support",
"gpui/test-support",
"http/test-support",
]
[dependencies]
@ -53,6 +54,7 @@ clock = {workspace = true, features = ["test-support"]}
collections = { workspace = true, features = ["test-support"] }
git2.workspace = true
gpui = {workspace = true, features = ["test-support"]}
http.workspace = true
rand.workspace = true
settings = {workspace = true, features = ["test-support"]}
pretty_assertions.workspace = true

View file

@ -8,6 +8,7 @@ use clock::FakeSystemClock;
use fs::{FakeFs, Fs, RealFs, RemoveOptions};
use git::{repository::GitFileStatus, GITIGNORE};
use gpui::{BorrowAppContext, ModelContext, Task, TestAppContext};
use http::FakeHttpClient;
use parking_lot::Mutex;
use postage::stream::Stream;
use pretty_assertions::assert_eq;
@ -21,7 +22,7 @@ use std::{
path::{Path, PathBuf},
sync::Arc,
};
use util::{http::FakeHttpClient, test::temp_tree, ResultExt};
use util::{test::temp_tree, ResultExt};
#[gpui::test]
async fn test_traversal(cx: &mut TestAppContext) {