Structure application crates#

The structure application (decision 4 of Building structures) is developed apart from the core, so that it and the way it talks to the core can change on their own. Its crates live in apps/structure/ (workspace members apps/structure/*); their tests run separately from the core's.

Crate What Depends on
ohl-structure-loads Load-case recipes ([[load_case]] in a .ohls, .ohlslc on their own), LineValues and LoadTable (plain, serde-able data), evaluate, CSV of the table and the recipes ohl-core, ohl-structures only: no line, no ohl-loads
ohl-structure-link The boundary: the one crate where the application meets the core. line_values (a placed structure's loads from ohl_loads::structure_loads → LineValues), fe_loads (a table case → ohl_structures_fe::Loads; a point on a member shared to its ends), analyse_cases (table cases solved on the structure's model → CaseResult, plain data: displacements, member forces and usage, reactions, Σ loads and Σ reactions), export_structure (a level 3 structure with its cross-section library and load table as plain ExportStructure for the exports). placed_values (a placed structure's line values with the other places of its type, written for the application, below), SectionAreas (member areas from the cross-section library for surface loads); joint_details (2026-11-02: each joint's member ends with their direction, face, angle and condition, each value with its Source — given, the member's, worked out, assumed, missing —, the bolts placed, the plates, the joint's Completeness; the profiles from export_structure, the design data from the model) member_ends, flat_leg, member_capacity (a member's two ends, its leg bolted laid flat, its ASCE 10-97 capacities from the connections and the bolt library), and face_view / face_svg / face_pdf (a joint square to a face as marks, and as an A4 sheet through ohl-drawing) core crates (with ohl-drawing since 2026-11-02, for the face views' sheets) + ohl-structure-loads
ohl-structure-edit The edits of a structure file, each a function on its text (toml_edit: comments and order kept); StructureFile with undo and redo of whole edits (a drag is one); Geometry (standing on an extension: geometry_with; the pole's wireframe), picking; missing(level) (what the next level lacks — also the pole's outline and design, extension members without cross-sections — and advice: points on no joint, joints on one member, members crossing without a joint, an extension without members at level 3); the pole's edits (pole: outline rows, shape, fields, a .ohlp brought in) and the extensions' (extension_edits: joints, members, the piece in one go, legs); the edits of the load-case recipes (load_cases.rs: by place, merge_load_cases for imports); the body tools: generators (generators, pure), apply and rebuild (rebuild), the [[generator]] and [[symmetry]] tables (body), mirrored edits (symmetry), member groups (groups); the cross-sections of the cross-section library typed (section_library: SectionDraft, put_section, remove_section, SHAPES). No UI ohl-core, ohl-structures (the file format only), ohl-sections (a typed cross-section checked and computed by the library). ohl-app's structure screen depends on it, so there is one implementation of the edits
ohl-structure-export The exports of a level 3 structure (Structure exports): IFC4 (members with profile solids and the structural analysis model with load cases), IFC2x3 (members, for steel-detailing programs that take IFC2x3 only), SAF (xlsx, its own small writer on zip), CSV tables; the tool ohl-structure-export (not ohl structures export: ohl-cli is a core crate) ohl-structure-link (export_structure, the plain ExportStructure), ohl-structure-loads, ohl-sections, ohl-structures (parsing the file only)
ohl-structure-app The binary ohl-structure, OHL-Structure (eframe): the menus at the top and the panels under them (below), the 3D view in local axes with its hotbar of tools, the Inspector, the header and the To do list (the Level panel) with what the next level lacks, Save / Save as, undo / redo. The line application's Edit… starts it on the structure's file and reads the file again when it is saved. Modules: app.rs (the window, the state, the frame), menus.rs (the menu bar and the actions it shares with the panels' tools, the windows), layout.rs (the panels and menus: Panel, Area, the default arrangement — text and edit panels on the left, the views on the right —, open_panel, the recognition of an old default), tables.rs (the panels of tables of Geometry, Body, Design and their actions), in_line_tab.rs (Line loads), style.rs (the look: text sizes, solid scroll bars, value fields unlike buttons, the UI scale; the tables' header and number-cell helpers), notices.rs (the messages as notices), tools.rs (the 3D view's tools, the hotbar, the inventory, the tool strip), inspector.rs (the Inspector panel), body_tab.rs and generators_ui.rs (the Joints and Members panels' tools, Generators, Groups), load_cases_tab.rs (Load recipes, Load table, the line's forces as rows, the status block, Store in the structure file), results_tab.rs (FE results), export_menu.rs (File › Export), pole_panel.rs (Pole, Pole design), joint_panel.rs (Design › Joint details and the Detail view, a tab on top of the 3D view: the close-up, the face view, the connections table; the joints' colours for View › Joints by their details), member_panel.rs (Design › Member details: a member's two ends, its capacities live, its leg laid flat in the Detail view), joint_tools.rs (stage 3: the table's values edited, the bolt layout and preset forms, copies, presets, plates), layout_window.rs (Design › Lay out joints… and Joint details › Lay out joint…: the automatic joint layout's window, its preview on a thread, Apply as one undo step, the layout following edits through StructureFile::set_follow), detail_tools.rs (the Detail view's tools and its toolbar over the drawing), detail_view.rs (getting around the Detail view: the Edit tool's question, back from a member to its joint, Escape, a bolt's or plate's properties picked with Edit), close_up.rs (the joint's close-up as small triangles sorted by depth, in one mesh), extensions_panel.rs (Extensions), section_editor.rs (the cross-section library typed: Cross-sections & materials › Cross-section library), libraries.rs (File › Import and Export of the libraries, the Libraries panel: LibKind, Folders, references, scan, import, export, sections_subset), start.rs (the start page, recent files, New structure), plugins_ui.rs (File › Plugins › Plugin manager, Loads › Load cases from a design code), context_menu.rs (the 3D view's right-click menu) ohl-structure-edit, ohl-structure-loads, ohl-structure-link (analysis only through it; also pole_file_id, model_file_name to check .ohlp / .ohlfe files), ohl-structure-export, ohl-structures, ohl-sections, ohl-plugins (core: manifests, discovery, the host, the shared settings), ohl-render (drawing only)
ohl-structure-tests Test-only (publish = false, empty library, tests in tests/): the synthetic example line solved by the core, through the link, against hand values and the line run's own structure check; the application's formats refusing typos; a body built by the generators solved by the FE model (body_fe.rs) everything above, as dev-dependencies

Rules:

  • Core crates do not depend on apps/structure crates (also not as dev-dependencies), with one exception: ohl-app uses ohl-structure-edit (its structure screen), ohl-structure-loads and ohl-structure-link (the line values it writes for OHL-Structure). The core keeps the application's tables unread where it must hold them: StructureType::load_cases is the raw [[load_case]] tables (and generators, symmetry the raw [[generator]], [[symmetry]] tables, read by ohl-structure-edit), as [[section]] / [[material]] are for ohl-structures-fe. For that reason the typo test of the application's formats is in ohl-structure-tests, not in crates/ohl-cli/tests/format_typos.rs.
  • Application crates other than the link take and give plain data; only the link reads core results. The engines only through the link: ohl-structure-link alone depends on ohl-line, ohl-loads, ohl-clearance, ohl-structures-fe, ohl-weather and ohl-cables; the other application crates use the model and format crates (ohl-core, ohl-structures, ohl-sections) directly, and ohl-structure-app also ohl-render, ohl-plugins and ohl-ui (the look and widgets only; decided 2026-11-07) (the link re-exports what they need of the engines, e.g. the usage classification classify_usage, NEAR_FULL).
  • Plugins reach the application only through ohl-plugins (a core crate, an allowed dependency of ohl-structure-app only) and, for a structure's member and joint checks by a plugin, through the core crate ohl-member-check (the finite-element results mapped to the plugin interface's records and back; a dependency of the link, which re-exports it as plugin_check, and of the core's ohl-cli and ohl-loads, so that every runner checks alike; 2026-11-11): design codes stay code-plugins giving the line's weather and load cases — the application takes their load-case names as recipes taking the line's values (ohl_structure_edit::take_line_load_cases). Check plugins are listed only.

On its own: start page, libraries, plugins#

  • Start page (start.rs): no file argument → StructureApp::start_page. Recent files are kept in eframe storage (RECENT_KEY ols-structure-recent — the name from before OpenOHL, kept —, ten, canonical paths, added by StructureApp::open). New structure writes start::minimal (one point, level 1) or a structure template built with PylonTemplate::build(defaults(role)) from ohl-structures (no dependency on ohl-app's structure builder); start::create refuses an existing file and checks the result opens. The launcher Start OHL-Structure.command builds ohl-structure-app and runs ohl-structure.
  • Libraries (libraries.rs): Folders::new(file, --sections, --insulators) gives where each LibKind is read and imported into (cross-sections: the folder given or Sections/; insulators: the folder given, else the file's folder and Insulators/; poles, models, recipes: the file's folder; templates: StructureTemplates/, PylonTemplates/ still read). scan reads and checks each file (check_file: SectionLibrary::parse, InsulatorAssembly/PylonTemplate LibraryItem::parse, StructureLoadCases::parse, the link's pole_file_id and model_file_name) and lists what references names that none has. import checks every file and the ids against the other files of the folder before copying anything; export writes the line application's layout (structures/, sections/, insulators/, structure-templates/), cross-sections filtered by sections_subset (toml_edit: the cross-sections used and their materials, comments kept). After an import StructureApp::reload_libraries reads the insulators and cross-sections again (load_libraries, shared with open). The listing is cached by a hash of the file text and the folders.
  • Cross-section library typed (section_editor.rs, Design › Sections & materials › Cross-section library): the .ohlsec files where Folders reads the cross-sections (looked at again every second), each cross-section editable as a SectionDraft (ohl_structure_edit::section_library: the fields as text, SectionDraft::section checked and computed by SectionLibrary::parse itself, put_section / remove_section with toml_edit, the cross-section's other keys and the file's comments kept). Each change is written at once (save_section, delete_section), the libraries read again, and is a LibraryEdit (path, text before and after, at: the structure file's undo_steps() then). undo / redo of the window take the library's step when it is the later one (SectionEditor::undo_first, redo_first: by at against the file's undo and redo steps; a library step no longer reachable is dropped); a file changed outside since is not undone. Members' cross-section lists (section_choices) hold the library's ids, then the file's.
  • Started from a project: the line application passes the working copy's folders (--insulators, --sections, the structure file in structures/), and its StructureApps watch hashes the library files there (structure_app::library_signature, LIBRARY_EXTENSIONS, twice a second); a change is Change::Libraries, handled as a library page saved (library_saved: store_libraries puts the working copy into the project, the model reads its libraries again).
  • Plugins (plugins_ui.rs): PluginsState lists user_dir (eframe::storage_dir("OLS CAD")/plugins, the line application's; LINE_STORAGE_ID, the storage id kept from before OpenOHL) and the folders of ohl_plugins::PluginSettings (settings.toml there), read when the manager opens and written at each change; applies says per extension point what it does here. Details come from WasmHost::describe_any on a thread; a design code runs WasmHost::load_code(..).generate on a thread (run_code), polled each frame.

Started for a placed structure#

line app: Properties › Edit…  (Action::EditInStructureApp { id, structure })
  ├─ writes <stem>.<id>.line-values.json   ("being computed" first, then
  │     ohl_structure_link::placed_values on a thread; again when the
  │     line changes and stays unchanged for 1 s; one run at a time)
  └─ starts  ohl-structure <file> --structure <id> --line-values <json> --sections <dir>
structure app: reads the JSON when its mtime changes (twice a second):
  "loads of <id> in <line>" (Level panel), the status block, Line
  values, the load table (the line's forces first; Store in the file)
  typed values → <stem>.<id>.loads.csv → the line app stores them (kind `loads`)
  • The JSON is ohl_structure_loads::PlacedValues (format ohl-structure-line-values, version 3): the structure, the line, its type, the line's cases and their sources (version 2), the values (LineValues), the other places of the same type with theirs, a note (no values yet, no load case file, cross-sections a case did not solve) and missing (version 3): per case, the sections and jumpers at the structure that did not solve (MissingWire). The application marks such a case incomplete in the status block, on its load-table rows (note incomplete: S12 not solved), in Line values and in FE results (LoadCasesTab::incomplete). Older versions still read.
  • One structure application per structure file: Edit… on another place of the same type while one is open is refused with a message.
  • Outside a project (a plain line file) both files are written next to the structure files.
  • Member areas for surface loads (SectionAreas): profile width for the load's direction × length × sin θ (Model::projected_area, shared with member wind); a member whose cross-section is not in the library gets "no area" with the reason.

The window: menus and panels#

The window follows the line application's design rules: every menu at the top — File, Edit, View, then one per part of the work (Geometry, Body, Design, Loads, Results; layout::Area), Help — and the panels under them docked with egui_dock (the same version as ohl-design), each movable, closable and opened again from View or its menu. View is an options menu (layout::options_menu, a copy of the line application's ohl_app::menu::options_menu, not shared — the structure crates do not depend on ohl-app —: a tick never closes it, one taller than 80 % of the screen when last shown scrolls, the button's text at most 40 characters with the whole on hover); errors and long reports scroll in boxes of fixed height (app::error_label); every window has its ×.

The menus (menus.rs; decided 2026-11-03, "yes implement the menus": the review of the menus aligned with OHL-Design's):

  • File: New structure… (⌘N), Open… (⌘O), Open recent › (start::Recent), Save, Save as…, Import › (libraries:: import_library_menus per LibKind; load recipes, load table), Export › (export_menu::export_format_items, libraries:: export_library_items, load recipes, load table, the report, Export options… — export_options_window, the source-library choices moved out of the menu), Plugins › (plugins_menu: the manager), Close (StructureApp::close_file: the start page again; not with unsaved changes), Quit (⌘Q: the window's close, asked first with changes). StructureApp::keys reads ⌘N, ⌘O, ⌘Q, Delete and Backspace too.

  • Edit: Undo, Redo, Delete selected… (Del), Clear selection, Tools › (tools_menu: the inventory, then Tool::ALL by Tool::theme, each with its hotbar slot's number as its shortcut text, the held one Button::selectable).

  • View: Fit the view, Panel::MAIN ticked (3D view, Detail view, Inspector, To do, Libraries), Tables › (Panel::of per area under a grey heading), Display options › (display_options: the view's ticks, the load arrows and the results' ticks being the same fields as the panels' own), UI scale ›, Reset layout.

  • The work menus (area_menu) list their panels without "…" (only an entry opening a dialog or asking first ends in "…"), leaving out those Panel::applies says do not apply to the structure's kind (the Pole panels to a tower without a pole, Joint and Member details to a pole; View › Tables shows them greyed out, the reason on hover), then their actions, named as the tools (Tool::name: "Add a joint", "Add a member", "Add a point", "One string below the point", "Insert a joint"…) with the tools' icons. Greyed out without a file, with the reason on hover (NO_FILE).

  • The quick buttons right of the menus are icon buttons (⟲ ⟳ 💾, the icons of OHL-Design's quick bar), their accessible names Undo, Redo, Save. OHL-Design's quick bar is customizable; this one is not (yet).

  • Help: the manual pages (help::manual_entries), To do, Controls › (view::CONTROLS, detail_view::CONTROLS, the keys), About.

  • The 3D view's right-click menu (context_menu.rs): View::ui records on a right-click what the menu is of (view::MenuOn: the object under the pointer, selected with the click, or the selection) and returns its response; StructureApp::view_ui opens view_menu_ui on it with Response::context_menu.

  • A tab's right-click menu (layout::Viewer::context_menu): Dock on the left (text and edit) (Place::Left: into a pane without a view, the main window's first), Dock on the right (views) (Place::Right: into the 3D view's or the Detail view's pane), none there: a new pane on that side of the whole window (split_left / split_right of the root at LEFT_SHARE); or float (layout::move_panel, layout::Place), applied after the dock is drawn (Viewer::moves).

  • The view's notes (view::note) are written in the colour of their object (a rigid link magenta, the link drawn white, a joint taking no link orange) without a box.

  • layout::Panel lists the panels; each belongs to an Area (the 3D view, the Inspector, the Level panel — the To do list — and the Libraries to none) and shows one table or a few (Panel::sheets; several: chosen at its top). default_dock is the arrangement at first start and after View › Reset layout (decided 2026-11-04: "the text and edit parameters on the left and 3d view with toolbar on the right"): two panes — on the left one leaf of the text and edit panels as tabs (Inspector in front, To do, Points & strings, Joints, Members, Supports: as many as show their titles at LEFT_SHARE = 0.44 of the width), on the right the 3D view alone (split_right of the root). layout::is_view tells the views (3D view, Detail view) from the text and edit panels.

  • The header above the dock (StructureApp::header, not a panel): the file's name (its path on hover), the level badge, * unsaved, the button N to do (brings the To do list to the front), the placed structure's loads link. StructureApp::open_items keeps what the next level lacks and the advice per file revision; checklist_ui draws the To do list, an item through go_to (its table, its row, its object selected).

  • open_panel brings a panel to the front, or opens it on its side: a view into the other view's pane (the Detail view a tab on top of the 3D view, not a third pane; layout::views), a text or edit panel into a pane without a view (layout::home: with the other of its pair — Inspector and To do, Joint and Member details —, else a panel of its area, else the Inspector's, else any; the main window first); none: a new pane on its side of the root (new_side); the Load case editor in a window of its own. StructureApp::focus on Joint or Member details also brings the Detail view to the front and moves the details out of a view's pane (settle_details; elsewhere they stay). The Detail view goes back to the 3D view with ‹ 3D view above it (StructureApp::detail_header, shown when the two share a pane, layout::same_leaf) or Escape over it once nothing of its own is left to undo (detail_escape, back_to_3d); closed, egui_dock shows the 3D view, the tab before it. Menus, header links (StructureApp::go_to) and the level at opening all go through it (StructureApp::focus). While the dock is drawn the application holds a copy of it (drawing_dock: the panels read what is open and in front); focus then waits in focus_request until the drawing ends.

  • The dock is drawn with the application taken as the TabViewer (layout::Viewer); the panel in front of the leaf last clicked sets the area worked in (StructureApp::area), which decides what the 3D view draws over the structure (load arrows, results). The generator's preview is cleared when its panel was not drawn.

  • The arrangement is kept with eframe's persistence (egui_dock's serde feature, key ols-structure-dock, with its version under ohl-structure-dock-version, layout::DOCK_VERSION = 3; StructureApp::restore at start, eframe::App::save); one that does not read, or kept by version 1 (no version), gives the default. One kept by version 2 gives the default only when it is version 2's own default as it opened (layout::is_old_default: the main window's layout::shape — splits as H(..)/V(..), leaves as 3d, dv, i, t, d or x — one of OLD_DEFAULTS, any window holding only the Load case editor); an arrangement the user changed (panes moved, split, tabs mixed or floated) is kept as theirs. Also kept: the recent files (ols-structure-recent), the UI scale (ohl-structure-ui-scale, a number, 1 = 100 %), the hotbar (ohl-structure-hotbar: the nine slots' tool names, comma-separated, an empty slot blank; ohl-structure-hotbar.active: the slot held).

  • The 3D view's tools (tools.rs, as OHL-Design's hotbar, its drawing copied, not shared: the structure crates stay apart from ohl-app): Tool (Select, Edit, Move, Delete, Add a point, One string below the point, Two strings to one wire point, Link, Add a joint, Add a member, Insert a joint, Symmetry; Tool::theme groups them for Edit › Tools), Hotbar (nine slots, hold, save, load). View::ui takes the tool held (ViewInput::tool): a joint or point is dragged only with Move (one undo step per drag, as before); with an acting tool a click gives ViewAction::ToolClick (what is under the pointer, and where the click meets the plane facing the camera through the target), done by StructureApp::tool_click with the menus' own methods. The Link tool is StructureApp::link as before; the hotbar follows it (follow_link_tool) and it follows the hotbar (tool_changed). Keys 1–9, E (inventory) and Escape (let go) are read in StructureApp::keys when no field has the keyboard.

  • The Inspector (inspector.rs): the selection's fields through the same ohl_structure_edit functions as the tables (one undo step each, a drag one step through begin / end); several of one kind: their shared coordinates (or a member's cross-section and kind) written to each in one step.

  • Notices (notices.rs): Notices::observe turns a new StructureApp::message into a notice at the bottom right; an information fades after notices::SHOWN s (the next repaint asked for then, not every frame), an error stays until its × (long ones scroll, app::error_label). The status line stays.

  • The style (style.rs): applied once (style::apply): text a step larger, ScrollStyle::solid (a table wider than its panel shows its scroll bar), the UI scale as egui's zoom factor. Tables use style::header (sentence case; units in the header, "x [m]"), style::field (a number field: right-aligned, the inset fill and frame of a text field — field_visuals — so it reads as a value, not a button) and style::num_label. A sticky first column is not possible with egui::Grid without rewriting the tables (egui_extras tables): not done.

  • The menus' actions are the same methods as the panels' tools (add_point, add_insulators, add_joint, add_member, point_here, ask_delete, set_symmetry, make_symmetric, add_case, the import and export dialogs, run_results, cancel_results, store_line_cases); an action brings its panel to the front. The deletion is asked in a window.

Load cases and Results panels#

  • The line's forces come first in the load table (load_cases_tab::line_rows): every case of the line-values file with values × every point, the factored transverse, longitudinal and vertical forces where the line factors the case (else the unfactored ones), source line, no recipe needed; a line case with the name of a recipe is called "NAME (line)". The recipes evaluated follow. The results and the exports take them like any case.
  • The line's wind on the body (load_cases_tab::line_wind_recipes): per line case whose LineValues::structure_wind has a pressure, a recipe of the case's table name taking structure_wind_factored on every member (evaluated with the recipes on a structure with members, rows of source line); the run takes the recipes and these with the line's pressures written in (LoadCasesTab::run_recipes, resolve_line_pressures), so a pole gets the same wind. Stored from the line, the wind is a pressure on all members (GivenCase::wind); taken from the line, a structure_wind_factored load (add_body_wind_load). Every edit raises a file with such a load to version 6 (raise_for_line_pressures, in StructureFile::edit).
  • Store in the structure file (StructureApp::store_line_cases, ohl_structure_edit::store_given_cases): the line's cases ticked written as [[load_case]] of given values (a value and direction per point and non-zero component, line_case, a description starting "Stored from the line" with the line, the place and the date), one edit; a case of the same name is replaced in its place (the window asks first). take_line_load_cases writes recipes instead (the line's factored values at every point, following the line).
  • The status block (LoadCasesTab::line_status) turns the line-values file's state and note into plain sentences: no line (opened alone), waiting, being computed, no load case file (with what to do), a case without values, what the line gave; plus the cases stored from the line.
  • Recipes are edited in the file (ohl-structure-edit::load_cases): each change one undo step; the panel reads them back with StructureLoadCases::from_structure and shows why they do not read.
  • The load table is evaluated again whenever the file text or the typed values change (LoadCasesTab::refresh, keyed by a hash). Values typed over it are Overrides of the session, applied after each evaluation. They are kept beside the structure file as <stem>.loads.csv (the table's CSV with the typed rows only), written on Save (also Save as, beside the new file) and read on open; unsaved typed values count as unsaved changes. Started for a placed structure (--structure T2), they are <stem>.<id>.loads.csv instead, and the line application keeps them in the project (library kind loads, per project line; spec §4.1). A table imported as CSV becomes the overrides of what it has beyond the evaluation (LoadTable::overrides_over), so export → import gives the same table.
  • Results need level 3 (Detail::Design, which includes model =). The run goes to a thread of its own through ohl_structure_link::analyse_cases; the window polls it and stays responsive. Exit clauses (Performance): each case at most 200 iterations and 30 s, a Cancel button (a CancelToken); a case that does not solve is listed with the solver's reason (mechanism, unstable, stopped by a limit with the residual). Results computed from another table or file are marked as such.
  • Headless, for ohl: ohl-structure-report --request - answers a JSON request with a JSON reply (ohl_structure_export::request; data model); ohl structure analyse|report starts it as a program of its own (never a crate dependency of the core). Tested end to end, both programs built, in ohl-structure-tests/tests/ohl_structure_cli.rs.
  • The view draws the overlay of the area worked in (ViewInput::overlay, a Scene with a key; uploaded again only when the key changes): load arrows of the case shown, or the deformed shape coloured by usage (red above 100 %, orange from 90 %, as the line application's Usage page) and the reactions.

Checks#

Before a commit that touches the application's crates (expected about 1–3 minutes with a warm build; each step under a time limit):

cargo fmt --all --check
cargo clippy -p ohl-structure-loads -p ohl-structure-link -p ohl-structure-export -p ohl-structure-tests --all-targets -- -D warnings
cargo test -p ohl-structure-loads -p ohl-structure-link -p ohl-structure-export -p ohl-structure-tests

The editor and the window on their own (seconds for the edits, under a minute for the window's egui_kittest tests with a warm build):

cargo clippy -p ohl-structure-edit -p ohl-structure-app --all-targets -- -D warnings
cargo test -p ohl-structure-edit -p ohl-structure-app

The plugin manager's test lists the in-repo plugins and runs the en50341 design code when it is built; with OHL_REQUIRE_PLUGIN_TESTS set, an unbuilt plugin fails it (build each plugins/*/*/ with a Cargo.toml: cargo build --release --target wasm32-wasip2).

ohl-app depends on ohl-structure-edit (its structure screen), ohl-structure-loads and ohl-structure-link, so a change there also runs cargo test -p ohl-app.

The workspace-wide checks (and CI, which runs --workspace) include these crates too; a change to a core crate the application uses also runs the core's tests.

Formats#

Structure load-case recipes and the load table: Structure load cases; map: Data model. CSV works today; XLSX import and export come later.

View this page's source on GitHub