-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prometheus 0.12 crate fails to build with protobuf 0v2.27.1 with v2.27.1 #607
Comments
Min supported rust version of latest rust-protobuf from v2 branch is 1.52.1. |
There are over 6 million downloads of the prometheus crate, I am surprised that I am the only one reporting this. Currently that is the only reason that I am pulling in this crate. We are already in version hell due to some crates requiring tokio 0.2, which keeps us from moving the compiler version forward. I haven't read up on the semver rules lately, but it seems like a compiler minimum version change should be considered a breaking change, and require a major version bump. |
Rust release 1.52 happened 9 months ago. Most developers update rustc more often. And non-developers probably pin versions with
Supporting rust >= 1.26 It is practically impossible. Version 2.0 of rust-protobuf was released in 2018. There are too many important API and compiler features developed since then. Moreover, conditional compilation is required to make the same code work with new and old rust, and CI for all intermediate versions (there were several breaking changes in the last three years). Unfortunately, I don't have enough manpower to do that. If someone want to help maintaining it, this would be possible. |
@stepancheg fair enough... |
FYI, |
@scottlamb what they are using now by default? |
https://prometheus.io/docs/instrumenting/exposition_formats/
|
The work-around was to specify version = "=2.25.0", but that shouldn't have been required.
Our mirror was stale, or I probably would have hit the issue sooner. I am not sure if this would be considered a prometheus issue for using such a generic dependency (^2.0) or a protobuf issue for breaking with an existing toolchain...
The first issue with rustdoc::broken_intra_doc_links would seem to be a protobuf issue, perhaps related to building from a mirror. FYI: the mirror is based on JFrog.
The text was updated successfully, but these errors were encountered: