Update sea orm rocket (#2431)

* Update sea-orm-rocket dependencies

* Update rocket example dependencies

---------

Co-authored-by: Frederik Terstappen <freterstappen+gitlab@gmail.com>
This commit is contained in:
Frederik Terstappen 2024-12-24 14:49:28 +01:00 committed by GitHub
parent 72c6fc8931
commit 13a3de6633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 30 additions and 26 deletions

View File

@ -11,12 +11,12 @@ async-trait = { version = "0.1" }
rocket-example-service = { path = "../service" } rocket-example-service = { path = "../service" }
futures = { version = "0.3" } futures = { version = "0.3" }
futures-util = { version = "0.3" } futures-util = { version = "0.3" }
rocket = { version = "0.5.0", features = ["json"] } rocket = { version = "0.5", features = ["json"] }
rocket_dyn_templates = { version = "0.1.0-rc.1", features = ["tera"] } rocket_dyn_templates = { version = "0.2", features = ["tera"] }
serde_json = { version = "1" } serde_json = { version = "1" }
entity = { path = "../entity" } entity = { path = "../entity" }
migration = { path = "../migration" } migration = { path = "../migration" }
tokio = "1.29.0" tokio = "1.41"
[dependencies.sea-orm-rocket] [dependencies.sea-orm-rocket]
path = "../../../sea-orm-rocket/lib" # remove this line in your own project and uncomment the following line path = "../../../sea-orm-rocket/lib" # remove this line in your own project and uncomment the following line

View File

@ -9,7 +9,7 @@ name = "entity"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
rocket = { version = "0.5.0", features = ["json"] } rocket = { version = "0.5", features = ["json"] }
[dependencies.sea-orm] [dependencies.sea-orm]
path = "../../../" # remove this line in your own project path = "../../../" # remove this line in your own project

View File

@ -9,7 +9,7 @@ name = "migration"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
rocket = { version = "0.5.0" } rocket = { version = "0.5" }
async-std = { version = "1", features = ["attributes", "tokio1"] } async-std = { version = "1", features = ["attributes", "tokio1"] }
[dependencies.sea-orm-migration] [dependencies.sea-orm-migration]

View File

@ -19,7 +19,7 @@ features = [
] ]
[dev-dependencies] [dev-dependencies]
tokio = "1.20.0" tokio = "1.41"
[features] [features]
mock = ["sea-orm/mock"] mock = ["sea-orm/mock"]

View File

@ -11,14 +11,18 @@ async-trait = { version = "0.1" }
rocket-okapi-example-service = { path = "../service" } rocket-okapi-example-service = { path = "../service" }
futures = { version = "0.3" } futures = { version = "0.3" }
futures-util = { version = "0.3" } futures-util = { version = "0.3" }
rocket = { version = "0.5.0", features = ["json"] } rocket = { version = "0.5", features = ["json"] }
rocket_cors = "0.6.0" rocket_cors = "0.6"
rocket_dyn_templates = { version = "0.1.0-rc.1", features = ["tera"] } rocket_dyn_templates = { version = "0.2", features = ["tera"] }
rocket_okapi = { version = "0.8.0", features = ["swagger", "rapidoc", "rocket_db_pools"] } rocket_okapi = { version = "0.9", features = [
"swagger",
"rapidoc",
"rocket_db_pools",
] }
serde_json = { version = "1" } serde_json = { version = "1" }
entity = { path = "../entity" } entity = { path = "../entity" }
migration = { path = "../migration" } migration = { path = "../migration" }
tokio = "1.20.0" tokio = "1.41"
serde = "1.0" serde = "1.0"
dto = { path = "../dto" } dto = { path = "../dto" }

View File

@ -9,10 +9,10 @@ name = "dto"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
rocket = { version = "0.5.0", features = ["json"] } rocket = { version = "0.5", features = ["json"] }
[dependencies.entity] [dependencies.entity]
path = "../entity" path = "../entity"
[dependencies.rocket_okapi] [dependencies.rocket_okapi]
version = "0.8.0" version = "0.9"

View File

@ -9,11 +9,11 @@ name = "entity"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
rocket = { version = "0.5.0", features = ["json"] } rocket = { version = "0.5", features = ["json"] }
[dependencies.sea-orm] [dependencies.sea-orm]
path = "../../../" # remove this line in your own project path = "../../../" # remove this line in your own project
version = "~1.1.3" # sea-orm version version = "~1.1.3" # sea-orm version
[dependencies.rocket_okapi] [dependencies.rocket_okapi]
version = "0.8.0" version = "0.9"

View File

@ -9,7 +9,7 @@ name = "migration"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
rocket = { version = "0.5.0" } rocket = { version = "0.5" }
async-std = { version = "1", features = ["attributes", "tokio1"] } async-std = { version = "1", features = ["attributes", "tokio1"] }
[dependencies.sea-orm-migration] [dependencies.sea-orm-migration]

View File

@ -13,13 +13,13 @@ path = "../../../" # remove this line in your own project
version = "~1.1.3" # sea-orm version version = "~1.1.3" # sea-orm version
features = [ features = [
"runtime-tokio-native-tls", "runtime-tokio-native-tls",
# "sqlx-postgres", # "sqlx-postgres",
# "sqlx-mysql", # "sqlx-mysql",
"sqlx-sqlite", "sqlx-sqlite",
] ]
[dev-dependencies] [dev-dependencies]
tokio = "1.20.0" tokio = "1.41"
[features] [features]
mock = ["sea-orm/mock"] mock = ["sea-orm/mock"]

View File

@ -13,10 +13,10 @@ edition = "2021"
proc-macro = true proc-macro = true
[dependencies] [dependencies]
devise = "0.3" devise = "0.4"
quote = "1" quote = "1"
[dev-dependencies] [dev-dependencies]
rocket = { version = "0.5.0", default-features = false } rocket = { version = "0.5", default-features = false }
trybuild = "1.0" trybuild = "1"
version_check = "0.9" version_check = "0.9"

View File

@ -13,19 +13,19 @@ edition = "2021"
all-features = true all-features = true
[dependencies.rocket] [dependencies.rocket]
version = "0.5.0" version = "0.5"
default-features = false default-features = false
[dependencies.sea-orm-rocket-codegen] [dependencies.sea-orm-rocket-codegen]
path = "../codegen" path = "../codegen"
version = "0.5.1" version = "0.5"
[dependencies.rocket_okapi] [dependencies.rocket_okapi]
version = "0.8.0" version = "0.9"
default-features = false default-features = false
optional = true optional = true
[dev-dependencies.rocket] [dev-dependencies.rocket]
version = "0.5.0" version = "0.5"
default-features = false default-features = false
features = ["json"] features = ["json"]