3 ms·
yeah, downvote it when you have nothing to say, that's how to make a discussion. Facts: Incremental compilation from 1.24 stable: https://blog.rust-lang.org/2
by EugeneOZ 8y ago
yeah, downvote it when you have nothing to say, that's how to make a discussion.
Facts:
Incremental compilation from 1.24 stable: https://blog.rust-lang.org/2018/02/15/Rust-1.24.html https://blog.rust-lang.org/2018/02/15/Rust-1.24.html
Cargo recompiles dependencies only after "cargo clean" or after Rust version update.
- pjmlp 8y agoI didn't downvote you. Cargo surely recompiles common dependencies across crates, unless one uses the workspace trick and even then recompiles do happen. Just get Gtk-rs, get nightly and then trace the build log. I once even mailed Rust devs about it. Incremental compilation still isn't up to incremental compilation + incremental linking, which is why I explicitly mentioned both on my comment.
- steveklabnik 8y agoTo clarify two things you've said: 1. Hacker News won't let you downvote someone who replies to you, so it is literally impossible for you to have downvoted in this situation. 2. Both of you are correct, because you're talking about different things. Evgeniy means "You only need to compile your dependencies upon the first build", and you mean "if I use the same dependency in two projects, it will be compiled twice, once on the initial compile of both."
- pjmlp 8y agoThanks for the clarification.
- steveklabnik 8y agoNo problem. Others haven't had this conversation as many times as you and I have :)
- pjmlp 8y agoYep, I still look forward to eventually advocate the contrary. Even when I sometimes sound negative, I really appreciate your work. Rust achievements thus far already influenced design decisions in other languages.