diff-struct
diff-struct copied to clipboard
Rust trait for diffing and applying diffs between data structures
Dear Maintainer, thanks for this nice crate! I do have the following situation: ```rust #[derive(Diff, PartialEq, Eq)] pub struct ExternalType { pub timestamp: Datetime, } ``` Are there any chances...
Hello @BenHall-7 , Playing with the lib I've come across inconsistent behavior for structs containing `String` types. Example: ```rust use diff::Diff; #[derive(Debug, PartialEq, Diff)] #[diff(attr( #[derive(Debug, PartialEq)] ))] struct OptionalInteger...
Hey! This crate is really awesome. Good work :) I think it might be useful to implement `Default` on all of the diff types — defaulting to a "no change"....
Would it be possible to move the serde dependency to be behind a feature flag, instead of being always required?
I want to ensure that the data is proper json when ser/de, so I made the struct_value a serde_json::Value. However, if I try to diff it I get the following...
This would likely involve adding an `alloc` and `std` feature.
Hi there. added `Diff` implementation with cfg flags for [uuid](https://crates.io/crates/uuid) crate.