mirror of
https://codeberg.org/icewind/log-archiver.git
synced 2026-06-03 17:44:06 +02:00
cargo updates
This commit is contained in:
parent
0842c3e136
commit
a650f7f970
4 changed files with 411 additions and 432 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
/target
|
/target
|
||||||
.env
|
.env
|
||||||
.direnv
|
.direnv
|
||||||
|
result
|
||||||
|
|
|
||||||
836
Cargo.lock
generated
836
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
14
Cargo.toml
14
Cargo.toml
|
|
@ -6,11 +6,11 @@ edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
sqlx = { version = "0.7.3", default_features = false, features = ["macros", "postgres", "json", "runtime-tokio-rustls"] }
|
sqlx = { version = "0.7.3", default_features = false, features = ["macros", "postgres", "json", "runtime-tokio-rustls"] }
|
||||||
dotenv = "0.15.0"
|
dotenvy = "0.15.7"
|
||||||
main_error = "0.1.2"
|
main_error = "0.1.2"
|
||||||
tokio = { version = "1.20.0", features = ["macros", "time", "rt-multi-thread"] }
|
tokio = { version = "1.36.0", features = ["macros", "time", "rt-multi-thread"] }
|
||||||
reqwest = { version = "0.11.11", default-features = false, features = ["rustls-tls"] }
|
reqwest = { version = "0.11.24", default-features = false, features = ["rustls-tls"] }
|
||||||
serde = { version = "1.0.140", features = ["derive"] }
|
serde = { version = "1.0.196", features = ["derive"] }
|
||||||
serde_json = "1.0.82"
|
serde_json = "1.0.113"
|
||||||
chrono = { version = "0.4.19", features = ["serde"] }
|
chrono = { version = "0.4.34", features = ["serde"] }
|
||||||
zip = "0.6.2"
|
zip = "0.6.6"
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ use zip::ZipArchive;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), MainError> {
|
async fn main() -> Result<(), MainError> {
|
||||||
let database_url = dotenv::var("DATABASE_URL")?;
|
let database_url = dotenvy::var("DATABASE_URL")?;
|
||||||
let api_host = dotenv::var("API_HOST").unwrap_or_else(|_| "https://logs.tf".to_string());
|
let api_host = dotenvy::var("API_HOST").unwrap_or_else(|_| "https://logs.tf".to_string());
|
||||||
let log_target = PathBuf::from(dotenv::var("LOG_TARGET")?);
|
let log_target = PathBuf::from(dotenvy::var("LOG_TARGET")?);
|
||||||
|
|
||||||
let args = args();
|
let args = args();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue