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

Several fixes and all other PRs #30

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

Nukesor
Copy link

@Nukesor Nukesor commented Apr 1, 2024

Fixes #29
Incorporates #28, #26, #25, #21

This MR does a few things for your convenience:

  • Incorporate all open PRs that're currently open on this repository. They're all sensible and contain fairly simple changes. (@erickt, @tamird, @HarrisonMc555)
  • Fix the current chrono compilation error
  • Fix clippy lints
  • Replace most of the cryptic abbreviated variable names, this is a WIP though.
  • Add a CI setup for linting/formatting
  • Add a few issue templates, feel free to remove them if you don't like them.
  • Format the code based on Rust's fmt, this has already been done by @HarrissonMc555.

Open tasks:

  • Replace remaining abbreviated variable names
  • Replace all deprecated chrono variables

This state seems to work, the tests pass and it can be used to publish a preliminary release that fixes most issues of the community.

@stevedonovan
After taking a look at #22, if you require help in releasing this crate, I would be open to hop into a call with you. I'll introduce you to a bit of nice tooling such as cargo-release and a few best-practices on how to do this :).

This would then also fix #22 and #27

HarrisonMc555 and others added 10 commits October 5, 2023 10:29
Although the `DateError` struct was public, there was no way to create
one with the publicly available items. Now, the `date_error` and
`date_result` items are public, so users can create `DateError`s.

This can be useful, for example, when the user wants a function to
return a `DateResult` but performs some additional validation in
addition to the validation performed by the `parse_duration`
function. Now, users can perform the validation and return a
`DateError` if the validation fails.
Previously, the publicly available structs and enums only implemented
`Debug` (and maybe `PartialEq`). Now, they implement most commonly
used traits from the standard library. This makes them much easier to
use.
While the chrono-engligh tests depend on the `clock` feature, it's not
used as part of the non-test chrono-english. This turns off the feature
to reduce the dependencies needed by downstream libraries and
applications.
@Nukesor Nukesor changed the title Several fixes Several fixes and all other PRs Apr 1, 2024
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.

Compilation error[E0277]: the trait bound Tz: Copy is not satisfied Release 0.1.7 includes Cargo.lock
4 participants