Hey all,
Awesome crate! I'm using this in diff.rs to diff crates in the browser.
I'm using the Bytes crate to keep crate files in memory because it lets me keep stuff around in a reference-counted way and it also lets me create views into that. I have to use a bit of an ugly hack right now to make this work with similar because you guys currently only support byte slices &[u8] , but I want to turn these back into Bytes structs.
Looking at the code, it should be fairly simple to add native support for Bytes into the crate by implementing the DiffableStr trait for Bytes, perhaps as a feature flag.
Is this something you guys would be interested in? If so, I might implement it and create a merge request.
Cheers,
Patrick!
Hey all,
Awesome crate! I'm using this in diff.rs to diff crates in the browser.
I'm using the
Bytescrate to keep crate files in memory because it lets me keep stuff around in a reference-counted way and it also lets me create views into that. I have to use a bit of an ugly hack right now to make this work withsimilarbecause you guys currently only support byte slices&[u8], but I want to turn these back intoBytesstructs.Looking at the code, it should be fairly simple to add native support for
Bytesinto the crate by implementing theDiffableStrtrait forBytes, perhaps as a feature flag.Is this something you guys would be interested in? If so, I might implement it and create a merge request.
Cheers,
Patrick!