Update dependencies
Some checks failed
Build and Publish Docker Container / build (push) Failing after 56s

This commit is contained in:
Joshua Coles 2024-02-22 17:14:22 +00:00
parent cab285b8df
commit 5da46563d1
5 changed files with 856 additions and 584 deletions

1400
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,25 +7,25 @@ edition = "2021"
entity = { path = "entity" } entity = { path = "entity" }
migration = { path = "migration" } migration = { path = "migration" }
axum = { version = "0.6.20", features = ["multipart"] } axum = { version = "0.7.4", features = ["multipart"] }
tokio = { version = "1.32.0", features = ["full"] } tokio = { version = "1.36.0", features = ["full"] }
sea-orm = { version = "0.12", features = [ sea-orm = { version = "1.0.0-rc.1", features = [
"sqlx-postgres", "sqlx-postgres",
"runtime-tokio-rustls", "runtime-tokio-rustls",
"macros" "macros"
] } ] }
serde = { version = "1.0.188", features = ["derive"] } serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.105" serde_json = "1.0.114"
tracing-subscriber = "0.3.17" tracing-subscriber = "0.3.18"
tracing = "0.1.37" tracing = "0.1.40"
anyhow = "1.0.75" anyhow = "1.0.80"
thiserror = "1.0.48" thiserror = "1.0.57"
http = "0.2.9" http = "1.0.0"
chrono = { version = "0.4.28", features = ["serde"] } chrono = { version = "0.4.34", features = ["serde"] }
num-traits = "0.2.16" num-traits = "0.2.18"
csv = "1.2.2" csv = "1.3.0"
clap = "4.4.2" clap = "4.5.1"
[workspace] [workspace]
members = [".", "migration", "entity"] members = [".", "migration", "entity"]

View File

@ -9,5 +9,5 @@ name = "entity"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
sea-orm = { version = "^0" } sea-orm = { version = "1.0.0-rc.1" }
serde = { version = "1.0.158", features = ["derive"] } serde = { version = "1.0.197", features = ["derive"] }

View File

@ -12,7 +12,7 @@ path = "src/lib.rs"
async-std = { version = "1", features = ["attributes", "tokio1"] } async-std = { version = "1", features = ["attributes", "tokio1"] }
[dependencies.sea-orm-migration] [dependencies.sea-orm-migration]
version = "0.12.0" version = "1.0.0-rc.1"
features = [ features = [
"runtime-tokio-rustls", # `ASYNC_RUNTIME` feature "runtime-tokio-rustls", # `ASYNC_RUNTIME` feature
"sqlx-postgres", # `DATABASE_DRIVER` feature "sqlx-postgres", # `DATABASE_DRIVER` feature

View File

@ -52,10 +52,8 @@ async fn main() -> anyhow::Result<()> {
.layer(Extension(connection.clone())); .layer(Extension(connection.clone()));
tracing::debug!("listening on {}", &config.addr); tracing::debug!("listening on {}", &config.addr);
axum::Server::bind(&config.addr) let listener = tokio::net::TcpListener::bind(&config.addr).await.unwrap();
.serve(app.into_make_service()) axum::serve(listener, app).await.unwrap();
.await
.unwrap();
Ok(()) Ok(())
} }