machine_check_gui/
lib.rs

1#![doc = include_str!("../README.md")]
2
3/// The backend of the GUI, built on the same architecture as the rest of machine-check,
4/// can interact with it normally.
5#[cfg(not(target_arch = "wasm32"))]
6mod backend;
7
8pub use backend::run;
9
10/// Shared structures for interactions between the backend and the frontend.
11pub mod shared;
12
13/// The frontend of the GUI is built on the WebAssembly (WASM) architecture, running in a browser
14/// and interacting with the backend.
15mod frontend;
16
17/// This include will emit an error if the frontend WASM is not properly built and prepared for use.
18///
19/// This is needed especially for development of machine-check-gui, where it is advantageous to let
20/// build.rs compilation succeed even though there were errors building the frontend using WASM,
21/// so that standard compilation can still proceed (useful especially when using rust-analyzer).
22/// This include ensures that an error will still be emitted here.
23///
24/// In case you get an error here without an obvious error in the frontend, the postponed frontend
25/// build errors still should be available as cargo build warnings if there are any.
26///
27/// See also build.rs of this package for the build implementation.
28const _: &[u8] = include_bytes!("../content/wasm/machine_check_gui_wasm.js");