Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Threated committed Dec 20, 2024
1 parent 21797c8 commit 2826f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ license = "Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
axum = "0.6"
axum = "0.7"
tokio = { version = "1.33.0", features = ["full", "macros"] }
reqwest = { version = "0.11", default_features = false, features = ["json", "default-tls", "stream"] }
reqwest = { version = "0.12", default_features = false, features = ["json", "default-tls", "stream"] }
serde_json = "1.0"
serde = { version = "1", features = ["derive"] }
anyhow = { version = "1.0", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod schema;
use crate::config::CONFIG;
use axum::Router;
use routes::configure_routes;
use tokio::net::TcpListener;
use tracing::{info, Level};
use tracing_subscriber::{fmt::SubscriberBuilder, EnvFilter};

Expand All @@ -22,8 +23,7 @@ async fn main() -> anyhow::Result<()> {
info!("Starting server token ON!");
let app = Router::new().nest("/api", configure_routes(db::setup_db()?));

axum::Server::bind(&CONFIG.addr)
.serve(app.into_make_service())
axum::serve(TcpListener::bind(CONFIG.addr).await?, app)
.await?;
Ok(())
}

0 comments on commit 2826f08

Please sign in to comment.