Skip to main content

sim_lib_stream_clock/
lib.rs

1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3//! Clock charts and tick conversion helpers for STREAM 6.
4//!
5//! The crate keeps clock math in library space. Kernel events still carry only
6//! KERNEL 6 `Tick` values, with clock indexes interned as datum content refs.
7
8mod citizen;
9mod clock;
10mod instant;
11mod tempo;
12
13pub use citizen::{StreamClockDescriptor, stream_clock_class_symbol};
14pub use clock::{Clock, ClockChart, ClockIndex, IndexConversion};
15pub use instant::Instant;
16pub use tempo::{TempoMap, TempoSegment};
17
18/// Cookbook recipes for this lib, embedded at build time.
19pub static RECIPES: sim_cookbook::EmbeddedDir =
20    include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
21
22#[cfg(test)]
23mod tests;