Skip to main content

sim_lib_view_codec/
lib.rs

1//! Codec-aware and Shape-aware lenses for the SIM Web-UI (WEBUI_4).
2//!
3//! This lens family exposes SIM's strongest differentiators directly: a
4//! multi-codec lens that opens one value through several codecs at once
5//! (lisp/json/binary/algol) side by side as `scene/embed`s, a round-trip probe
6//! panel, and a Shape lens with matcher-tree visualization, binding view, and
7//! failing-match counterexamples. Read-construct (`#(Class ...)`) is surfaced as
8//! the preferred round-trip path; broad eval stays capability-gated.
9
10#![forbid(unsafe_code)]
11#![deny(missing_docs)]
12
13pub mod multicodec;
14pub mod shape;
15
16pub use multicodec::{
17    MULTI_CODEC_LENS, ProbeResult, SYSEX_COMPARISON_LENS, multi_codec_view, roundtrip_probe,
18    sysex_comparison_view,
19};
20pub use shape::{SHAPE_LENS, shape_view};
21
22#[cfg(test)]
23mod tests;