Files
ARCADIA-Studio/crates/oa-desktop/src/main.rs
T
sorokin.oleg.edu d364d3c058 Make participant ports and hierarchical model navigation discoverable
Add focused containment browsing, contextual paged search, clear outline depth and direct component-port creation and connection actions. Share exact boundary feasibility checks to avoid whole-project validation for each picker candidate. Preserve source/property drafts and interrupted-save recovery state, document source-project behavior, and record Windows/Linux native verification and independent review fixes.
2026-09-05 23:17:17 +03:00

46 lines
1.3 KiB
Rust

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
mod app;
mod behavior;
mod diagram;
mod document;
mod explorer;
mod explorer_view;
mod forms;
mod guide;
mod highlight;
mod navigation;
mod port_preview;
mod port_workflow;
mod route_edit;
mod source_navigation;
mod source_workspace;
mod style;
#[cfg(test)]
mod tests;
mod views;
mod workflow;
fn main() -> iced::Result {
// Small headless entry points support reproducible examples and CI validation.
let args: Vec<_> = std::env::args().collect();
if args.get(1).is_some_and(|s| s == "--write-example") {
let path = args
.get(2)
.expect("usage: arcadia-studio --write-example PATH");
oa_core::persistence::save(std::path::Path::new(path), &oa_core::Project::demo())
.expect("write example");
return Ok(());
}
iced::application(app::App::new, app::App::update, app::App::view)
.title(app::App::title)
.theme(|_: &app::App| style::theme())
.subscription(app::App::subscription)
.window(iced::window::Settings {
size: iced::Size::new(1440., 900.),
min_size: Some(iced::Size::new(1100., 700.)),
exit_on_close_request: false,
..Default::default()
})
.run()
}