-
Notifications
You must be signed in to change notification settings - Fork 9
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
MSRV violation #68
Comments
I would suggest raising the MSRV of
I think this is far worse than violating the MSRV because if other dependencies requires the recent version of serde_json, this causes compile error. I think the right place to do this is in the end-user's Cargo.toml or Cargo.lock (example).
No. serde_json v1.0.73's MSRV is Rust 1.36. See rust-version field in serde-json's Cargo.toml. |
Doesn't cargo just compile it twice?
Thanks, i missed that. Though, does the project maintain the MSRV across versions? I'm not strictly against |
It will be compiled twice if the major versions (or minor versions if the major version is 0) are different. In other cases, it will be conflict and cause compile error. See smol-rs/async-process#4 for a specific example.
AFAIK, many cornerstone libraries (include serde_json) don't consider an MSRV increase as a breaking change. See also: |
Yeah, my opinion is not mainstream sadly, and would therefore also fully respect if |
macrotest
no longer compiles on rust v1.34.2 becauseserde_json
v1.0.73 depends onitoa
v1.0.1 which doesn't compile on that version. See (duplicate build)[https://github.com/Emoun/duplicate/runs/4636793495?check_suite_focus=true].As far as I can tell
serde_json
has no MSRV, which meansmacrotest
should depend on a specific version to avoid violating MSRV.The text was updated successfully, but these errors were encountered: