//! Veza Rust Common Library
//! 
//! This library provides common utilities, types, and traits shared between
//! Veza's Rust services (chat-server and stream-server).

pub mod auth;
pub mod config;
pub mod error;
pub mod logging;
pub mod metrics;
pub mod traits;
pub mod types;
pub mod utils;

// Re-export commonly used types
pub use error::{VezaError, VezaResult};
pub use types::*;

/// Initialize common components for Veza services
pub async fn init() -> VezaResult<()> {
    logging::init()?;
    tracing::info!("Veza Rust Common initialized");
    Ok(())
}

/// Shutdown common components
pub async fn shutdown() {
    tracing::info!("Veza Rust Common shutting down");
}
