Skip to content

Conversation

yanganto
Copy link
Contributor

update for latest syntax

Bumps [struct-patch](https://github.com/yanganto/struct-patch) from 0.4.1 to 0.8.6.
- [Release notes](https://github.com/yanganto/struct-patch/releases)
- [Commits](yanganto/struct-patch@v0.4.1...v0.8.6)

---
updated-dependencies:
- dependency-name: struct-patch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@yanganto yanganto changed the base branch from dependabot/cargo/struct-patch-0.8.6 to master October 14, 2024 04:15
@yanganto yanganto force-pushed the struct-patch-upgrade-fix branch from 088e8ef to 1b4372b Compare October 14, 2024 04:20
@yanganto yanganto changed the title fix derive attribute for Patch struct Bump struct-patch from 0.4.1 to 0.8.6 Oct 14, 2024
@extrawurst
Copy link
Collaborator

this does not affect the serialization format i assume? otherwise we need a breaking change note and adapt docs

@yanganto
Copy link
Contributor Author

yanganto commented Oct 16, 2024

You are correct. The serialization format does not change.

The crate now supports all kind of attributes on patch, Option<NestingStruct> fields, and more operators (+, and <<) on patch in the later versions.

Gitui uses a simple not nesting struct for the config, and does not manipulate on multiple patches, so the only change is the macro syntax.

Copy link
Collaborator

@extrawurst extrawurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@extrawurst extrawurst merged commit b4c0244 into gitui-org:master Oct 21, 2024
21 checks passed
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.

2 participants