Open tradflux opened 3 months ago
You can successfully build by adding this line to the cargo.toml
hftbacktest = { path = "../hftbacktest", features = ["backtest", "unstable_l3"] }
This problem happened for me.
and this worked for me
hftbacktest = { path = "../hftbacktest", features = ["backtest", "unstable_l3"] }
Looks like there are L3-unstable imports in backtest/mod.rs without the feature flag enabled.
py-hftbacktest$ maturin build
results in;
error: could not compile hftbacktest (lib) due to 1 previous error; 4 warnings emitted 💥 maturin failed Caused by: Failed to build a native library through cargo
The reported error is;
backtest::proc
note: trait crate::backtest::models::queue::L3QueueModel exists but is inaccessible --> hftbacktest/src/backtest/models/queue.rs:378:1 | 378 | pub trait L3QueueModel {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
note: found an item that was configured out`