Skip to main content

yuzu_core/
lib.rs

1//! Pure, I/O-free evaluator for strategy specs over (dates × symbols)
2//! data panels. A [`spec::Expr`] tree plus a data context evaluates to a boolean
3//! position matrix ([`panel::Panel`]) — the input the backtest loop consumes.
4//!
5//! No network, no platform deps: f64 matrices in, `Panel` out. Compiles to both
6//! native and WASM. See `docs/backtest-engine.md` for the full overview.
7
8// Numeric kernels index matrices directly; index loops read clearer than
9// iterator chains here.
10#![allow(clippy::needless_range_loop)]
11
12pub mod align;
13pub mod backtest;
14pub mod bootstrap;
15pub mod error;
16pub mod eval;
17pub mod metrics;
18pub mod ops;
19pub mod panel;
20pub mod report;
21pub mod research;
22
23pub use lemon::spec;
24
25pub use eval::run_backtest;
26pub use eval::run_strategy;
27pub use eval::EvalContext;