2 ms·
I have not used Rust very much. But in https://doc.rust-lang.org/cargo/reference/build-scripts.html https://doc.rust-lang.org/cargo/reference/build-scripts.htm
by btilly 6y ago
I have not used Rust very much.
But in https://doc.rust-lang.org/cargo/reference/build-scripts.html https://doc.rust-lang.org/cargo/reference/build-scripts.html I find comments like, It is recommended to carefully consider each dependency you add, weighing against the impact on compile time, licensing, maintenance, etc. Cargo will attempt to reuse a dependency if it is shared between build dependencies and normal dependencies. However, this is not always possible, for example when cross-compiling, so keep that in consideration of the impact on compile time.
So it looks like cargo can have the same issue that make does with recursive dependencies.
- steveklabnik 6y agoThis is talking about very different issues than the ones identified in that paper. Most of that paper, if not all, does not directly apply to Cargo.
- btilly 6y agoThank you for the insight. I know you know Rust very well. Do you have an explanation for why compile times would be an issue for Rust?
- steveklabnik 6y agoThere’s a lot of factors. https://endler.dev/2020/rust-compile-times/ https://endler.dev/2020/rust-compile-times/ talks about some of them.