-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out relationship to diffs-rs #1
Comments
From the conversation with @P-E-Meunier on a Twitter DM:
So current status is that for pijul to use this it would need to be hosted in pijul. So one option is to separate out the diff part again into a crate and move it off github. |
I tried using diffs directly for a test now but I'm currently running into incompatible bounds on the patience diff. |
You mean the |
@P-E-Meunier I have to admit I have troubles reading the trait bounds on that function at the moment. I believe that the current bounds define The bounds in similar are like this instead: pub fn diff<Old, New, D>(
d: &mut D,
old: &Old,
old_range: Range<usize>,
new: &New,
new_range: Range<usize>,
) -> Result<(), D::Error>
where
Old: Index<usize> + ?Sized,
New: Index<usize> + ?Sized,
Old::Output: Hash + Eq,
New::Output: PartialEq<Old::Output> + Hash + Eq,
D: DiffHook,
{ This lets me have a |
These crates have diverged too much, I'm going to close this issue is no longer being applicable. |
Currently this does not use diffs-rs but it tries to stay largely compatible to it. The reason it's a fork rather than reusing the code comes down to the following reasons at the moment:
The outcome right now is not super great because it should be possible in theory to create a version of this crate which is reduced to exactly what diffs-rs does.
The text was updated successfully, but these errors were encountered: