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

Add support for time v0.3 types #450

Merged
merged 5 commits into from May 12, 2022
Merged

Add support for time v0.3 types #450

merged 5 commits into from May 12, 2022

Commits on May 12, 2022

  1. Copy the full SHA
    ccad9af View commit details
    Browse the repository at this point in the history
  2. Initial support for the time crate v0.3

    This includes implementations of the Duration*Seconds and Timestamp*Seconds
    types. The Timestamp*Seconds converters are implemented for both
    `PrimitiveDateTime` and `OffsetDateTime`.
    It also includes the well-known format specifiers `Rfc2822` and `Rfc3339`
    as converters for `OffsetDateTime`:
    
        #[serde_as(as = "Rfc2822")]
        datetime: OffsetDateTime,
    
    Simple tests are included.
    jonasbb committed May 12, 2022
    Copy the full SHA
    3b2504a View commit details
    Browse the repository at this point in the history
  3. Add documentation for time

    * Add a simple module documentation, similar to the chrono one.
    * Describe the new feature flag.
    * Update the documentations for the Timestamp* and Duration* types, both
      where they are defined and in the transformations list.
    * Add new transformations for the well-known Rfc2822 and Rfc3339 types.
    jonasbb committed May 12, 2022
    Copy the full SHA
    8699a44 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    53edf8f View commit details
    Browse the repository at this point in the history
  5. Bump MSRV to 1.53 for time compatability

    The `time` dependency requires Rust 1.53.
    Bump the MSRV to support this.
    This allows removing some work-arounds for older Rust versions.
    It drops support for versions without const-generics and the old array
    implementations.
    jonasbb committed May 12, 2022
    Copy the full SHA
    64bdb23 View commit details
    Browse the repository at this point in the history