Closed OliverKillane closed 1 month ago
Noticed by @cameronelliott From the readme, the benchmark run instructions are:
cargo bench -q -p examples --all-features
But when running with extra flags (e.g. --bytes-format) we get the following error:
--bytes-format
cargo bench -q -p examples -- --bytes-format=decimal # correct output ... error: Unrecognized option: 'bytes-format' error: bench failed, to rerun pass `-p examples --bench util`
This is as utils.rs is being compiled and run as a benchmark.
utils.rs
DIVAN_BYTES_FORMAT=...
collections.rs
Context
Noticed by @cameronelliott From the readme, the benchmark run instructions are:
But when running with extra flags (e.g.
--bytes-format
) we get the following error:This is as
utils.rs
is being compiled and run as a benchmark.Possible Solutions
DIVAN_BYTES_FORMAT=...
) (only read by the benchmarks that need it, hence no errors present)utils.rs
is only used bycollections.rs
, small enough to just move intocollections.rs
Goals