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

feat: Introduce From<T> impl for Rfc3339 wrapper #16

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions CHANGELOG.md

This file was deleted.

41 changes: 39 additions & 2 deletions merde_json/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0](https://github.com/bearcove/merde_json/compare/merde_json-v2.0.0...merde_json-v2.1.0) - 2024-07-31
## [2.0.0](https://github.com/bearcove/merde_json/compare/v1.0.1...v2.0.0) - 2024-07-31

### Added
- Introduce merde_json_types
- Introduce `to_string` and other top-level functions for serde_json compat
- Implement ToStatic for Option<T>

### Other
- I guess that bound wasn't necessary
- Elide lifetimes
- Tests pass! Let's only do OffsetDateTime
- Some unit tests for datetime (failing so far)
- Make both enums non-exhaustive
- WIP time implementation
- Also run on merge_group

## [1.0.1](https://github.com/bearcove/merde_json/compare/v1.0.0...v1.0.1) - 2024-07-29

### Fixed
- Declare lifetime parameters in a consistent order, always ([#4](https://github.com/bearcove/merde_json/pull/4))

### Other
- release

## [1.0.0](https://github.com/bearcove/merde_json/releases/tag/v1.0.0) - 2024-07-29

### Other
- Add release-plz flow
- Alright then
- Flesh out README, add funding
- Don't need the rust action?
- All tests pass I believe
- Mhmh
- More tests pass
- Show off ToStatic
- mh
- Add mixed example
- Getting somewhere
- Fix CI workflow
- Lift 'inner at the trait level for JsonDeserialize
- More docs
- Initial import
6 changes: 6 additions & 0 deletions merde_json_types/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ use std::{
#[repr(transparent)]
pub struct Rfc3339<T>(pub T);

impl<T> From<T> for Rfc3339<T> {
fn from(t: T) -> Self {
Rfc3339(t)
}
}

impl<T> Deref for Rfc3339<T> {
type Target = T;

Expand Down