3 ms·
Rust crates usually have "feature flags" [1] that help with dependency bloat. You only pull in the parts of the dependency tree that you actually use, even if t
by Expurple 1y ago
Rust crates usually have "feature flags" [1] that help with dependency bloat. You only pull in the parts of the dependency tree that you actually use, even if the crates that you use can be configured to provide more features and pull more dependencies.
https://doc.rust-lang.org/cargo/reference/features.html https://doc.rust-lang.org/cargo/reference/features.html
- pjmlp 1y agoAlso a reason why some crates get compiled multiple times, making the compile times even more of a pain, when they happen to be referenced multiple times with different configurations.
- Expurple 1y agoTrue, but this is being worked on now: https://github.com/rust-lang/cargo/issues/14774 https://github.com/rust-lang/cargo/issues/14774