Rust standard library
Ranked 4 of 7 standard libraries by recommenders
Built-in library that gives common functionality without extra dependencies, and sensible defaults like BTreeMap. Critics say its low-level file APIs are thin and it panics on allocation failure.
Built-in library that gives common functionality without extra dependencies, and sensible defaults like BTreeMap. Critics say its low-level file APIs are thin and it panics on allocation failure.
28 people gave an opinion
- recommend it
- 12
- criticize it
- 16
- approval share
- 43%
Recommended in 9 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: not recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: not recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 12 people recommend itNeeds 10 or more, met.
- 0.7 recommenders for every criticNeeds 2 to 1 or better, not met.
- Recommended in 9 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Avoids extra dependencies, solid and boring
“the solid, boring and slightly rusty std instead of another 100 dependencies”
Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan” “Rust has an enormous standard library”
Comment from 20 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload” Easy, useful built-in APIs
“the Rust stdlib iterator for lines() handles both conventions. It just works. Very easy.”
Comment from 2 Jun 2026 in “Coreutils for Windows” “The rust standard library is excellent.”
Comment from 28 Feb 2026 in “Rust Is Just a Tool” “the rust stdlib is useful”
Comment from 12 Jul 2026 in “Understanding the Odin Programming Language” Sensible defaults like BTreeMap
“Rust makes using an optimized BTreeMap the default, much-easier thing to do when actually writing code”
Comment from 15 Jan 2026 in “Is Rust faster than C?” “have a look at what Rust's standard library does with BTreeMap”
Comment from 5 Nov 2025 in “Intervaltree with Rust Back End”
What people warn about
Each mark is one comment
Thin low-level file APIs, weak safety
“It's more mistake prone than POSIX (in some aspects) because it is missing a whole family of low-level syscalls.”
Comment from 29 Apr 2026 in “Bugs Rust Won't Catch” “it's so low -level that it's not offering much "safety" in filesystem access over raw syscalls”
Comment from 29 Apr 2026 in “Bugs Rust Won't Catch” “Working safely with files should not require *const c_char.”
Comment from 29 Apr 2026 in “Bugs Rust Won't Catch” Panics on allocation failure, blind spots
“It panics on allocation failure. You expect Rust programmers to look at stdlib and not imitate it?”
Comment from 19 Nov 2025 in “Cloudflare outage on November 18, 2025 post mortem” “it's certainly not ideal that the standard library currently has blind spots around allocation”
Comment from 6 Jan 2026 in “C Is Best”
Other standard libraries people recommend
The four most recommended other standard libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Go standard library | 34 | 15 | 69% | 11 | — | Approved |
| C++ Standard Library | 15 | 23 | 39% | 8 | — | — |
| Python standard library | 13 | 7 | 65% | 8 | — | — |
| Rust standard libraryThis page | 12 | 16 | 43% | 9 | — | — |
| Java standard library | 7 | 3 | 70% | 4 | — | — |
What people said
27 of the 28 comments that mention it, newest first. Each links to the original comment.
“Rust has an enormous standard library”
“this is not a correct implementation of arbitrary-base logarithm”
“the rust stdlib is useful”
“the Rust stdlib iterator for lines() handles both conventions. It just works. Very easy.”
“It's not fine even for a normal program, because operations on a large number of files will end up an order of magnitude slower.”
“I'm glad they didn't go with the idiotic Go approach”
“Working safely with files should not require *const c_char.”
“It's more mistake prone than POSIX (in some aspects) because it is missing a whole family of low-level syscalls.”
“I find the rust standard library to default to Unix too much for a generic programming language”
“rewrite the code to use that library rather than rust stdlib methods”
“it's so low -level that it's not offering much "safety" in filesystem access over raw syscalls”
“Rust stdlib nudges the developer towards using neat APIs at an incorrect level of abstraction”
“the solid, boring and slightly rusty std instead of another 100 dependencies”
“strikes a good balance between being too small or too big”
“The rust standard library is excellent.”
“the small standard library in Rust is a big mistake”
“exposes enough platform details to allow writing the missing knobs”
“Rust makes using an optimized BTreeMap the default, much-easier thing to do when actually writing code”
“it's certainly not ideal that the standard library currently has blind spots around allocation”
“I applaud the decision and the will of the core teams for sticking to their guns in this area.”
“Rust's libstd sabotaging it and giving up before even trying”
“with async/await you end up with two versions of every function or library (see Rust’s std and crates like async_std”
“I honestly feel like that's one of Rust's biggest failings.”
“It panics on allocation failure. You expect Rust programmers to look at stdlib and not imitate it?”
“The no_std constraint is painful to deal with as a dev even with no dependencies”
“std is compiled with panic/fmt and backtrace machinery on by default”
“have a look at what Rust's standard library does with BTreeMap”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.