Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master not building #119

Open
tradflux opened this issue Aug 12, 2024 · 2 comments
Open

Master not building #119

tradflux opened this issue Aug 12, 2024 · 2 comments

Comments

@tradflux
Copy link

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;

error[E0432]: unresolved imports *crate::backtest::models::L3QueueModel*, *crate::backtest::proc::L3Local*, *crate::backtest::proc::L3NoPartialFillExchange* --> hftbacktest/src/backtest/mod.rs:12:18 | 12 | models::{L3QueueModel, LatencyModel, QueueModel}, | ^^^^^^^^^^^^ no *L3QueueModel* in *backtest::models* ... 15 | L3Local, | ^^^^^^^ no *L3Local* in *backtest::proc* 16 | L3NoPartialFillExchange, | ^^^^^^^^^^^^^^^^^^^^^^^ no *L3NoPartialFillExchange* in 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<MD> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible note: found an item that was configured out

@tradflux
Copy link
Author

You can successfully build by adding this line to the cargo.toml

hftbacktest = { path = "../hftbacktest", features = ["backtest", "unstable_l3"] }

@bohblue2
Copy link
Contributor

This problem happened for me.

and this worked for me

hftbacktest = { path = "../hftbacktest", features = ["backtest", "unstable_l3"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants