Skip to main content

sim_lib_view_codec/
lib.rs

1//! Codec-aware and Shape-aware lenses for SIM Web.
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 cookbook;
14pub mod multicodec;
15pub mod shape;
16
17pub use cookbook::multicodec_demo;
18pub use multicodec::{
19    MULTI_CODEC_LENS, ProbeResult, SYSEX_COMPARISON_LENS, multi_codec_view, roundtrip_probe,
20    sysex_comparison_view,
21};
22pub use shape::{SHAPE_LENS, shape_view};
23
24/// Embedded cookbook recipe books shipped with this library.
25pub static RECIPES: sim_cookbook::EmbeddedDir =
26    include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
27
28#[cfg(test)]
29mod tests;