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

The last version cannot bench on 1.20 anymore #43

Closed
llogiq opened this issue Aug 4, 2018 · 7 comments · Fixed by #52
Closed

The last version cannot bench on 1.20 anymore #43

llogiq opened this issue Aug 4, 2018 · 7 comments · Fixed by #52

Comments

@llogiq
Copy link
Owner

llogiq commented Aug 4, 2018

Note that it will still build alright on that version, but I had to switch to a criterion version which appears not to support compiling without quote etc. which fails on 1.20.

cc @bheisler

@bheisler
Copy link

bheisler commented Aug 4, 2018

Hey, thanks for letting me know.

Criterion.rs officially supports building on the last three stable releases of Rust, so that would be 1.25 or later. I've tested it, and (for now, at least) Criterion.rs 0.2.4 can build on 1.20 if you disable the html_reports feature. In fact, I added that feature specifically to allow bytecount to benchmark on 1.20.

I'll try not to break that without good reason, but I can't keep supporting old versions of Rust forever. 1.20 is nearly a year old at this point. Since Criterion.rs is a development-only dependency, it doesn't affect the minimum version required by bytecount users. I would recommend benchmarking with newer versions of Rust.

@Veedrac
Copy link
Collaborator

Veedrac commented Aug 4, 2018

bytecount is the kind of thing that should really be "done" and version-locked at some point (around about now, with SIMD), but I'm fine with benching requiring a recent stable.

@llogiq
Copy link
Owner Author

llogiq commented Aug 4, 2018

@bheisler thank you, I'll have to revisit our CI config – I thought I had disabled HTML generation, but somehow it seems to pull it in regardless.

@llogiq
Copy link
Owner Author

llogiq commented Aug 6, 2018

I inadvertently restored default-features in the criterion dev-dependency. This is fixed now.

@llogiq llogiq closed this as completed Aug 6, 2018
@Veedrac Veedrac reopened this Nov 24, 2018
@Veedrac
Copy link
Collaborator

Veedrac commented Nov 24, 2018

@llogiq There's something happening here again, https://travis-ci.org/llogiq/bytecount/builds/459144098. Not sure what's up, but I haven't investigated yet.

@llogiq
Copy link
Owner Author

llogiq commented Nov 24, 2018

I suspect it now uses a newer version of lazy_static, which appears to use a const fn, which wasn't stable then.

@kornelski
Copy link

kornelski commented Jan 9, 2019

Could this crate drop support for Rust 1.20 now? The requirement of old lazy_static is problematic for projects using criterion.

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 a pull request may close this issue.

4 participants