feat: clean cargo.toml

This commit is contained in:
Max batleforc 2025-05-27 19:52:42 +02:00
parent 9ecece1a5b
commit c5a35ff5d0
No known key found for this signature in database
GPG Key ID: 25D243AB4B6AC9E7
3 changed files with 5 additions and 17 deletions

7
Cargo.lock generated
View File

@ -526,19 +526,12 @@ name = "cli"
version = "0.1.0"
dependencies = [
"bot",
"chrono",
"clickhouse",
"clickhouse_pool",
"config",
"database",
"poise",
"serde",
"tokio",
"tokio-cron-scheduler",
"toml",
"tool_tracing",
"tracing",
"uuid",
]
[[package]]

View File

@ -5,17 +5,10 @@ edition = "2021"
[dependencies]
poise = { workspace = true }
tokio = { workspace = true }
serde = { workspace = true }
tracing = { workspace = true }
database = { path = "../../libs/database" }
tool_tracing = { path = "../../libs/tool_tracing" }
toml = "0.8"
clickhouse_pool = { path = "../../libs/clickhouse_pool" }
clickhouse = { workspace = true }
uuid = { workspace = true }
chrono = { workspace = true }
tokio-cron-scheduler = { version = "0.14", features = [
"tracing-subscriber",
"signal",

View File

@ -1,16 +1,18 @@
use bot::start_bot;
use config::parse_local_config;
use database::{create_manager_and_init, create_pool_manager};
use tool_tracing::init::init_tracing;
use tracing::{error, info};
#[tokio::main]
async fn main() {
println!(include_str!("banner.art"));
let config = parse_local_config();
tool_tracing::init::init_tracing(config.tracing.clone(), config.bot_name.clone());
init_tracing(config.tracing.clone(), config.bot_name.clone());
info!("Init Database");
let datalake_config = database::create_pool_manager(config.persistence.clone()).unwrap();
let manager = match database::create_manager_and_init(datalake_config).await {
let datalake_config = create_pool_manager(config.persistence.clone()).unwrap();
let manager = match create_manager_and_init(datalake_config).await {
Ok(manager) => {
info!("Database manager created successfully");
manager