cargo-minimize icon indicating copy to clipboard operation
cargo-minimize copied to clipboard

Integration with treereduce-rust?

Open langston-barrett opened this issue 10 months ago • 1 comments

You mention DustMite and perses in the README, just wanted to drop a line and say that treereduce-rust might be a good candidate for a fine-grained reduction tool. It is written in Rust, so it could be easily integrated into the build and distribution of cargo-minimize. It has already been used to minimize hundreds of rustc ICEs.

Please feel free to close this issue with prejudice if it isn't a helpful idea/discussion 😄

[EDIT]: Hah, just read through #33, and I can see you already thought of this! FWIW, I could definitely see integrating more language-specific strategies either inside treereduce, or as a language-specific wrappre around it.

langston-barrett avatar Mar 02 '25 18:03 langston-barrett

Yes, I've successfully used treereduce-rust before, it's very cool :). Yeah as it is currently cargo-minimize is quite good at getting down the big crates at the start (at least when it doesn't crash) but for the final phase something more fine-grained like treereduce-rust would make a lot of sense. I haven't put any effort into cargo-minimize in quite a while though and probably won't in the near future either. BUt I can merge PRs and talk about it if you're interested :D.

Noratrieb avatar Mar 02 '25 18:03 Noratrieb