Closed jyn514 closed 4 years ago
It looks like this might be the culprit: https://github.com/google/rerast/blob/master/src/code_substitution.rs#L268
I'm interested in helping fix this, hopefully I'll have a PR by the end of today :)
Do you know how I would get the top level directory for a crate? I see https://docs.rs/cargo/0.40.0/cargo/sources/path/struct.PathSource.html in the docs but I'm not sure how I would get an instance of it.
Ignore me, you're using cargo metadata
in cargo-rerast.rs
so it's just workspace_root
I think this might be happening after the diff is calculated because on my large project it runs for a while before giving an error.