Skip to content

Commit

Permalink
chore: update dependencies and refactor main function to use anyhow f…
Browse files Browse the repository at this point in the history
…or error handling
  • Loading branch information
Kremilly committed Feb 23, 2025
1 parent 6c8b071 commit a11c1a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ homepage = "https://dumpsync.com"

[dependencies]
aes-gcm = "0.10.3"
anyhow = "1.0.96"
chrono = "0.4.39"
clap = { version = "4.5.28", features = ["cargo", "derive"] }
clap = { version = "4.5.30", features = ["cargo", "derive"] }
clap-cargo = "0.15.2"
colored = "3.0.0"
crc32fast = "1.4.2"
Expand All @@ -30,8 +31,8 @@ rand = "0.9.0"
regex = "1.11.1"
reqwest = { version = "0.12.12", features = ["blocking"] }
rpassword = "7.3.1"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.137"
serde = { version = "1.0.218", features = ["derive"] }
serde_json = "1.0.139"
serde_yaml = "0.9.34"
sha1 = "0.10.6"
sha2 = "0.10.8"
Expand Down
7 changes: 4 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ mod utils;
mod plugins;
mod helpers;
mod handlers;

mod args_cli;
mod dump_sync;
mod constants;

use std::error::Error;
use anyhow::Result;
use crate::dump_sync::DumpSync;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
DumpSync.init().await?;
async fn main() -> Result<()> {
let _ = DumpSync.init().await;
Ok(())
}

0 comments on commit a11c1a7

Please sign in to comment.