Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude = [ "no-std-examples" ]

[workspace.package]
authors = ["Antonio Yang <yanganto@gmail.com>"]
version = "0.10.5"
version = "0.11.0"
edition = "2021"
categories = ["development-tools"]
keywords = ["struct", "patch", "macro", "derive", "overlay"]
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ A lib help you patch Rust instance, and easy to partial update configures.
This crate provides the `Patch`, `Filler` traits and accompanying derive macro.
If the any field in `Patch` is some then it will overwrite the field of instance when apply.
If the any field in the instance is none then it will try to fill the field with the `Filler`.
Currently, `Filler` only support `Option` and `Vec` fields, and also you can check this [template](https://github.com/yanganto/ConfigTemplate) if you already work on a big project with a lot of configs.
Currently, `Filler` only support `Option` and `Vec` fields, and also you can check this [template](https://github.com/yanganto/ConfigTemplate)
if you already work on a big project with a lot of configs.
This crate support `no_std`, please check [no-std-examples](./no-std-examples).

## Quick Example
Deriving `Patch` on a struct will generate a struct similar to the original one, but with all fields wrapped in an `Option`.
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme.workspace = true
rust-version.workspace = true

[dependencies]
struct-patch-derive = { version = "=0.10.5", path = "../derive" }
struct-patch-derive = { version = "=0.11.0", path = "../derive" }

[dev-dependencies]
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion no-std-examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "no-std-examples"
authors = ["Antonio Yang <yanganto@gmail.com>"]
version = "0.10.5"
version = "0.11.0"
edition = "2021"
license = "MIT"

Expand Down