serde-diff
serde-diff copied to clipboard
Utility for comparing two structs and re-applying the differences to other structs
One line alteration that fixes these errors when using wasm: - "the trait bound OsString: Serialize is not satisfied" - "the trait bound for is not satisfied"
Looking at the issues, PR and latest commit, this crate looks unmaintained, which is a pity. Is there a fork that is maintained?
Resolves #39 Bug was caused because the SerdeDerive macro implementation didn't signal the end of diff for structure.
Hello! It seems like the output of algorithm can be serialized, however, I see no way of iterating over changes in order to process them manually.
Fixes #35 This includes the changes from #33 and #34
In this case clippy warning is raised that float comparison is being done: ``` #[derive(SerdeDiff)] struct Test { a: f32 } ``` As we care only about binary representation, then...
See the applied test where "map" like structure is tested. ``` running 4 tests test tests::test_targeted ... ok test tests::test_array ... ok test tests::test_tuple ... ok test tests::test_option ... FAILED...
The existing SerdeDiff implementation is good enough and I suggest that there is no need to implement support for key diffing.
Cow, Box, and Cell all have trivial implementations that should make it easy to support more downstream uses of SerdeDiff. Rc, Arc, RefCell, and friends have either fallible read or...
When diffing an enum like: ```rust #[derive(SerdeDiff, Serialize, Deserialize, Debug, PartialEq, Clone)] enum Value { Str(String), Int(i32), } ``` Let's say we have the diff `Value::Str("A") -> Value::Str("B")`. The diff...