3 ms·
I talk about this a bit, I'm in favor of at least medium granularity crates, but if they break down into smaller features, where different use cases will meanin
by raphlinus 7y ago
I talk about this a bit, I'm in favor of at least medium granularity crates, but if they break down into smaller features, where different use cases will meaningfully choose different sets of features, use feature gates. So, for example, you might have a "string formatting utilities" crate with a "left-pad" feature. (Note: this particular example is unlikely because the `format!` macro in the standard library can do it just fine)