Skip to content

Edition 2021 and version bumps #346

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

Merged
merged 2 commits into from
Jan 10, 2022
Merged

Conversation

zslayton
Copy link
Contributor

This PR updates the Rust edition of:

  • ion-rs
  • ion-hash
  • ion-c-sys-macros
  • ion-c-sys

from 2018 to 2021. No code changes were required.

The GitHub Action that generates a code coverage report uses a pinned nightly version of rustc from August 2021, just before edition 2021 was stabilized. I've bumped it to the latest nightly so it can build the new edition.

This patch also bumps the version of each crate.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This PR updates the Rust edition of:

* ion-rs
* ion-hash
* ion-c-sys-macros
* ion-c-sys

from 2018 to 2021. No code changes were required. This patch also
bumps their respective versions.
@codecov
Copy link

codecov bot commented Jan 10, 2022

Codecov Report

Merging #346 (baeedb0) into main (c240c0f) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #346      +/-   ##
==========================================
+ Coverage   91.44%   91.49%   +0.04%     
==========================================
  Files          67       67              
  Lines       10324    10298      -26     
==========================================
- Hits         9441     9422      -19     
+ Misses        883      876       -7     
Impacted Files Coverage Δ
src/lib.rs 65.77% <0.00%> (-0.75%) ⬇️
src/result.rs 68.42% <0.00%> (-0.42%) ⬇️
src/value/writer.rs 89.18% <0.00%> (-0.10%) ⬇️
ion-hash/src/representation.rs 97.02% <0.00%> (-0.06%) ⬇️
src/text/parsers/clob.rs 96.15% <0.00%> (-0.05%) ⬇️
src/system_reader.rs 89.83% <0.00%> (-0.04%) ⬇️
src/value/borrowed.rs 92.85% <0.00%> (-0.03%) ⬇️
src/value/owned.rs 92.89% <0.00%> (-0.03%) ⬇️
src/value/mod.rs 88.85% <0.00%> (-0.02%) ⬇️
ion-c-sys/src/string.rs 87.03% <0.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c240c0f...baeedb0. Read the comment docs.

@@ -16,8 +16,8 @@ exclude = [
"**/ion-tests/iontestdata/**",
"*.pdf"
]
version = "0.7.0"
edition = "2018"
version = "0.8.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ion-hash, ion-c-sys, and ion-c-sys-macros have not been modified since their last change. The edition bump doesn't affect their APIs, so I've bumped their patch version (The z in x.y.z).

In contrast, ion-rs has landed some substantive changes since v0.7.0 (for example: the SystemReader in #344), so it's getting a minor version bump to v0.8.0.

Copy link
Contributor

@almann almann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@zslayton zslayton merged commit bf1a40a into main Jan 10, 2022
@zslayton zslayton deleted the edition-2021-and-version-bumps branch January 10, 2022 16:52
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