4 ms·
I think the philosophy of Rust is to have a minimal micro-kernel standard library, allowing developers to choose crates that implement solutions in ways that fi
by Communitivity 7y ago
I think the philosophy of Rust is to have a minimal micro-kernel standard library, allowing developers to choose crates that implement solutions in ways that fit their particular problem space. I like that approach more than a 'one true way' approach.
Both approaches have their advantages and crates approach can lead to things like the left-pad problem experience, where the loss of a single one-function package in the NodeJS ecosystem resulted in thousands of projects breaking, including NodeJS itself and Babel.
All in all though, I still like the crate approach. The trick is for developers to not publish trivial crates, and to not allow unpublishing except in extreme circumstances (i.e., for cybersecurity reasons).
- mooman219 7y agoCrates are immutable once published and cannot be pulled by the user. If you accidentally upload secrets, the FAQ recommends changing the secrets because the crate version isn't going to be removed. You can "yank" a version which discourages people from downloading it, but does not prevent them.