Detailed changes
@@ -925,6 +925,20 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+[[package]]
+name = "chat_panel"
+version = "0.1.0"
+dependencies = [
+ "client",
+ "editor",
+ "gpui",
+ "postage",
+ "theme",
+ "time 0.3.2",
+ "util",
+ "workspace",
+]
+
[[package]]
name = "chrono"
version = "0.4.19"
@@ -6101,6 +6115,7 @@ dependencies = [
"async-tungstenite",
"buffer",
"cargo-bundle",
+ "chat_panel",
"client",
"clock",
"crossbeam-channel",
@@ -0,0 +1,14 @@
+[package]
+name = "chat_panel"
+version = "0.1.0"
+edition = "2018"
+
+[dependencies]
+client = { path = "../client" }
+editor = { path = "../editor" }
+gpui = { path = "../gpui" }
+theme = { path = "../theme" }
+util = { path = "../util" }
+workspace = { path = "../workspace" }
+postage = { version = "0.4.1", features = ["futures-traits"] }
+time = "0.3"
@@ -1,4 +1,3 @@
-use crate::Settings;
use client::{
channel::{Channel, ChannelEvent, ChannelList, ChannelMessage},
Client,
@@ -17,6 +16,7 @@ use postage::{prelude::Stream, watch};
use std::sync::Arc;
use time::{OffsetDateTime, UtcOffset};
use util::{ResultExt, TryFutureExt};
+use workspace::Settings;
const MESSAGE_LOADING_THRESHOLD: usize = 50;
@@ -25,6 +25,7 @@ test-support = [
[dependencies]
buffer = { path = "../buffer" }
+chat_panel = { path = "../chat_panel" }
client = { path = "../client" }
clock = { path = "../clock" }
fsevent = { path = "../fsevent" }
@@ -1,5 +1,4 @@
pub mod assets;
-pub mod chat_panel;
pub mod file_finder;
pub mod language;
pub mod menus;
@@ -12,8 +12,7 @@ use workspace::{self, settings, OpenNew};
use zed::{
self,
assets::Assets,
- chat_panel, client,
- client::{http, ChannelList, UserStore},
+ client::{self, http, ChannelList, UserStore},
editor, file_finder,
fs::RealFs,
language, menus, people_panel, theme_selector, AppState, OpenParams, OpenPaths,