openbim_ifc_wasm/lib.rs
1//! WebAssembly bindings for the IFC facade (ADR 0013, #34).
2//!
3//! Reads, edits and writes IFC STEP files from JavaScript. The surface is the
4//! record model: an `IfcModel` holds entities, each a type name plus
5//! positional attributes. Attribute values cross the boundary in the lossless
6//! tagged encoding of `openbim_ifc_binding_core::value`, so a file read and
7//! written back through JavaScript is unchanged.
8//!
9//! Every operation lives in `openbim-ifc-binding-core`, shared with the C and
10//! Python bindings. This crate converts JS arguments and results only, and is
11//! empty outside `wasm32`.
12//!
13//! A test of anything that does not need a JS host belongs in
14//! `openbim-ifc-binding-core`, where `cargo test` runs it natively; the Node
15//! suites here cover only the JS conversion itself.
16
17#[cfg(target_arch = "wasm32")]
18mod authoring;
19#[cfg(target_arch = "wasm32")]
20mod edits;
21#[cfg(target_arch = "wasm32")]
22mod error;
23#[cfg(target_arch = "wasm32")]
24mod geometry;
25#[cfg(target_arch = "wasm32")]
26mod model;
27#[cfg(target_arch = "wasm32")]
28mod records;
29#[cfg(target_arch = "wasm32")]
30mod value;
31
32#[cfg(target_arch = "wasm32")]
33pub use model::IfcModel;