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

refactor: port div_ceil from stdlib to avoid unstable features #1191

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

sunng87
Copy link
Member

@sunng87 sunng87 commented Mar 16, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

When using our code base with those repos requires stable toolchains, like vector, unstable features block its compilation. This patch removes replaceable unstable feature in time module.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Mar 16, 2023

Codecov Report

Merging #1191 (9cece3b) into develop (17eb99b) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #1191      +/-   ##
===========================================
+ Coverage    85.14%   85.17%   +0.02%     
===========================================
  Files          485      485              
  Lines        71903    71985      +82     
===========================================
+ Hits         61223    61312      +89     
+ Misses       10680    10673       -7     

@sunng87 sunng87 force-pushed the feature/compile-time-on-stable branch from 8f80ea7 to 9cece3b Compare March 16, 2023 09:59
@sunng87
Copy link
Member Author

sunng87 commented Mar 16, 2023

Just ported rust stdlib's impl of div_ceil and add reproducible test case from @v0y4g3r

@sunng87 sunng87 changed the title refactor: use float div&ceil to avoid unstable features refactor: port div_ceil from stdlib to avoid unstable features Mar 16, 2023
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

lgtm

@v0y4g3r v0y4g3r merged commit a7676d8 into GreptimeTeam:develop Mar 16, 2023
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…imeTeam#1191)

* refactor: use float div&ceil to avoid unstable features

* refactor: port div_ceil from rust stdlib
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.

3 participants