Skip to main content

ifc_step/
lib.rs

1//! `ifc-step` — IFC adaptation over generic ISO 10303-21 syntax.
2//!
3//! Generic tokenization, escaping, records, parameters, sections, parsing,
4//! writing, partitioning, spans, diagnostics, and event sinks live in
5//! [`openbim_step`]. This crate owns only conversion between that generic
6//! substrate and [`ifc_model::Model`] plus IFC codec detection and I/O policy.
7//!
8//! | Module | Role |
9//! | --- | --- |
10//! | [`codec`] | [`StepCodec`]/[`StepReader`]: detection, parse policy, I/O |
11//! | [`error`] | STEP-specific failure modes |
12//! | `parser` | Generic exchange to IFC record model |
13//! | `writer` | IFC record model to physical file |
14
15pub mod codec;
16pub mod error;
17mod index;
18mod lazy;
19mod parser;
20mod writer;
21
22pub use codec::{StepCodec, StepReader};
23pub use error::StepError;
24pub use index::Index;
25pub use openbim_step::is_step_file;
26/// Malformed-record policy, re-exported so consumers need not depend on
27/// `openbim-step` directly to configure a reader.
28pub use openbim_step::{OnMalformed, ParseOptions};