Skip to main content

litz/
lib.rs

1//! Litz — an open-source, modular firmware simulator.
2//!
3//! One core, two exports: a native binary for CI and a WebAssembly module for
4//! the browser and for WASI. Boards are described by a `diagram.json`, so a
5//! project is a set of files rather than a database row.
6//!
7//! ```text
8//! litz-core    time, pins, Bus / Mcu / Part traits
9//! litz-mcu     memory maps, clock domains, interrupt controllers
10//! litz-esp     ESP32-family chips
11//! litz-wasm    the WebAssembly surface
12//! litz-cli     `litz run` / `litz test`
13//! ```
14//!
15//! The umbrella re-exports the family seams (`litz::esp`, `litz::mcu`) so a
16//! user picks a chip, not a crate.
17#![no_std]
18#![forbid(unsafe_code)]
19
20extern crate alloc;
21
22/// Time, pin and bus primitives every other crate shares.
23pub use litz_core as core;
24
25/// Chip-family building blocks: memory maps, clock domains, interrupt routing.
26pub use litz_mcu as mcu;
27
28/// ESP32-family chips. This is the module a user picks a chip from.
29pub use litz_esp as esp;
30
31/// Circuits: parse `diagram.json`, resolve wires into nets, validate against a catalog.
32pub use litz_diagram as diagram;
33
34/// Catalog entries: `part.toml` and `board.toml`.
35pub use litz_catalog as catalog;