Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

rollup a number of recent PRs #165

Merged
merged 7 commits into from
Nov 30, 2024
Merged

rollup a number of recent PRs #165

merged 7 commits into from
Nov 30, 2024

Conversation

BurntSushi
Copy link
Owner

This is just a rollup of most of the outstanding PRs with some light
editing of commit messages and the addition of CHANGELOG entries.

Closes #138
Closes #148
Closes #149
Closes #161
Closes #150
Closes #153
Closes #143
Closes #142

LeoniePhiline and others added 7 commits November 30, 2024 13:57
Deserializing `jiff` types from YAML is not
currently possible.

Neither `serde_yaml` nor its maintained fork
`serde_yml` support deserializing from bytes.

These tests serve in both

- proving the current incompatibility
- verifying the fix in the following commit,
  which migrates `Deserialize` implementations
  to `deserializer.deserialize_str`.

Ref #138, Ref #148
Deserializing `jiff` types from YAML was previously not possible.
Namely, neither `serde_yaml` nor its maintained fork `serde_yml`
support deserializing from bytes.

This changset migrates `Deserialize` implementations to
`deserializer.deserialize_str`, thus providing serde YAML
compatibility.

There is some more discussion about this inconsistency at a higher
level in #138.

Fixes #138, Fixes #148, Closes #149
The colored docs.rs badge is quick to spot, which increases ergonomics
for library users.

Closes #153
This mostly implements `Hash` for all types that also implement
`PartialEq` and `Eq`, but notably omits one for `Span`. The reason being
that I'm currently planning on removing the `PartialEq` and `Eq`
implementations of `Span`, so I'd prefer not to add more API surface
area that relies on it.

Closes #143
The documentation for the deprecated `as_duration` function in
`Timestamp` referenced a non-existent function `as_signed_duration`.
It should point to `as_jiff_duration` instead.

Closes #142
@BurntSushi BurntSushi added the rollup A PR that closes multiple open issues or other PRs. label Nov 30, 2024
@BurntSushi BurntSushi merged commit d538cd9 into master Nov 30, 2024
17 checks passed
@BurntSushi BurntSushi deleted the ag/rollup branch November 30, 2024 19:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
rollup A PR that closes multiple open issues or other PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency between serialize and deserialize in Serde
5 participants