1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

move serde deps to workspace

This commit is contained in:
Rob Ede 2023-01-02 20:35:11 +00:00
parent 91ffa11e19
commit 9e4882285e
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
25 changed files with 38 additions and 36 deletions

View File

@ -89,4 +89,6 @@ awc = "3"
env_logger = "0.10" env_logger = "0.10"
futures-util = { version = "0.3.17", default-features = false, features = ["std"] } futures-util = { version = "0.3.17", default-features = false, features = ["std"] }
log = "0.4" log = "0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1.13.1", features = ["sync"] } tokio = { version = "1.13.1", features = ["sync"] }

View File

@ -9,8 +9,8 @@ actix-session = { workspace = true, features = ["redis-actor-session"] }
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
[dev-dependencies] [dev-dependencies]
actix-test.workspace = true actix-test.workspace = true

View File

@ -16,8 +16,8 @@ env_logger.workspace = true
once_cell = "1" once_cell = "1"
r2d2 = "0.8" r2d2 = "0.8"
rust-argon2 = "1" rust-argon2 = "1"
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
sparkpost = "0.5" sparkpost = "0.5"
uuid = { version = "1", features = ["v4", "serde"] } uuid = { version = "1", features = ["v4", "serde"] }
time = "0.3" time = "0.3"

View File

@ -13,6 +13,6 @@ dotenv = "0.15"
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
rand = "0.8" rand = "0.8"
serde = { version = "1", features = ["derive"] } serde.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
tokio-util = "0.7.4" tokio-util = "0.7.4"

View File

@ -7,5 +7,5 @@ edition = "2021"
actix-web.workspace = true actix-web.workspace = true
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true

View File

@ -12,7 +12,7 @@ actix-web-lab.workspace = true
dotenv = "0.15" dotenv = "0.15"
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "sqlite", "offline"] } sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "sqlite", "offline"] }
tera = "1.5" tera = "1.5"

View File

@ -9,4 +9,4 @@ actix-cors.workspace = true
env_logger.workspace = true env_logger.workspace = true
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json.workspace = true

View File

@ -10,5 +10,5 @@ dotenv = "0.15"
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json.workspace = true
uuid = { version = "1", features = ["v4", "serde"] } uuid = { version = "1", features = ["v4", "serde"] }

View File

@ -6,4 +6,4 @@ edition = "2021"
[dependencies] [dependencies]
actix-web.workspace = true actix-web.workspace = true
mongodb = "2" mongodb = "2"
serde = { version = "1", features = ["derive"] } serde.workspace = true

View File

@ -10,4 +10,4 @@ env_logger.workspace = true
futures-util.workspace = true futures-util.workspace = true
log.workspace = true log.workspace = true
redis = { version = "0.22", default-features = false, features = ["tokio-comp", "connection-manager"] } redis = { version = "0.22", default-features = false, features = ["tokio-comp", "connection-manager"] }
serde = { version = "1", features = ["derive"] } serde.workspace = true

View File

@ -12,5 +12,5 @@ log.workspace = true
r2d2 = "0.8" r2d2 = "0.8"
r2d2_sqlite = "0.20" # 0.21.0 blocked on sqlx sqlite update r2d2_sqlite = "0.20" # 0.21.0 blocked on sqlx sqlite update
rusqlite = "0.27" # 0.28.0 blocked on sqlx sqlite update rusqlite = "0.27" # 0.28.0 blocked on sqlx sqlite update
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true

View File

@ -5,4 +5,4 @@ edition = "2021"
[dependencies] [dependencies]
actix-web.workspace = true actix-web.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true

View File

@ -16,6 +16,6 @@ env_logger.workspace = true
futures-util.workspace = true futures-util.workspace = true
log.workspace = true log.workspace = true
sanitize-filename = "0.4" sanitize-filename = "0.4"
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
tokio = { workspace = true, features = ["io-util", "fs"] } tokio = { workspace = true, features = ["io-util", "fs"] }

View File

@ -17,6 +17,6 @@ r2d2_mysql = "23"
dotenv = "0.15" dotenv = "0.15"
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
uuid = { version = "1", features = ["v4", "serde"] } uuid = { version = "1", features = ["v4", "serde"] }

View File

@ -12,5 +12,5 @@ juniper = "0.15"
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true

View File

@ -9,4 +9,4 @@ actix-web.workspace = true
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json.workspace = true

View File

@ -10,6 +10,6 @@ awc = { workspace = true, features = ["openssl"] }
env_logger.workspace = true env_logger.workspace = true
futures-util.workspace = true futures-util.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
validator = { version = "0.16", features = ["derive"] } validator = { version = "0.16", features = ["derive"] }

View File

@ -11,4 +11,4 @@ futures-util.workspace = true
json = "0.12" json = "0.12"
log.workspace = true log.workspace = true
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json.workspace = true

View File

@ -11,4 +11,4 @@ env_logger.workspace = true
futures-util.workspace = true futures-util.workspace = true
log.workspace = true log.workspace = true
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.78" serde_json.workspace = true

View File

@ -14,5 +14,5 @@ env_logger.workspace = true
futures-util.workspace = true futures-util.workspace = true
log.workspace = true log.workspace = true
pin-project = "1" pin-project = "1"
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true

View File

@ -8,5 +8,5 @@ actix-web.workspace = true
actix-web-lab.workspace = true actix-web-lab.workspace = true
fluent-templates = { version = "0.8", features = ["handlebars"] } fluent-templates = { version = "0.8", features = ["handlebars"] }
handlebars = { version = "4.3", features = ["dir_source"] } handlebars = { version = "4.3", features = ["dir_source"] }
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true

View File

@ -6,4 +6,4 @@ edition = "2021"
[dependencies] [dependencies]
actix-web.workspace = true actix-web.workspace = true
handlebars = { version = "4.2.1", features = ["dir_source"] } handlebars = { version = "4.2.1", features = ["dir_source"] }
serde_json = "1.0" serde_json.workspace = true

View File

@ -7,4 +7,4 @@ edition = "2021"
env_logger.workspace = true env_logger.workspace = true
tinytemplate = "1.1" tinytemplate = "1.1"
actix-web.workspace = true actix-web.workspace = true
serde_json = "1" serde_json.workspace = true

View File

@ -24,8 +24,8 @@ env_logger.workspace = true
futures-util = { workspace = true, features = ["sink"] } futures-util = { workspace = true, features = ["sink"] }
log.workspace = true log.workspace = true
rand = "0.8" rand = "0.8"
serde = { version = "1", features = ["derive"] } serde.workspace = true
serde_json = "1" serde_json.workspace = true
tokio = { workspace = true, features = ["full"] } tokio = { workspace = true, features = ["full"] }
tokio-util = { version = "0.7", features = ["codec"] } tokio-util = { version = "0.7", features = ["codec"] }
tokio-stream = "0.1.8" tokio-stream = "0.1.8"

View File

@ -17,4 +17,4 @@ env_logger.workspace = true
log.workspace = true log.workspace = true
rand = "0.8" rand = "0.8"
serde = "1" serde = "1"
serde_json = "1" serde_json.workspace = true