Extract chat_panel
into its own crate
This commit is contained in:
parent
d04a11405c
commit
1ec0afb2d1
6 changed files with 32 additions and 4 deletions
15
Cargo.lock
generated
15
Cargo.lock
generated
|
@ -925,6 +925,20 @@ version = "1.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "chat_panel"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"client",
|
||||||
|
"editor",
|
||||||
|
"gpui",
|
||||||
|
"postage",
|
||||||
|
"theme",
|
||||||
|
"time 0.3.2",
|
||||||
|
"util",
|
||||||
|
"workspace",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chrono"
|
name = "chrono"
|
||||||
version = "0.4.19"
|
version = "0.4.19"
|
||||||
|
@ -6101,6 +6115,7 @@ dependencies = [
|
||||||
"async-tungstenite",
|
"async-tungstenite",
|
||||||
"buffer",
|
"buffer",
|
||||||
"cargo-bundle",
|
"cargo-bundle",
|
||||||
|
"chat_panel",
|
||||||
"client",
|
"client",
|
||||||
"clock",
|
"clock",
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
|
|
14
crates/chat_panel/Cargo.toml
Normal file
14
crates/chat_panel/Cargo.toml
Normal file
|
@ -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::{
|
use client::{
|
||||||
channel::{Channel, ChannelEvent, ChannelList, ChannelMessage},
|
channel::{Channel, ChannelEvent, ChannelList, ChannelMessage},
|
||||||
Client,
|
Client,
|
||||||
|
@ -17,6 +16,7 @@ use postage::{prelude::Stream, watch};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use time::{OffsetDateTime, UtcOffset};
|
use time::{OffsetDateTime, UtcOffset};
|
||||||
use util::{ResultExt, TryFutureExt};
|
use util::{ResultExt, TryFutureExt};
|
||||||
|
use workspace::Settings;
|
||||||
|
|
||||||
const MESSAGE_LOADING_THRESHOLD: usize = 50;
|
const MESSAGE_LOADING_THRESHOLD: usize = 50;
|
||||||
|
|
|
@ -25,6 +25,7 @@ test-support = [
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
buffer = { path = "../buffer" }
|
buffer = { path = "../buffer" }
|
||||||
|
chat_panel = { path = "../chat_panel" }
|
||||||
client = { path = "../client" }
|
client = { path = "../client" }
|
||||||
clock = { path = "../clock" }
|
clock = { path = "../clock" }
|
||||||
fsevent = { path = "../fsevent" }
|
fsevent = { path = "../fsevent" }
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
pub mod assets;
|
pub mod assets;
|
||||||
pub mod chat_panel;
|
|
||||||
pub mod file_finder;
|
pub mod file_finder;
|
||||||
pub mod language;
|
pub mod language;
|
||||||
pub mod menus;
|
pub mod menus;
|
||||||
|
|
|
@ -12,8 +12,7 @@ use workspace::{self, settings, OpenNew};
|
||||||
use zed::{
|
use zed::{
|
||||||
self,
|
self,
|
||||||
assets::Assets,
|
assets::Assets,
|
||||||
chat_panel, client,
|
client::{self, http, ChannelList, UserStore},
|
||||||
client::{http, ChannelList, UserStore},
|
|
||||||
editor, file_finder,
|
editor, file_finder,
|
||||||
fs::RealFs,
|
fs::RealFs,
|
||||||
language, menus, people_panel, theme_selector, AppState, OpenParams, OpenPaths,
|
language, menus, people_panel, theme_selector, AppState, OpenParams, OpenPaths,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue