//! Native entry point for the sylpheed-viewer binary.
//!
//! On desktop, this is the executable that gets built by
//! `cargo run --bin sylpheed-viewer` or `just run`.
//!
//! On the web, `lib.rs` is the WASM entry point instead.

fn main() {
    // Initialise logging for native (WASM uses browser console automatically)
    #[cfg(not(target_arch = "wasm32"))]
    tracing_subscriber::fmt()
        .with_env_filter(
            tracing_subscriber::EnvFilter::from_default_env()
                .add_directive("sylpheed=info".parse().unwrap())
                .add_directive("wgpu=warn".parse().unwrap())
                .add_directive("bevy=warn".parse().unwrap()),
        )
        .init();

    sylpheed_viewer::run();
}
