tonbo-io / tonbo

A portable embedded database using Arrow.
https://tonbo.io
Apache License 2.0
764 stars 42 forks source link

Benchmark build error #185

Open zamazan4ik opened 4 weeks ago

zamazan4ik commented 4 weeks ago

Bug Report

What version of Tonbo are you using? From sources: main branch, 2f849ba4b60f113dc3fe800b436e30fd06a703e5 commit

What version of Rust are you using? Rustc 1.80

What's the status of the running? N/A

What did you do? Run cargo bench --all-features --no-run

What did you expect to see? The benchmark is built successfully.

What did you see instead? I see the following error:

   Compiling tonbo v0.1.0 (/home/zamazan4ik/open_source/tonbo)
warning: `tonbo` (bench "read_bench") generated 9 warnings (run `cargo fix --bench "read_bench"` to apply 1 suggestion)
warning: `tonbo` (bench "write_bench") generated 15 warnings
warning: `tonbo` (bench "common") generated 15 warnings (9 duplicates)
error[E0432]: unresolved import `fusio::local`
 --> benches/criterion/writes.rs:4:12
  |
4 | use fusio::local::TokioFs;
  |            ^^^^^ could not find `local` in `fusio`

warning: unused import: `fs::manager::StoreManager`
 --> benches/criterion/writes.rs:6:45
  |
6 | use tonbo::{executor::tokio::TokioExecutor, fs::manager::StoreManager, DbOption, Record, DB};
  |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

For more information about this error, try `rustc --explain E0432`.
warning: `tonbo` (bench "writes") generated 1 warning
error: could not compile `tonbo` (bench "writes") due to 1 previous error; 1 warning emitted
ethe commented 4 weeks ago

Thank you, we will take a look