diff --git a/Cargo.toml b/Cargo.toml index 03eb2af..e10a3ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,8 @@ edition = "2024" [dependencies] actix-web = "4.10" serde = { version = "1.0.219", features = ["derive"] } -sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres"] } -toml = "0.8" +sqlx = "0.8" +toml = "0.8.21" url = { version = "2.5.4", features = ["serde"] } [dependencies.tokio] diff --git a/src/config.rs b/src/config.rs index a9f720d..a58718e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,6 +1,8 @@ use serde::Deserialize; use tokio::fs::read_to_string; use crate::Error; +use url::Url; + #[derive(Debug, Deserialize)] pub struct ConfigBuilder { @@ -13,7 +15,6 @@ pub struct Database { username: String, password: String, hostname: String, - database: String, port: u16 }