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

Cherry pick Minimize features of indexmap and chrono to active_release #1017

Closed
wants to merge 1 commit into from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Dec 9, 2021

Automatic cherry-pick of 72c9d1e

* Disable default features of chrono; only enable features needed

Chrono's default features contain "oldtime", which is deprecated.
According to [the docs](https://docs.rs/chrono/0.4.19/chrono/#duration),

> new code should disable the oldtime feature and use the
> chrono::Duration type instead. The oldtime feature is enabled by
> default for backwards compatibility, but future versions of Chrono
> are likely to remove the feature entirely.

so follow that recommendation by setting default-features to false. And
actually, only Arrow needs the "clock" feature, so all the other
features can stay off too to minimize the feature set that projects
depending on arrow or parquet are forced to enable.

* Explicitly enable indexmap's "std" feature

The indexmap crate uses the autocfg crate to do target detection to
determine whether `std` is available. Arrow isn't targeting `no_std`
environments, so the target detection isn't necessary. This might save
some build time.

indexmap-rs/indexmap#145
@github-actions github-actions bot added arrow Changes to the arrow crate parquet Changes to the parquet crate labels Dec 9, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2021

Codecov Report

Merging #1017 (326d3a5) into active_release (a92672e) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           active_release    #1017   +/-   ##
===============================================
  Coverage           82.37%   82.38%           
===============================================
  Files                 168      168           
  Lines               49133    49133           
===============================================
+ Hits                40474    40477    +3     
+ Misses               8659     8656    -3     
Impacted Files Coverage Δ
arrow/src/array/transform/mod.rs 85.47% <0.00%> (+0.13%) ⬆️
parquet/src/encodings/encoding.rs 93.71% <0.00%> (+0.19%) ⬆️
parquet_derive/src/parquet_field.rs 66.43% <0.00%> (+0.22%) ⬆️

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 a92672e...326d3a5. Read the comment docs.

@alamb
Copy link
Contributor Author

alamb commented Dec 9, 2021

🤔 there appears to be something wrong with the tests on this PR

@alamb
Copy link
Contributor Author

alamb commented Dec 20, 2021

Not sure what happened here, but will avoid backport and wait for arrow 7.0.0 release. If anyone else needs this sooner feel free to get a PR up to active_release

@alamb alamb closed this Dec 20, 2021
@alamb alamb deleted the cherry_pick_72c9d1ea branch December 23, 2021 21:25
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 parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants