Extract paths out of util
(#13182)
This PR extracts the definition of the various Zed paths out of `util` and into a new `paths` crate. `util` is for generic utils, while these paths are Zed-specific. For instance, `gpui` depends on `util`, and it shouldn't have knowledge of these paths, since they are only used by Zed. Release Notes: - N/A
This commit is contained in:
parent
78e0f71a28
commit
258a8a37d8
49 changed files with 208 additions and 151 deletions
|
@ -16,7 +16,7 @@ doctest = false
|
|||
anyhow.workspace = true
|
||||
futures.workspace = true
|
||||
http.workspace = true
|
||||
paths.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
smol.workspace = true
|
||||
util.workspace = true
|
||||
|
|
|
@ -2,12 +2,12 @@ use anyhow::{anyhow, Context, Result};
|
|||
use futures::io::BufReader;
|
||||
use futures::{AsyncReadExt, Future};
|
||||
use http::{AsyncBody, HttpClient, Request as HttpRequest};
|
||||
use paths::SUPERMAVEN_DIR;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use smol::fs::{self, File};
|
||||
use smol::stream::StreamExt;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::Arc;
|
||||
use util::paths::SUPERMAVEN_DIR;
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct GetExternalUserRequest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue