From 86c6f330a65d5fc271c2e90edc30dbd12e2f99a2 Mon Sep 17 00:00:00 2001 From: Paul-Nicolas Madelaine Date: Thu, 21 Sep 2023 17:28:10 +0200 Subject: [PATCH] use workspace dependencies --- Cargo.toml | 31 +++++++++++++++++++++ typhon-api-client-test/Cargo.toml | 14 +++++----- typhon-webapp/Cargo.toml | 22 +++++++-------- typhon/Cargo.toml | 46 +++++++++++++++---------------- 4 files changed, 72 insertions(+), 41 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0f221633..e573b7f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,34 @@ members = [ default-members = [ "typhon" ] + +[workspace.dependencies] +typhon-types = { path = "./typhon-types" } +actix = "0.13" +actix-cors = "0.6" +actix-files = "0.6" +actix-web = "4.2" +actix-web-actors = "4.1" +age = { version = "0.8", features = ["armor"] } +async-stream = "0.3" +async-trait = "0.1" +clap = { version = "4.0", features = ["derive"] } +colored = "2" +diesel = { version = "2.0.2", features = ["sqlite", "returning_clauses_for_sqlite_3_35"] } +diesel_migrations = "2.0" +futures = "0.3" +futures-core = "0.3" +log = "0.4" +once_cell = "1.16" +seed = "0.9" +serde = { version = "1.0", features = ["derive"] } +serde-wasm-bindgen = "0.4" +serde_json = "1.0" +serde_repr = "0.1" +sha256 = "1.1" +stderrlog = "0.5" +substring = "1.4" +surf = "2.3" +tokio = { version = "1.22", features = ["full"] } +wasm-bindgen-futures = "0.4" +web-sys = { version = "0.3", features = ["Navigator", "Clipboard", "ReadableStream", "Response"] } diff --git a/typhon-api-client-test/Cargo.toml b/typhon-api-client-test/Cargo.toml index 8c35217d..842fbaa4 100644 --- a/typhon-api-client-test/Cargo.toml +++ b/typhon-api-client-test/Cargo.toml @@ -4,10 +4,10 @@ version = "0.0.1" edition = "2021" [dependencies] -typhon-types = { path = "../typhon-types" } -serde = "1.0" -serde_json = "1.0" -tokio = { version = "1.22", features = [ "full" ] } -surf = "2.3" -async-trait = "0.1.4" -colored = "2" +typhon-types.workspace = true +async-trait.workspace = true +colored.workspace = true +serde.workspace = true +serde_json.workspace = true +surf.workspace = true +tokio.workspace = true diff --git a/typhon-webapp/Cargo.toml b/typhon-webapp/Cargo.toml index bd46f862..34069668 100644 --- a/typhon-webapp/Cargo.toml +++ b/typhon-webapp/Cargo.toml @@ -11,14 +11,14 @@ name = "typhon-webapp" path = "src/main.rs" [dependencies] -typhon-types = { path = "../typhon-types" } -once_cell = "1.16" -web-sys = { version = "0.3", features = ["Navigator", "Clipboard", "ReadableStream", "Response"] } -seed = "0.9" -serde = { version = "1.0", features = [ "derive" ] } -serde-wasm-bindgen = "0.4" -wasm-bindgen-futures = "0.4" -serde_json = "1.0" -async-trait = "0.1.4" -async-stream = "0.3" -futures-core = "0.3" +typhon-types.workspace = true +async-stream.workspace = true +async-trait.workspace = true +futures-core.workspace = true +once_cell.workspace = true +seed.workspace = true +serde-wasm-bindgen.workspace = true +serde.workspace = true +serde_json.workspace = true +wasm-bindgen-futures.workspace = true +web-sys.workspace = true diff --git a/typhon/Cargo.toml b/typhon/Cargo.toml index d8679b1d..91a47d7b 100644 --- a/typhon/Cargo.toml +++ b/typhon/Cargo.toml @@ -5,26 +5,26 @@ edition = "2021" authors = [ "Paul-Nicolas Madelaine " ] [dependencies] -actix = "0.13" -actix-cors = "0.6" -actix-files = "0.6" -actix-web = "4.2" -actix-web-actors = "4.1" -age = { version = "0.8", features = [ "armor" ] } -async-stream = "0.3" -async-trait = "0.1.4" -clap = { version = "4.0", features = [ "derive" ] } -diesel = { version = "2.0.2", features = [ "sqlite", "returning_clauses_for_sqlite_3_35" ] } -diesel_migrations = "2.0" -futures = "0.3" -futures-core = "0.3" -log = "0.4" -once_cell = "1.16" -serde = "1.0" -serde_json = "1.0" -serde_repr = "0.1" -sha256 = "1.1" -stderrlog = "0.5" -substring = "1.4" -tokio = { version = "1.22", features = [ "full" ] } -typhon-types = { path = "../typhon-types" } +typhon-types.workspace = true +actix-cors.workspace = true +actix-files.workspace = true +actix-web-actors.workspace = true +actix-web.workspace = true +actix.workspace = true +age.workspace = true +async-stream.workspace = true +async-trait.workspace = true +clap.workspace = true +diesel.workspace = true +diesel_migrations.workspace = true +futures-core.workspace = true +futures.workspace = true +log.workspace = true +once_cell.workspace = true +serde.workspace = true +serde_json.workspace = true +serde_repr.workspace = true +sha256.workspace = true +stderrlog.workspace = true +substring.workspace = true +tokio.workspace = true