rustylink/
lib.rs

1pub mod block;
2/// Simulink System XML parser.
3///
4/// This crate provides a `SimulinkParser` to load and parse Simulink XML system
5/// descriptions into strongly-typed Rust structures.
6///
7/// The binary `rustylink` demonstrates usage and prints the parsed JSON.
8pub mod color;
9pub mod label_place;
10pub mod model;
11pub mod parser;
12
13// Optional mask evaluation feature
14pub mod mask_eval;
15
16// Optional GUI/egui functionality lives behind the `egui` feature flag.
17// This module provides an interactive viewer for Simulink subsystems and
18// is used by the example in examples/egui_viewer.rs.
19#[cfg(feature = "egui")]
20pub mod egui_app;
21
22// Block type registry and configuration (egui feature)
23#[cfg(feature = "egui")]
24pub mod block_types;
25
26// Re-export core API so downstream users can easily access/modify the registry
27#[cfg(feature = "egui")]
28pub use block_types::{
29    BlockTypeConfig, IconSpec, Rgb, get_block_type_config_map, set_block_type_config,
30    update_block_type_config,
31};