I agree with you in that we should try to do better here, but I just want to point out that many languages in Rust's space, like C or C++, have a tiny standard library, and they are widely-used in industry. A team / project might decide to use something other than Rust for a variety of reasons, and some teams might consider a lean standard library as a downside in their evaluation, but I doubt that any team will reject Rust exclusively due to this specific downside.
While there are many organization with complex bureaucratic processes about the third-party libraries that they allow, there are middle grounds between "not using any external library" and "using any library from crates.io". For example, some project like stdx
bundle groups of crates together, such that an organization only has to approve stdx
and its dependencies, and then you can use those.
If your organization is super averse to third party dependencies, then you can't use dependencies in C, C++, Javascript/Node.js, Python, ... either. If you are considering Rust, chances are that your alternatives are only C or C++, in which case a lean standard library doesn't really penalize Rust, since those languages standard libraries are tiny as well. If you are considering, e.g., a language with a big library like Python vs Rust, then many other tradeoffs apply. If Python suffices for a commercial project, choosing Rust instead is going to be hard to justify, but I doubt that the choice will come down to who has the largest standard library. Python without PIP is super-crippled, as in, sure, the Python standard library is much larger, but many parts of it are deprecated / discouraged to use, and the recommended packages are in PIP. So if your constraint is "no third-party libraries / std library only", then pretty much all languages are going to be significantly penalized.
In practice, chances are that your company allows you to use certain third-party libraries independently of which language you decide to use, and that these libraries have to go through an approval process. If this is the case, then Rust with cargo
is already better-off than many of the alternatives where managing dependencies, their licenses, vendoring them, using alternative registries, etc. is often a pain.