Three-crate Cargo workspace structured per PROJECT.md spec: - crates/sylpheed-formats — Xbox 360 format parsers (no Bevy) - crates/sylpheed-viewer — Bevy 0.15 asset viewer + egui UI - crates/sylpheed-cli — CLI tools (extract/list/sniff/texture) Milestone 1 features: - XISO disc image reading via xdvdfs 0.8 - XPR2 texture container parsing + Morton de-tiling - D3DFORMAT → wgpu TextureFormat mapping (DXT1/3/5, DXN, ARGB) - Custom Bevy AssetLoader for .xpr files - Orbit camera (LMB orbit, RMB pan, scroll zoom) - egui file browser + RE notes panel - CLI: extract / list / sniff / texture info / texture export - GitHub Actions CI (Linux, macOS, Windows, WASM) - Trunk WASM build config Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
728 B
Rust
22 lines
728 B
Rust
//! 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();
|
|
}
|