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

Arbitrary 04x #849

Merged
merged 8 commits into from Oct 18, 2022
Merged

Arbitrary 04x #849

merged 8 commits into from Oct 18, 2022

Conversation

greyblake
Copy link
Contributor

@greyblake greyblake commented Oct 17, 2022

This PR is replacement for #848 and #559 and targets 0.4.x branch.

Changes

  • Add arbitrary optional feature
  • Implement Arbitrary for the following types:
    • NaiveDate, NaiveTime, NaiveDateTime
    • FixedOffset, Utc, Local
    • Date, Time, DateTime
    • Duration (oldtime)
    • Month, Months
    • Weekday

Notes

It still requires tweaking CI to run cargo check --features arbitrary, I am not sure what would be the best place for this, so I leave it for the maintainers.

P.S.

If this gets merged, would it be possible to publish a new version?

@asayers
Copy link
Contributor

asayers commented Oct 18, 2022

Thanks for picking this up and extending it @greyblake! As you surmised, I’m not able to spend much time on chrono right now…

@djc djc merged commit b9241c0 into chronotope:0.4.x Oct 18, 2022
@djc
Copy link
Contributor

djc commented Oct 18, 2022

Thanks!

@greyblake
Copy link
Contributor Author

@djc Thank you for accepting the changes! Would you mind publishing a new version with these changes? (0.4.23 I guess)

@djc
Copy link
Contributor

djc commented Oct 18, 2022

@greyblake see #850.

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