diff --git a/Cargo.lock b/Cargo.lock index 14c0ea81..31fd2275 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,31 +105,6 @@ dependencies = [ "zstd", ] -[[package]] -name = "actix-http-test" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "061d27c2a6fea968fdaca0961ff429d23a4ec878c4f68f5d08626663ade69c80" -dependencies = [ - "actix-codec", - "actix-rt", - "actix-server", - "actix-service", - "actix-tls", - "actix-utils", - "awc", - "bytes", - "futures-core", - "http 0.2.11", - "log", - "serde", - "serde_json", - "serde_urlencoded", - "slab", - "socket2", - "tokio", -] - [[package]] name = "actix-identity" version = "0.6.0" @@ -227,29 +202,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "actix-test" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c0bc744219177d18f6244d035e1a0b4e36defb6707be2388348ba7e3f071772" -dependencies = [ - "actix-codec", - "actix-http", - "actix-http-test", - "actix-rt", - "actix-service", - "actix-utils", - "actix-web", - "awc", - "futures-core", - "futures-util", - "log", - "serde", - "serde_json", - "serde_urlencoded", - "tokio", -] - [[package]] name = "actix-tls" version = "3.3.0" @@ -260,8 +212,6 @@ dependencies = [ "actix-service", "actix-utils", "futures-core", - "http 0.2.11", - "http 1.0.0", "impl-more", "openssl", "pin-project-lite", @@ -542,9 +492,9 @@ checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87" [[package]] name = "anyhow" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" +checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "app-error" @@ -594,7 +544,6 @@ dependencies = [ "actix-rt", "actix-service", "actix-session", - "actix-test", "actix-web", "actix-web-actors", "anyhow", @@ -610,7 +559,6 @@ dependencies = [ "chrono", "client-api", "client-api-test-util", - "client-websocket", "collab", "collab-document", "collab-entity", @@ -944,39 +892,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "awc" -version = "3.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68c09cc97310b926f01621faee652f3d1b0962545a3cec6c9ac07def9ea36c2c" -dependencies = [ - "actix-codec", - "actix-http", - "actix-rt", - "actix-service", - "actix-tls", - "actix-utils", - "base64 0.21.7", - "bytes", - "cfg-if 1.0.0", - "cookie 0.16.2", - "derive_more", - "futures-core", - "futures-util", - "h2 0.3.26", - "http 0.2.11", - "itoa", - "log", - "mime", - "percent-encoding", - "pin-project-lite", - "rand 0.8.5", - "serde", - "serde_json", - "serde_urlencoded", - "tokio", -] - [[package]] name = "aws-creds" version = "0.36.0" @@ -1352,9 +1267,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" dependencies = [ "serde", ] @@ -5394,9 +5309,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.199" +version = "1.0.200" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9f6e76df036c77cd94996771fb40db98187f096dd0b9af39c6c6e452ba966a" +checksum = "ddc6f9cc94d67c0e21aaf7eda3a010fd3af78ebf6e096aa6e2e13c79749cce4f" dependencies = [ "serde_derive", ] @@ -5414,9 +5329,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.199" +version = "1.0.200" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11bd257a6541e141e42ca6d24ae26f7714887b47e89aa739099104c7e4d3b7fc" +checksum = "856f046b9400cee3c8c94ed572ecdb752444c24528c035cd35882aad6f492bcb" dependencies = [ "proc-macro2", "quote", @@ -5457,9 +5372,9 @@ dependencies = [ [[package]] name = "serde_repr" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2e6b945e9d3df726b65d6ee24060aff8e3533d431f677a9695db04eff9dfdb" +checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index f58053d4..685638cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -111,10 +111,6 @@ client-api-test-util = { path = "libs/client-api-test-util", features = ["collab client-api = { path = "libs/client-api", features = ["collab-sync", "test_util", "sync_verbose_log", "test_fast_sync", "enable_brotli"] } opener = "0.6.1" image = "0.23.14" -collab-folder = { version = "0.1.0" } -client-websocket.workspace = true -actix-test = "0.1" -semver = "1.0.22" [[bin]] name = "appflowy_cloud" @@ -155,7 +151,8 @@ members = [ "services/realtime", "services/appflowy-collaborate", # xtask - "xtask", "libs/tonic-proto", + "xtask", + "libs/tonic-proto", ] [workspace.dependencies] diff --git a/tests/workspace/template_test.rs b/tests/workspace/template_test.rs index 1adb35aa..5c7d1dd4 100644 --- a/tests/workspace/template_test.rs +++ b/tests/workspace/template_test.rs @@ -4,8 +4,6 @@ use collab::core::origin::CollabOrigin; use collab_document::document::Document; use collab_entity::CollabType; use database_entity::dto::{QueryCollab, QueryCollabParams}; -use std::fs::File; -use std::io::Write; #[tokio::test] async fn get_user_default_workspace_test() { @@ -41,12 +39,6 @@ async fn get_document_collab_from_remote( }, }; let resp = test_client.get_collab(params).await.unwrap(); - let mut file = File::create("./get_started_encode_collab").unwrap(); - - // Step 3: Write the Vec data to the file. - file - .write_all(&resp.encode_collab.encode_to_bytes().unwrap()) - .unwrap(); Document::from_doc_state( CollabOrigin::Empty, DataSource::DocStateV1(resp.encode_collab.doc_state.to_vec()), diff --git a/xtask/src/main.rs b/xtask/src/main.rs index d89c8a56..9bf4cb6c 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -39,7 +39,6 @@ async fn main() -> Result<()> { }, } - println!("One of the services has completed successfully."); Ok(()) }