Skip to content

Commit 42ed0c9

Browse files
daniel-samsonDaniel Samson
andauthored
Upgrading to sea 0.11.0 (#25)
Co-authored-by: Daniel Samson <daniel.samson@finacial-cloud.com>
1 parent f3c5c70 commit 42ed0c9

File tree

6 files changed

+43
-110
lines changed

6 files changed

+43
-110
lines changed

Cargo.lock

Lines changed: 35 additions & 105 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ log = "0.4"
1414
futures = "0.3"
1515
utoipa = { version = "3", features = ["actix_extras"] }
1616
utoipa-swagger-ui = { version = "3", features = ["actix-web"] }
17-
sea-orm = { version = "^0.10.7", features = [ "sqlx-sqlite", "runtime-actix-rustls", "macros", "mock" ] }
17+
sea-orm = { version = "^0.11.0", features = [ "sqlx-sqlite", "runtime-actix-rustls", "macros", "mock" ] }
1818

1919
[workspace]
2020
members = [".", "migration"]

migration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ path = "src/lib.rs"
1212
async-std = { version = "^1", features = ["attributes", "tokio1"] }
1313

1414
[dependencies.sea-orm-migration]
15-
version = "^0.10.7"
15+
version = "^0.11.0"
1616
features = [
1717
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
1818
# View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.

src/entities/audit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use sea_orm::entity::prelude::*;
44

5-
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
5+
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
66
#[sea_orm(table_name = "audit")]
77
pub struct Model {
88
#[sea_orm(primary_key)]

src/health.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::time::{SystemTime, UNIX_EPOCH};
88
use utoipa::ToSchema;
99

1010
use crate::entities::{prelude::*, *};
11-
use crate::env::env_database_url;
11+
use crate::env::env_database_url;
1212

1313
#[derive(Serialize, ToSchema)]
1414
pub(super) enum HealthLevel {

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ async fn main() -> Result<(), impl Error> {
2929
);
3030

3131
#[derive(OpenApi)]
32-
#[openapi(paths(health::check_health), components(schemas(HealthCheck, HealthLevel)))]
32+
#[openapi(
33+
paths(health::check_health),
34+
components(schemas(HealthCheck, HealthLevel))
35+
)]
3336
struct ApiDocV1;
3437

3538
HttpServer::new(move || {

0 commit comments

Comments
 (0)