indicatrix_cut/lib.rs
1//! `indicatrix-cut`: browse, search, and render your own faceting-design library --
2//! import/export `.asc`, organize by rename/delete, and the full spectral renderer.
3//!
4//! Structured as a library (this file) plus a thin `main.rs` binary, so that a second
5//! binary can reuse this crate's already-compiled Slint window ([`MainWindow`]) and
6//! Rust wiring ([`gui::build_main_window`]) rather than duplicating either -- see
7//! [`gui::MainWindowHandle`]'s doc comment for how such a binary builds on top of it.
8//! That is the reason for the library/binary split, and the reason the items below
9//! have the visibility they do.
10
11// The trait solver overflows proving `Send` for the GPU export-thread closure in
12// `bridge::export_thread::batch` -- it has to walk all the way through `wgpu`'s deeply
13// nested handle types (`Buffer` -> `DispatchBuffer` -> `CoreBuffer` -> ... -> `Global` ->
14// `Hub` -> `Registry<...>`) to conclude each one is `Send`. Not a lint: this is a
15// compiler resource limit on trait-solving depth, and raising it doesn't silence
16// anything -- it lets the solver finish a proof it was already correctly attempting.
17// Default (128) isn't enough; 256 is.
18#![recursion_limit = "256"]
19
20slint::include_modules!();
21
22// Not `pub`: neither is part of the library-facing surface described above --
23// `gui::build_main_window` wires both up internally and hands back a `MainWindowHandle`
24// whose only public field is the finished `MainWindow`. Keeping them crate-private
25// also means their many pre-existing `pub fn`s (written back when this crate had no
26// `[lib]` target at all, so nothing outside `run_gui` could ever see them) don't
27// suddenly become part of a real public API needing `# Errors`/`# Panics` docs -- see
28// `gui::MainWindowHandle`'s doc comment for the one seam that IS public.
29mod bridge;
30/// Slint user interface layer.
31pub mod gui;
32/// Test-only seams for the desktop UI harness (`tests/ui_harness`); see the module docs.
33#[cfg(feature = "ui-harness")]
34pub mod harness_support;
35mod locate_io;
36mod mesh_io;
37mod plan_limit;
38mod settings;