diff --git a/Cargo.toml b/Cargo.toml index 2d0c1b6f..4acb7371 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,4 +89,6 @@ awc = "3" env_logger = "0.10" futures-util = { version = "0.3.17", default-features = false, features = ["std"] } log = "0.4" +serde = { version = "1", features = ["derive"] } +serde_json = "1" tokio = { version = "1.13.1", features = ["sync"] } diff --git a/auth/redis-session/Cargo.toml b/auth/redis-session/Cargo.toml index 86a96a6b..74c6ae64 100644 --- a/auth/redis-session/Cargo.toml +++ b/auth/redis-session/Cargo.toml @@ -9,8 +9,8 @@ actix-session = { workspace = true, features = ["redis-actor-session"] } env_logger.workspace = true log.workspace = true -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true [dev-dependencies] actix-test.workspace = true diff --git a/auth/simple-auth-server/Cargo.toml b/auth/simple-auth-server/Cargo.toml index 4ea61bd4..0174d38f 100644 --- a/auth/simple-auth-server/Cargo.toml +++ b/auth/simple-auth-server/Cargo.toml @@ -16,8 +16,8 @@ env_logger.workspace = true once_cell = "1" r2d2 = "0.8" rust-argon2 = "1" -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true sparkpost = "0.5" uuid = { version = "1", features = ["v4", "serde"] } time = "0.3" diff --git a/background-jobs/Cargo.toml b/background-jobs/Cargo.toml index cbe505f9..324880a9 100644 --- a/background-jobs/Cargo.toml +++ b/background-jobs/Cargo.toml @@ -13,6 +13,6 @@ dotenv = "0.15" env_logger.workspace = true log.workspace = true rand = "0.8" -serde = { version = "1", features = ["derive"] } +serde.workspace = true tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } tokio-util = "0.7.4" diff --git a/basics/nested-routing/Cargo.toml b/basics/nested-routing/Cargo.toml index 18909ca1..4148f34e 100644 --- a/basics/nested-routing/Cargo.toml +++ b/basics/nested-routing/Cargo.toml @@ -7,5 +7,5 @@ edition = "2021" actix-web.workspace = true env_logger.workspace = true log.workspace = true -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true diff --git a/basics/todo/Cargo.toml b/basics/todo/Cargo.toml index dc79e0c6..172d2a02 100644 --- a/basics/todo/Cargo.toml +++ b/basics/todo/Cargo.toml @@ -12,7 +12,7 @@ actix-web-lab.workspace = true dotenv = "0.15" env_logger.workspace = true log.workspace = true -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "sqlite", "offline"] } tera = "1.5" diff --git a/cors/backend/Cargo.toml b/cors/backend/Cargo.toml index 8b836110..caf109bb 100644 --- a/cors/backend/Cargo.toml +++ b/cors/backend/Cargo.toml @@ -9,4 +9,4 @@ actix-cors.workspace = true env_logger.workspace = true serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde_json.workspace = true diff --git a/databases/diesel/Cargo.toml b/databases/diesel/Cargo.toml index 118c4912..d66eddd4 100644 --- a/databases/diesel/Cargo.toml +++ b/databases/diesel/Cargo.toml @@ -10,5 +10,5 @@ dotenv = "0.15" env_logger.workspace = true log.workspace = true serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde_json.workspace = true uuid = { version = "1", features = ["v4", "serde"] } diff --git a/databases/mongodb/Cargo.toml b/databases/mongodb/Cargo.toml index ab3b7144..82bc6500 100644 --- a/databases/mongodb/Cargo.toml +++ b/databases/mongodb/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" [dependencies] actix-web.workspace = true mongodb = "2" -serde = { version = "1", features = ["derive"] } +serde.workspace = true diff --git a/databases/redis/Cargo.toml b/databases/redis/Cargo.toml index b4b7beec..c62c27c8 100644 --- a/databases/redis/Cargo.toml +++ b/databases/redis/Cargo.toml @@ -10,4 +10,4 @@ env_logger.workspace = true futures-util.workspace = true log.workspace = true redis = { version = "0.22", default-features = false, features = ["tokio-comp", "connection-manager"] } -serde = { version = "1", features = ["derive"] } +serde.workspace = true diff --git a/databases/sqlite/Cargo.toml b/databases/sqlite/Cargo.toml index 7d889746..c880ecee 100644 --- a/databases/sqlite/Cargo.toml +++ b/databases/sqlite/Cargo.toml @@ -12,5 +12,5 @@ log.workspace = true r2d2 = "0.8" r2d2_sqlite = "0.20" # 0.21.0 blocked on sqlx sqlite update rusqlite = "0.27" # 0.28.0 blocked on sqlx sqlite update -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true diff --git a/forms/form/Cargo.toml b/forms/form/Cargo.toml index e64e9a00..8df75021 100644 --- a/forms/form/Cargo.toml +++ b/forms/form/Cargo.toml @@ -5,4 +5,4 @@ edition = "2021" [dependencies] actix-web.workspace = true -serde = { version = "1", features = ["derive"] } +serde.workspace = true diff --git a/forms/multipart-s3/Cargo.toml b/forms/multipart-s3/Cargo.toml index e5ebe7a8..70c7946b 100644 --- a/forms/multipart-s3/Cargo.toml +++ b/forms/multipart-s3/Cargo.toml @@ -16,6 +16,6 @@ env_logger.workspace = true futures-util.workspace = true log.workspace = true sanitize-filename = "0.4" -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true tokio = { workspace = true, features = ["io-util", "fs"] } diff --git a/graphql/juniper-advanced/Cargo.toml b/graphql/juniper-advanced/Cargo.toml index 343e70d1..2c2a67d9 100644 --- a/graphql/juniper-advanced/Cargo.toml +++ b/graphql/juniper-advanced/Cargo.toml @@ -17,6 +17,6 @@ r2d2_mysql = "23" dotenv = "0.15" env_logger.workspace = true log.workspace = true -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true uuid = { version = "1", features = ["v4", "serde"] } diff --git a/graphql/juniper/Cargo.toml b/graphql/juniper/Cargo.toml index ff339e2e..608e957f 100644 --- a/graphql/juniper/Cargo.toml +++ b/graphql/juniper/Cargo.toml @@ -12,5 +12,5 @@ juniper = "0.15" env_logger.workspace = true log.workspace = true -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true diff --git a/json/json-error/Cargo.toml b/json/json-error/Cargo.toml index 10c6be9e..0bd20065 100644 --- a/json/json-error/Cargo.toml +++ b/json/json-error/Cargo.toml @@ -9,4 +9,4 @@ actix-web.workspace = true env_logger.workspace = true log.workspace = true serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde_json.workspace = true diff --git a/json/json-validation/Cargo.toml b/json/json-validation/Cargo.toml index 0ed6eff2..240d012a 100644 --- a/json/json-validation/Cargo.toml +++ b/json/json-validation/Cargo.toml @@ -10,6 +10,6 @@ awc = { workspace = true, features = ["openssl"] } env_logger.workspace = true futures-util.workspace = true log.workspace = true -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true validator = { version = "0.16", features = ["derive"] } diff --git a/json/json/Cargo.toml b/json/json/Cargo.toml index dbeec693..629264a8 100644 --- a/json/json/Cargo.toml +++ b/json/json/Cargo.toml @@ -11,4 +11,4 @@ futures-util.workspace = true json = "0.12" log.workspace = true serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +serde_json.workspace = true diff --git a/json/jsonrpc/Cargo.toml b/json/jsonrpc/Cargo.toml index 9f7efe71..239e6a70 100644 --- a/json/jsonrpc/Cargo.toml +++ b/json/jsonrpc/Cargo.toml @@ -11,4 +11,4 @@ env_logger.workspace = true futures-util.workspace = true log.workspace = true serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0.78" +serde_json.workspace = true diff --git a/middleware/middleware-encrypted-payloads/Cargo.toml b/middleware/middleware-encrypted-payloads/Cargo.toml index 799baf87..08eb2b00 100644 --- a/middleware/middleware-encrypted-payloads/Cargo.toml +++ b/middleware/middleware-encrypted-payloads/Cargo.toml @@ -14,5 +14,5 @@ env_logger.workspace = true futures-util.workspace = true log.workspace = true pin-project = "1" -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true diff --git a/templating/fluent/Cargo.toml b/templating/fluent/Cargo.toml index e386a630..b8d2aa32 100644 --- a/templating/fluent/Cargo.toml +++ b/templating/fluent/Cargo.toml @@ -8,5 +8,5 @@ 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"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true diff --git a/templating/handlebars/Cargo.toml b/templating/handlebars/Cargo.toml index 3e687847..f55cdef3 100644 --- a/templating/handlebars/Cargo.toml +++ b/templating/handlebars/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" [dependencies] actix-web.workspace = true handlebars = { version = "4.2.1", features = ["dir_source"] } -serde_json = "1.0" +serde_json.workspace = true diff --git a/templating/tinytemplate/Cargo.toml b/templating/tinytemplate/Cargo.toml index 73aad821..d73a781b 100644 --- a/templating/tinytemplate/Cargo.toml +++ b/templating/tinytemplate/Cargo.toml @@ -7,4 +7,4 @@ edition = "2021" env_logger.workspace = true tinytemplate = "1.1" actix-web.workspace = true -serde_json = "1" +serde_json.workspace = true diff --git a/websockets/chat-tcp/Cargo.toml b/websockets/chat-tcp/Cargo.toml index fe38a71b..a7783bbd 100644 --- a/websockets/chat-tcp/Cargo.toml +++ b/websockets/chat-tcp/Cargo.toml @@ -24,8 +24,8 @@ env_logger.workspace = true futures-util = { workspace = true, features = ["sink"] } log.workspace = true rand = "0.8" -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde.workspace = true +serde_json.workspace = true tokio = { workspace = true, features = ["full"] } tokio-util = { version = "0.7", features = ["codec"] } tokio-stream = "0.1.8" diff --git a/websockets/chat/Cargo.toml b/websockets/chat/Cargo.toml index 6580fae3..61dd2043 100644 --- a/websockets/chat/Cargo.toml +++ b/websockets/chat/Cargo.toml @@ -17,4 +17,4 @@ env_logger.workspace = true log.workspace = true rand = "0.8" serde = "1" -serde_json = "1" +serde_json.workspace = true