diff --git a/Cargo.lock b/Cargo.lock index f6bd57d..e877e17 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7647,7 +7647,6 @@ dependencies = [ "actix", "actix-codec", "actix-files", - "actix-rt", "actix-web", "actix-web-actors", "awc", diff --git a/Cargo.toml b/Cargo.toml index 5cdfbb5..77bc2da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,3 +64,22 @@ members = [ "websockets/echo", ] resolver = "2" + +[workspace.dependencies] +actix = "0.13" +actix-broker = "0.4.2" +actix-codec = "0.5" +actix-cors = "0.6" +actix-files = "0.6" +actix-http = "3" +actix-identity = "0.5" +actix-multipart = "0.4" +actix-protobuf = "0.9" +actix-session = "0.7" +actix-test = "0.1" +actix-tls = "3.0" +actix-utils = "3" +actix-web = "4" +actix-web-actors = "4.1" +actix-web-lab = "0.18" +actix-ws = "0.2.5" diff --git a/auth/casbin/Cargo.toml b/auth/casbin/Cargo.toml index e22203c..f1e9496 100644 --- a/auth/casbin/Cargo.toml +++ b/auth/casbin/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } casbin = "2" loge = { version = "0.4", default-features = false, features = ["colored", "chrono"] } tokio = { version = "1.13.1", features = ["sync"] } diff --git a/auth/cookie-auth/Cargo.toml b/auth/cookie-auth/Cargo.toml index 8673c45..8008617 100644 --- a/auth/cookie-auth/Cargo.toml +++ b/auth/cookie-auth/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-identity = "0.5" -actix-session = { version = "0.7", features = ["cookie-session"] } +actix-web = { workspace = true } +actix-identity = { workspace = true } +actix-session = { workspace = true, features = ["cookie-session"] } env_logger = "0.10" rand = "0.8" diff --git a/auth/cookie-session/Cargo.toml b/auth/cookie-session/Cargo.toml index fb823b3..12d78f2 100644 --- a/auth/cookie-session/Cargo.toml +++ b/auth/cookie-session/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-session = { version = "0.7", features = ["cookie-session"] } +actix-web = { workspace = true } +actix-session = { workspace = true, features = ["cookie-session"] } log = "0.4" env_logger = "0.10" diff --git a/auth/redis-session/Cargo.toml b/auth/redis-session/Cargo.toml index fc88280..2dd88a6 100644 --- a/auth/redis-session/Cargo.toml +++ b/auth/redis-session/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-session = { version = "0.7", features = ["redis-actor-session"] } +actix-web = { workspace = true } +actix-session = { workspace = true, features = ["redis-actor-session"] } env_logger = "0.10" log = "0.4" @@ -13,5 +13,5 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" [dev-dependencies] -actix-test = "0.1" +actix-test = { workspace = true } time = "0.3" diff --git a/auth/simple-auth-server/Cargo.toml b/auth/simple-auth-server/Cargo.toml index ddcfdd8..b2d00f4 100644 --- a/auth/simple-auth-server/Cargo.toml +++ b/auth/simple-auth-server/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-identity = "0.5" -actix-session = { version = "0.7", features = ["cookie-session"] } +actix-web = { workspace = true } +actix-identity = { workspace = true } +actix-session = { workspace = true, features = ["cookie-session"] } chrono = { version = "0.4", features = ["serde"] } derive_more = "0.99.5" diff --git a/basics/basics/Cargo.toml b/basics/basics/Cargo.toml index 9570afe..9ef97c1 100644 --- a/basics/basics/Cargo.toml +++ b/basics/basics/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-files = "0.6" -actix-session = { version = "0.7", features = ["cookie-session"] } -actix-web = "4" +actix-files = { workspace = true } +actix-session = { workspace = true, features = ["cookie-session"] } +actix-web = { workspace = true } async-stream = "0.3" env_logger = "0.10" diff --git a/basics/error-handling/Cargo.toml b/basics/error-handling/Cargo.toml index 0e75eb0..27897d0 100644 --- a/basics/error-handling/Cargo.toml +++ b/basics/error-handling/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } derive_more = "0.99.5" env_logger = "0.10" diff --git a/basics/hello-world/Cargo.toml b/basics/hello-world/Cargo.toml index ce0cc3c..0d4e711 100644 --- a/basics/hello-world/Cargo.toml +++ b/basics/hello-world/Cargo.toml @@ -4,5 +4,5 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" diff --git a/basics/nested-routing/Cargo.toml b/basics/nested-routing/Cargo.toml index 06cf17a..21314af 100644 --- a/basics/nested-routing/Cargo.toml +++ b/basics/nested-routing/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = { version = "4", features = ["openssl"] } +actix-web = { workspace = true, features = ["openssl"] } env_logger = "0.10" serde = { version = "^1.0", features = ["derive"] } serde_json = "1.0.39" diff --git a/basics/state/Cargo.toml b/basics/state/Cargo.toml index 5c948b3..9a9c05b 100644 --- a/basics/state/Cargo.toml +++ b/basics/state/Cargo.toml @@ -4,5 +4,5 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" diff --git a/basics/static-files/Cargo.toml b/basics/static-files/Cargo.toml index f2e5799..81c0638 100644 --- a/basics/static-files/Cargo.toml +++ b/basics/static-files/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-files = "0.6" +actix-web = { workspace = true } +actix-files = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/basics/todo/Cargo.toml b/basics/todo/Cargo.toml index 81c554a..b953294 100644 --- a/basics/todo/Cargo.toml +++ b/basics/todo/Cargo.toml @@ -4,10 +4,10 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-files = "0.6" -actix-session = { version = "0.7", features = ["cookie-session"] } -actix-web = "4" -actix-web-lab = "0.18" +actix-files = { workspace = true } +actix-session = { workspace = true, features = ["cookie-session"] } +actix-web = { workspace = true } +actix-web-lab = { workspace = true } dotenv = "0.15" env_logger = "0.10" diff --git a/cors/backend/Cargo.toml b/cors/backend/Cargo.toml index 3f1dd0b..8444391 100644 --- a/cors/backend/Cargo.toml +++ b/cors/backend/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = { version = "4", features = ["rustls"] } -actix-cors = "0.6" +actix-web = { workspace = true, features = ["rustls"] } +actix-cors = { workspace = true } env_logger = "0.10" serde = { version = "1.0", features = ["derive"] } diff --git a/data-factory/Cargo.toml b/data-factory/Cargo.toml index 79ca868..6cd1ed0 100644 --- a/data-factory/Cargo.toml +++ b/data-factory/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/databases/diesel/Cargo.toml b/databases/diesel/Cargo.toml index dcdfef5..94595c1 100644 --- a/databases/diesel/Cargo.toml +++ b/databases/diesel/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } diesel = { version = "2", features = ["sqlite", "r2d2"] } dotenv = "0.15" env_logger = "0.10" diff --git a/databases/mongodb/Cargo.toml b/databases/mongodb/Cargo.toml index a9e0ccb..51d5b84 100644 --- a/databases/mongodb/Cargo.toml +++ b/databases/mongodb/Cargo.toml @@ -4,6 +4,6 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } mongodb = "2" serde = { version = "1", features = ["derive"] } diff --git a/databases/postgres/Cargo.toml b/databases/postgres/Cargo.toml index 0dffdd5..1e5b415 100644 --- a/databases/postgres/Cargo.toml +++ b/databases/postgres/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } config = "0.13.1" deadpool-postgres = { version = "0.10.2", features = ["serde"] } derive_more = "0.99.17" diff --git a/databases/redis/Cargo.toml b/databases/redis/Cargo.toml index cca917e..0375449 100644 --- a/databases/redis/Cargo.toml +++ b/databases/redis/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["std"] } diff --git a/databases/sqlite/Cargo.toml b/databases/sqlite/Cargo.toml index cb0945b..3df5029 100644 --- a/databases/sqlite/Cargo.toml +++ b/databases/sqlite/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" futures-util = { version = "0.3", default-features = false, features = ["std"] } diff --git a/docker/Cargo.toml b/docker/Cargo.toml index becd8e3..f273590 100644 --- a/docker/Cargo.toml +++ b/docker/Cargo.toml @@ -4,6 +4,6 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/forms/form/Cargo.toml b/forms/form/Cargo.toml index ae341ea..1638b86 100644 --- a/forms/form/Cargo.toml +++ b/forms/form/Cargo.toml @@ -4,5 +4,5 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } serde = { version = "1", features = ["derive"] } diff --git a/forms/multipart-s3/Cargo.toml b/forms/multipart-s3/Cargo.toml index 413b0c9..7d91d5b 100644 --- a/forms/multipart-s3/Cargo.toml +++ b/forms/multipart-s3/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-multipart = "0.4" -actix-web = "4" -actix-web-lab = "0.18" +actix-multipart = { workspace = true } +actix-web = { workspace = true } +actix-web-lab = { workspace = true } aws-config = "0.51" aws-sdk-s3 = "0.21" diff --git a/forms/multipart/Cargo.toml b/forms/multipart/Cargo.toml index 9a290e9..79ba325 100644 --- a/forms/multipart/Cargo.toml +++ b/forms/multipart/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/actix/examples" readme = "README.md" [dependencies] -actix-multipart = "0.4" -actix-web = "4" +actix-multipart = { workspace = true } +actix-web = { workspace = true } futures-util = { version = "0.3.17", default-features = false, features = ["std"] } sanitize-filename = "0.4" diff --git a/graphql/async-graphql/Cargo.toml b/graphql/async-graphql/Cargo.toml index b2561cf..5303e1e 100644 --- a/graphql/async-graphql/Cargo.toml +++ b/graphql/async-graphql/Cargo.toml @@ -4,10 +4,10 @@ version = "1.0.0" edition = "2021" [dependencies] -actix = "0.13" -actix-web = "4" -actix-web-lab = "0.18" -actix-cors = "0.6" +actix = { workspace = true } +actix-web = { workspace = true } +actix-web-lab = { workspace = true } +actix-cors = { workspace = true } async-graphql = "5" async-graphql-actix-web = "5" diff --git a/graphql/juniper-advanced/Cargo.toml b/graphql/juniper-advanced/Cargo.toml index 156dcfa..ace16c4 100644 --- a/graphql/juniper-advanced/Cargo.toml +++ b/graphql/juniper-advanced/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" -actix-cors = "0.6" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } +actix-cors = { workspace = true } juniper = "0.15" diff --git a/graphql/juniper/Cargo.toml b/graphql/juniper/Cargo.toml index 489c033..fcb4f5e 100644 --- a/graphql/juniper/Cargo.toml +++ b/graphql/juniper/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" -actix-cors = "0.6" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } +actix-cors = { workspace = true } juniper = "0.15" diff --git a/guards/Cargo.toml b/guards/Cargo.toml index bcdb9d7..e36d989 100644 --- a/guards/Cargo.toml +++ b/guards/Cargo.toml @@ -4,4 +4,4 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } diff --git a/http-proxy/Cargo.toml b/http-proxy/Cargo.toml index fbe306f..f584440 100644 --- a/http-proxy/Cargo.toml +++ b/http-proxy/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = { version = "4", features = ["openssl"] } +actix-web = { workspace = true, features = ["openssl"] } awc = "3" clap = { version = "4", features = ["derive"] } diff --git a/https-tls/awc-https/Cargo.toml b/https-tls/awc-https/Cargo.toml index 0039ba0..b3f3fc2 100644 --- a/https-tls/awc-https/Cargo.toml +++ b/https-tls/awc-https/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } awc = { version = "3", features = ["rustls"] } env_logger = "0.10" diff --git a/https-tls/openssl-auto-le/Cargo.toml b/https-tls/openssl-auto-le/Cargo.toml index 39fa759..6ed3089 100644 --- a/https-tls/openssl-auto-le/Cargo.toml +++ b/https-tls/openssl-auto-le/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = { version = "4", features = ["openssl"] } -actix-files = "0.6" +actix-web = { workspace = true, features = ["openssl"] } +actix-files = { workspace = true } acme-micro = "0.12" anyhow = "1" diff --git a/https-tls/openssl/Cargo.toml b/https-tls/openssl/Cargo.toml index 10c4dae..c3b639f 100644 --- a/https-tls/openssl/Cargo.toml +++ b/https-tls/openssl/Cargo.toml @@ -4,6 +4,6 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = { version = "4", features = ["openssl"] } +actix-web = { workspace = true, features = ["openssl"] } env_logger = "0.10" openssl = "0.10" diff --git a/https-tls/rustls-client-cert/Cargo.toml b/https-tls/rustls-client-cert/Cargo.toml index 37e43cd..d870553 100644 --- a/https-tls/rustls-client-cert/Cargo.toml +++ b/https-tls/rustls-client-cert/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-tls = "3.0" -actix-web = { version = "4", features = ["rustls"] } +actix-tls = { workspace = true } +actix-web = { workspace = true, features = ["rustls"] } env_logger = "0.10" log = "0.4" rustls = "0.20" diff --git a/https-tls/rustls/Cargo.toml b/https-tls/rustls/Cargo.toml index 060a1f1..f1bc498 100644 --- a/https-tls/rustls/Cargo.toml +++ b/https-tls/rustls/Cargo.toml @@ -8,9 +8,9 @@ name = "rustls-server" path = "src/main.rs" [dependencies] -actix-web = { version = "4", features = ["rustls"] } -actix-web-lab = "0.18" -actix-files = "0.6" +actix-web = { workspace = true, features = ["rustls"] } +actix-web-lab = { workspace = true } +actix-files = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/json/json-decode-error/Cargo.toml b/json/json-decode-error/Cargo.toml index 786fcfb..846f16a 100644 --- a/json/json-decode-error/Cargo.toml +++ b/json/json-decode-error/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/json/json-error/Cargo.toml b/json/json-error/Cargo.toml index 1483594..a7016e6 100644 --- a/json/json-error/Cargo.toml +++ b/json/json-error/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/json/json-validation/Cargo.toml b/json/json-validation/Cargo.toml index a013b7c..f3198a5 100644 --- a/json/json-validation/Cargo.toml +++ b/json/json-validation/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } awc = { version = "3", features = ["openssl"] } env_logger = "0.10" diff --git a/json/json/Cargo.toml b/json/json/Cargo.toml index ed4a834..20f4880 100644 --- a/json/json/Cargo.toml +++ b/json/json/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["std"] } diff --git a/json/jsonrpc/Cargo.toml b/json/jsonrpc/Cargo.toml index 51c2402..d5d64d8 100644 --- a/json/jsonrpc/Cargo.toml +++ b/json/jsonrpc/Cargo.toml @@ -4,7 +4,7 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } bytes = "1.1.0" env_logger = "0.10" diff --git a/middleware/middleware-encrypted-payloads/Cargo.toml b/middleware/middleware-encrypted-payloads/Cargo.toml index 7572479..29df7a9 100644 --- a/middleware/middleware-encrypted-payloads/Cargo.toml +++ b/middleware/middleware-encrypted-payloads/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-http = "3" -actix-web = "4" -actix-web-lab = "0.18" +actix-http = { workspace = true } +actix-web = { workspace = true } +actix-web-lab = { workspace = true } aes-gcm-siv = "0.11" base64 = "0.20" diff --git a/middleware/middleware-ext-mut/Cargo.toml b/middleware/middleware-ext-mut/Cargo.toml index 645e6f9..01b8085 100644 --- a/middleware/middleware-ext-mut/Cargo.toml +++ b/middleware/middleware-ext-mut/Cargo.toml @@ -4,6 +4,6 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } log = "0.4" env_logger = "0.10" diff --git a/middleware/middleware-http-to-https/Cargo.toml b/middleware/middleware-http-to-https/Cargo.toml index 4f2731b..3aff9f3 100644 --- a/middleware/middleware-http-to-https/Cargo.toml +++ b/middleware/middleware-http-to-https/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = { version = "4", features = ["rustls"] } -actix-web-lab = "0.18" +actix-web = { workspace = true, features = ["rustls"] } +actix-web-lab = { workspace = true } env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["std"] } diff --git a/middleware/middleware/Cargo.toml b/middleware/middleware/Cargo.toml index 1d4cb5c..c08193a 100644 --- a/middleware/middleware/Cargo.toml +++ b/middleware/middleware/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-http = "3" -actix-web = "4" -actix-web-lab = "0.18" +actix-http = { workspace = true } +actix-web = { workspace = true } +actix-web-lab = { workspace = true } env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["std"] } diff --git a/protobuf/Cargo.toml b/protobuf/Cargo.toml index 1fe3caf..e56d297 100644 --- a/protobuf/Cargo.toml +++ b/protobuf/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-protobuf = "0.9" -actix-web = "4" +actix-protobuf = { workspace = true } +actix-web = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/run-in-thread/Cargo.toml b/run-in-thread/Cargo.toml index fce6a47..1522a3d 100644 --- a/run-in-thread/Cargo.toml +++ b/run-in-thread/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" description = "Run Actix Web in separate thread" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/server-sent-events/Cargo.toml b/server-sent-events/Cargo.toml index e5f250d..7e3539d 100644 --- a/server-sent-events/Cargo.toml +++ b/server-sent-events/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["std"] } log = "0.4" diff --git a/shutdown-server/Cargo.toml b/shutdown-server/Cargo.toml index a8ba8ce..615ca45 100644 --- a/shutdown-server/Cargo.toml +++ b/shutdown-server/Cargo.toml @@ -5,8 +5,8 @@ edition = "2021" description = "Send a request to the server to shut it down" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/templating/askama/Cargo.toml b/templating/askama/Cargo.toml index 77e4370..5f509a7 100644 --- a/templating/askama/Cargo.toml +++ b/templating/askama/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] env_logger = "0.10" -actix-web = "4" +actix-web = { workspace = true } askama = "0.11.0" [build-dependencies] diff --git a/templating/fluent/Cargo.toml b/templating/fluent/Cargo.toml index d69ad9d..db25a92 100644 --- a/templating/fluent/Cargo.toml +++ b/templating/fluent/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } fluent-templates = { version = "0.8", features = ["handlebars"] } handlebars = { version = "4.3", features = ["dir_source"] } serde = { version = "1", features = ["derive"] } diff --git a/templating/handlebars/Cargo.toml b/templating/handlebars/Cargo.toml index 2a09b1c..63b13a6 100644 --- a/templating/handlebars/Cargo.toml +++ b/templating/handlebars/Cargo.toml @@ -4,6 +4,6 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } handlebars = { version = "4.2.1", features = ["dir_source"] } serde_json = "1.0" diff --git a/templating/minijinja/Cargo.toml b/templating/minijinja/Cargo.toml index be365e3..84c719a 100644 --- a/templating/minijinja/Cargo.toml +++ b/templating/minijinja/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" -actix-utils = "3" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } +actix-utils = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/templating/sailfish/Cargo.toml b/templating/sailfish/Cargo.toml index b067ccd..d6eb919 100644 --- a/templating/sailfish/Cargo.toml +++ b/templating/sailfish/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/templating/tera/Cargo.toml b/templating/tera/Cargo.toml index bbc5fed..68ffb86 100644 --- a/templating/tera/Cargo.toml +++ b/templating/tera/Cargo.toml @@ -4,8 +4,8 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-web = "4" -actix-web-lab = "0.18" +actix-web = { workspace = true } +actix-web-lab = { workspace = true } env_logger = "0.10" tera = "1.8.0" diff --git a/templating/tinytemplate/Cargo.toml b/templating/tinytemplate/Cargo.toml index 10da2a0..fcd0570 100644 --- a/templating/tinytemplate/Cargo.toml +++ b/templating/tinytemplate/Cargo.toml @@ -6,5 +6,5 @@ edition = "2021" [dependencies] env_logger = "0.10" tinytemplate = "1.1" -actix-web = "4" +actix-web = { workspace = true } serde_json = "1" diff --git a/templating/yarte/Cargo.toml b/templating/yarte/Cargo.toml index b334a42..832d8fa 100644 --- a/templating/yarte/Cargo.toml +++ b/templating/yarte/Cargo.toml @@ -5,7 +5,7 @@ publish = false edition = "2021" [dependencies] -actix-web = "4" +actix-web = { workspace = true } env_logger = "0.10" yarte = { version = "0.15", features = ["bytes-buf", "html-min"] } derive_more = "0.99" diff --git a/unix-socket/Cargo.toml b/unix-socket/Cargo.toml index f888fcf..80a4aab 100644 --- a/unix-socket/Cargo.toml +++ b/unix-socket/Cargo.toml @@ -5,4 +5,4 @@ edition = "2021" [dependencies] env_logger = "0.10" -actix-web = "4" +actix-web = { workspace = true } diff --git a/websockets/autobahn/Cargo.toml b/websockets/autobahn/Cargo.toml index 039ef6c..1b4d1dd 100644 --- a/websockets/autobahn/Cargo.toml +++ b/websockets/autobahn/Cargo.toml @@ -8,9 +8,9 @@ name = "websocket-autobahn-server" path = "src/main.rs" [dependencies] -actix = "0.13" -actix-web = "4" -actix-web-actors = "4.1" +actix = { workspace = true } +actix-web = { workspace = true } +actix-web-actors = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/websockets/chat-actorless/Cargo.toml b/websockets/chat-actorless/Cargo.toml index 33a5601..696f24c 100644 --- a/websockets/chat-actorless/Cargo.toml +++ b/websockets/chat-actorless/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-files = "0.6" -actix-web = "4" -actix-ws = "0.2.5" +actix-files = { workspace = true } +actix-web = { workspace = true } +actix-ws = { workspace = true } awc = "3" derive_more = "0.99.5" diff --git a/websockets/chat-broker/Cargo.toml b/websockets/chat-broker/Cargo.toml index 9c2815f..71ae97a 100644 --- a/websockets/chat-broker/Cargo.toml +++ b/websockets/chat-broker/Cargo.toml @@ -8,11 +8,11 @@ name = "server" path = "src/main.rs" [dependencies] -actix = "0.13" -actix-broker = "0.4.2" -actix-files = "0.6" -actix-web = "4" -actix-web-actors = "4.1" +actix = { workspace = true } +actix-broker = { workspace = true } +actix-files = { workspace = true } +actix-web = { workspace = true } +actix-web-actors = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/websockets/chat-tcp/Cargo.toml b/websockets/chat-tcp/Cargo.toml index 9f82463..b79f8a3 100644 --- a/websockets/chat-tcp/Cargo.toml +++ b/websockets/chat-tcp/Cargo.toml @@ -12,11 +12,11 @@ name = "websocket-tcp-client" path = "src/client.rs" [dependencies] -actix = "0.13" -actix-codec = "0.5" -actix-files = "0.6" -actix-web = "4" -actix-web-actors = "4.1" +actix = { workspace = true } +actix-codec = { workspace = true } +actix-files = { workspace = true } +actix-web = { workspace = true } +actix-web-actors = { workspace = true } byteorder = "1.2" bytes = "1" diff --git a/websockets/chat/Cargo.toml b/websockets/chat/Cargo.toml index 42eb3c2..23c3b0f 100644 --- a/websockets/chat/Cargo.toml +++ b/websockets/chat/Cargo.toml @@ -8,10 +8,10 @@ name = "websocket-chat-server" path = "src/main.rs" [dependencies] -actix = "0.13" -actix-files = "0.6" -actix-web = "4" -actix-web-actors = "4.1" +actix = { workspace = true } +actix-files = { workspace = true } +actix-web = { workspace = true } +actix-web-actors = { workspace = true } env_logger = "0.10" log = "0.4" diff --git a/websockets/echo-actorless/Cargo.toml b/websockets/echo-actorless/Cargo.toml index 6aff0d3..fb24ccc 100644 --- a/websockets/echo-actorless/Cargo.toml +++ b/websockets/echo-actorless/Cargo.toml @@ -4,9 +4,9 @@ version = "1.0.0" edition = "2021" [dependencies] -actix-files = "0.6" -actix-web = "4" -actix-ws = "0.2.5" +actix-files = { workspace = true } +actix-web = { workspace = true } +actix-ws = { workspace = true } awc = "3" env_logger = "0.10" diff --git a/websockets/echo/Cargo.toml b/websockets/echo/Cargo.toml index 86aead3..484f591 100644 --- a/websockets/echo/Cargo.toml +++ b/websockets/echo/Cargo.toml @@ -12,12 +12,11 @@ name = "websocket-client" path = "src/client.rs" [dependencies] -actix = "0.13" -actix-codec = "0.5" -actix-files = "0.6" -actix-rt = "2" -actix-web = "4" -actix-web-actors = "4.1" +actix = { workspace = true } +actix-codec = { workspace = true } +actix-files = { workspace = true } +actix-web = { workspace = true } +actix-web-actors = { workspace = true } awc = "3" env_logger = "0.10"