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

Removes dependency on ion-c-sys #418

Merged
merged 1 commit into from
Sep 16, 2022
Merged

Removes dependency on ion-c-sys #418

merged 1 commit into from
Sep 16, 2022

Conversation

zslayton
Copy link
Contributor

This PR removes all code that was previously behind the ion_c feature gate. Many of the native implementation APIs were developed with an eye towards maintaining compatability with the ion-c-sys implementation. However, this limited our ability to offer idiomatic APIs. Now that ion-rust's native implementations are relatively complete, we can remove the ion-c-sys dependency to facilitate refactoring.

ion-hash continues to have a dependency on ion-c-sys for the time being, but it has been modified to depend on to the most recently published version of ion-rust that supported it. A follow-on PR will update ion-hash to depend on the native implementations instead.

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

This PR removes all code that was previously behind the `ion_c` feature
gate. Many of the native implementation APIs were developed with an eye
towards maintaining compatability with the `ion-c-sys` implementation.
However, this limited our ability to offer idiomatic APIs.

`ion-hash` continues to have a dependency on `ion-c-sys` for the time being,
but has been modified to depend on to the most recently published version of
`ion-rust` that supported it. A follow-on PR will update `ion-hash` to
depend on the native implementations instead.
@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Merging #418 (bafce2e) into main (dcf22f5) will decrease coverage by 3.20%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #418      +/-   ##
==========================================
- Coverage   88.49%   85.29%   -3.21%     
==========================================
  Files          82       81       -1     
  Lines       14079    14367     +288     
==========================================
- Hits        12459    12254     -205     
- Misses       1620     2113     +493     
Impacted Files Coverage Δ
src/lib.rs 75.33% <ø> (+11.86%) ⬆️
src/result.rs 57.36% <ø> (-11.36%) ⬇️
src/types/mod.rs 67.05% <ø> (-21.96%) ⬇️
src/types/timestamp.rs 69.78% <ø> (-18.04%) ⬇️
src/value/mod.rs 88.92% <ø> (ø)
src/value/reader.rs 93.79% <ø> (-6.21%) ⬇️
src/value/writer.rs 57.14% <ø> (-28.29%) ⬇️
ion-c-sys/src/writer.rs 20.40% <0.00%> (-71.10%) ⬇️
ion-c-sys/src/reader.rs 37.42% <0.00%> (-44.18%) ⬇️
ion-c-sys/src/result.rs 58.13% <0.00%> (-20.94%) ⬇️
... and 13 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@desaikd desaikd left a comment

Choose a reason for hiding this comment

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

🚢

Copy link
Contributor

@rmarrowstone rmarrowstone left a comment

Choose a reason for hiding this comment

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

Huzzah!

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.

None yet

3 participants