3 ms·
I'm just one voice (and I'm probably not someone who uses your specific library), but this does sound like a good idea. I'd appreciate it (though I understand t
by jeroenhd 5y ago
I'm just one voice (and I'm probably not someone who uses your specific library), but this does sound like a good idea. I'd appreciate it (though I understand that this takes effort and maintenance, so I understand if you don't want to!)
Your 20 second library is not too bad when it's used on its own, but add 5 or 6 libraries that all "only" take a few seconds and you're waiting a solid five minutes compiling other people's code and their dependencies.
Even simple Rust programs quickly end up compiling several versions of several libraries because of the dependency tree, some of which can include large libraries like Tokio and Serde. I love libraries that make use of feature flags, they massively cut down on my compile time.
This isn't really any library developers' fault, it's a problem with the entire ecosystem. Cargo is not dissimilar from NPM where you can quickly end up with an exploded dependency chain of hundreds of megabytes in supporting code before you even realize.