It looks fun. I’ve commented my ideas about it.
If possible I want to pick it up. I need your advices! Thx.
Here’s what I commented. Any discussion is welcome!
- Maybe just compile one crate with incremental way and common way, then compare the output and code is better? For your provided workflow, it seems that it should compile a whole project with some crates.
- To compare the outputs, is there any API provided by rustc to generate inner data struct of compile info? If not, maybe comparing the output from stdout and stderr is worth considering.
- To compare output file, is it possible that the files generated by the two ways is same if compared bit by bit? Sorry that I don’t know how rustc incremental compilation works, could you explain it?