This commit is contained in:
Robin Appelman 2024-02-10 18:58:00 +01:00
commit d1d0a24aa3
3 changed files with 285 additions and 312 deletions

585
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -10,16 +10,16 @@ path = "src/main.rs"
[dependencies]
sqlx = { version = "0.7.3", default_features = false, features = ["macros", "postgres", "json", "chrono", "runtime-tokio-rustls"] }
dotenv = "0.15.0"
dotenvy = "0.15.7"
main_error = "0.1.2"
tokio = { version = "1.20.0", features = ["macros", "time", "rt-multi-thread"] }
serde = { version = "1.0.140", features = ["derive"] }
tokio = { version = "1.36.0", features = ["macros", "time", "rt-multi-thread"] }
serde = { version = "1.0.196", features = ["derive"] }
serde_with = "3.6.1"
serde_json = "1.0.82"
chrono = { version = "0.4.19", features = ["serde"] }
serde_json = "1.0.113"
chrono = { version = "0.4.33", features = ["serde"] }
steamid-ng = "1.0.0"
tracing = "0.1.35"
tracing-subscriber = "0.3.15"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
anyhow = "1.0.79"
[dev-dependencies]

View file

@ -18,8 +18,8 @@ const VERSION: i16 = 2;
#[tokio::main]
async fn main() -> Result<(), MainError> {
tracing_subscriber::fmt::init();
let database_url = dotenv::var("DATABASE_URL")?;
let raw_database_url = dotenv::var("RAW_DATABASE_URL")?;
let database_url = dotenvy::var("DATABASE_URL")?;
let raw_database_url = dotenvy::var("RAW_DATABASE_URL")?;
loop {
normalize(&database_url, &raw_database_url).await?;