tickerforge_spec_data/lib.rs
1//! Bundled [`spec/`] tree for [`tickerforge`](https://github.com/mesias/tickerforge-rs).
2//!
3//! [`spec/`]: https://github.com/mesias/tickerforge-spec/tree/main/spec
4
5use std::path::PathBuf;
6
7/// Root directory of the canonical spec (`exchanges/`, `contracts/`, `schemas/`, …).
8///
9/// This matches the layout shipped in the Python `tickerforge-spec-data` package.
10pub fn default_spec_root() -> PathBuf {
11 PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("spec")
12}