Compare commits

...

4 commits

Author SHA1 Message Date
c059da9d73 build: change toml version 2025-04-28 23:47:49 +02:00
5881b5f058 feat: add database name option 2025-04-28 23:46:34 +02:00
aa92de3f3e refactor: remove unused import 2025-04-28 23:44:30 +02:00
27c735cf79 deps: add required features to sqlx 2025-04-28 23:42:11 +02:00
2 changed files with 3 additions and 4 deletions

View file

@ -6,8 +6,8 @@ edition = "2024"
[dependencies]
actix-web = "4.10"
serde = { version = "1.0.219", features = ["derive"] }
sqlx = "0.8"
toml = "0.8.21"
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres"] }
toml = "0.8"
url = { version = "2.5.4", features = ["serde"] }
[dependencies.tokio]

View file

@ -1,8 +1,6 @@
use serde::Deserialize;
use tokio::fs::read_to_string;
use crate::Error;
use url::Url;
#[derive(Debug, Deserialize)]
pub struct ConfigBuilder {
@ -15,6 +13,7 @@ pub struct Database {
username: String,
password: String,
hostname: String,
database: String,
port: u16
}