API reference (docs.rs)
The Rust API reference is generated per release and hosted on docs.rs — the canonical, versioned home for every published crate. We don’t duplicate rustdoc on this site; these links are always current with the latest release.
| Crate | API docs | What it is |
|---|---|---|
yuzu-core | docs.rs/yuzu-core | Pure, I/O-free backtest engine core. run_backtest(spec_json, ctx, price_key, cfg) -> Report. |
lemon-lang | docs.rs/lemon-lang | The lemon strategy DSL. parse(src) -> Value, format(&value) -> String. |
yuzu-data | docs.rs/yuzu-data | Native I/O: gzip CSV / Parquet price & fundamental files → panels. |
yuzu-source-s3 | docs.rs/yuzu-source-s3 | S3-compatible ObjectSource for yuzu-data. |
The wasm, cli, and server crates are not published to crates.io — they are
application boundaries, not public library API. Read their source in the
repository.
Machine-readable schemas
For tool-use and structured generation, two artifacts in the repo describe the language precisely:
- Lemon op catalog (JSON) — every operator, its arguments, types, and defaults.
- Lemon spec JSON Schema
— schema for the tagged
Exprtree.