-
Notifications
You must be signed in to change notification settings - Fork 14
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
Rust: Questdb-rs crate incompatible with latest ureq 2.10.1 crate #85
Comments
Hi Jelle, It's a well-known pain point. BackgroundWe've pinned the dependency due to incompatibilities that we've had in the past with the Details on the mechanicsSpecifically:
Note that since In effect, Why Rust does not compile both versions side-by-sideOne might expect that Cargo would compile both versions, but it does not. This is beause this feature is not enabled in Cargo for versions that are supposed to be API-compatible (minor version differences). By contrast, if you were to use ResolutionWe will keep having to pin our version of In the meantime we will periodically update the pinned version of PR?If you have a more urgent need for features/fixes present in P.S.: @algesten, is semantic versioning of |
Random notes, I wonder if https://github.com/obi1kenobi/cargo-semver-checks and/or https://github.com/cargo-public-api/cargo-public-api would have helped. |
It will certainly be much better than 2.x. As you identified in this issue, ureq 2.x re-exported rustls (among other) semver 0.x crates, meaning we had breaking changes in those re-exported APIs that we, rightly or wrongly, didn't accept as major version bumps in ureq. For ureq 3.x this changes completely. We will only have one single re-export, the So in short. Yes. ureq 3.x will have better adherence to semver, for sure. |
Ok, I'll take a look. Hopefully we can port over given we have the same auth logic with rustls for both tcp and http. Thanks for responding, btw! |
Thank you for the updates. I will upgrade once this has been fixed. |
Actions:
Compile program with cargo using the crate
ureq 2.10.1
andquestdb-rs 4.0.3
.Observed:
Compilation crashes with the following logging:
Expected:
Able to uses latest stable version of the
ureq
crate. (2.10.1)Workaround:
Use an version 2.9.7 of the ureq crate.
Note: ureq 3.0.0 will be released shortly.
reference:
https://gitlab.com/jhaand/energy_reader
The text was updated successfully, but these errors were encountered: