Skip to content

Conversation

@faern
Copy link
Owner

@faern faern commented Feb 1, 2025

Criterion is a pretty big dependency, and it has a higher MSRV than the library itself and the other testing dependencies. To to be able to run cargo test without pulling criterion in, I had to do this hack. It's similar to the loom hack.

The major downside is that to run benchmarks one now has to run them with RUSTFLAGS="--cfg criterion" cargo bench

@faern
Copy link
Owner Author

faern commented Feb 1, 2025

Will merge even if CI does not pass. Because the changes in #53 are also needed. But I want to keep them as separate PRs, since they do completely different things.

@faern faern force-pushed the hide-criterion-behind-cfg branch from a7e896c to c0b19d9 Compare February 1, 2025 11:52
@faern faern merged commit c0b19d9 into main Feb 1, 2025
3 of 11 checks passed
@faern faern deleted the hide-criterion-behind-cfg branch February 1, 2025 11:58
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

Successfully merging this pull request may close these issues.

2 participants