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

Remove unneeded rc feature of serde #990

Merged
merged 1 commit into from Dec 3, 2021

Conversation

carols10cents
Copy link
Contributor

Fixes #989.

This feature opts into impls for Rc and Arc, but none of the data
structures that use Serialize/Deserialize actually contain Rc or
Arcs.

See:

Which issue does this PR close?

Closes #989.

Rationale for this change

Compile less code, enable fewer features for crates depending on Arrow. The tests still pass without this feature.

What changes are included in this PR?

Remove a feature enabled.

Are there any user-facing changes?

Projects depending on this crate that accidentally took advantage of feature unification to use the functionality added by rc might have to add the rc feature themselves... but that would be a bug in their project.

I don't think this is documented anywhere user-facing, and I don't think this qualifies as a breaking change to a public API, but I could be wrong, Cargo feature usage is tricky. Please let me know if I'm missing something!

@github-actions github-actions bot added the arrow Changes to the arrow crate label Dec 2, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #990 (b650691) into master (e9be49d) will decrease coverage by 0.00%.
The diff coverage is n/a.

❗ Current head b650691 differs from pull request most recent head 6468a9a. Consider uploading reports for the commit 6468a9a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #990      +/-   ##
==========================================
- Coverage   82.31%   82.30%   -0.01%     
==========================================
  Files         168      168              
  Lines       48763    48763              
==========================================
- Hits        40139    40135       -4     
- Misses       8624     8628       +4     
Impacted Files Coverage Δ
parquet/src/schema/printer.rs 72.47% <0.00%> (-0.55%) ⬇️
parquet_derive/src/parquet_field.rs 65.98% <0.00%> (-0.46%) ⬇️
parquet/src/arrow/arrow_array_reader.rs 77.87% <0.00%> (-0.15%) ⬇️
arrow/src/array/transform/mod.rs 85.10% <0.00%> (+0.13%) ⬆️

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 e9be49d...6468a9a. Read the comment docs.

@carols10cents
Copy link
Contributor Author

oh hey new clippy just dropped... fun!

@houqp
Copy link
Member

houqp commented Dec 2, 2021

CI failure is the rust team's way to let everyone know that a new release is out ;)

@alamb
Copy link
Contributor

alamb commented Dec 3, 2021

Conveniently, someone already fixed clippy :) #992

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me;

@alamb
Copy link
Contributor

alamb commented Dec 3, 2021

I think if you merge apache/master into this branch we should be able to get a clean clippy run

Fixes apache#989.

This feature opts into impls for `Rc` and `Arc`, but none of the data
structures that use Serialize/Deserialize actually contain `Rc` or
`Arc`s.

See:

- [Serde docs](https://serde.rs/feature-flags.html#-features-rc)
- [PR adding this](apache/arrow#3016)
@alamb alamb merged commit 771b248 into apache:master Dec 3, 2021
alamb pushed a commit that referenced this pull request Dec 9, 2021
Fixes #989.

This feature opts into impls for `Rc` and `Arc`, but none of the data
structures that use Serialize/Deserialize actually contain `Rc` or
`Arc`s.

See:

- [Serde docs](https://serde.rs/feature-flags.html#-features-rc)
- [PR adding this](apache/arrow#3016)
@alamb alamb added the cherry-picked PR that was backported to active release (will be included in maintenance release) label Dec 9, 2021
alamb added a commit that referenced this pull request Dec 9, 2021
Fixes #989.

This feature opts into impls for `Rc` and `Arc`, but none of the data
structures that use Serialize/Deserialize actually contain `Rc` or
`Arc`s.

See:

- [Serde docs](https://serde.rs/feature-flags.html#-features-rc)
- [PR adding this](apache/arrow#3016)

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate cherry-picked PR that was backported to active release (will be included in maintenance release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serde rc feature might not be needed?
4 participants