Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 9 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: not recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. 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.

Rust standard library compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Go standard library341569%11—Approved
C++ Standard Library152339%8——
Python standard library13765%8——
Rust standard libraryThis page121643%9——
Java standard library7370%4——
See all 7 standard libraries, ranked

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”

RecommendsComment from 20 Aug 2026 in “Malicious Rust Crate Arrayref Runs a Build-Time Payload”

“this is not a correct implementation of arbitrary-base logarithm”

CriticizesComment from 29 Jul 2026 in “Log is non-monotonic in PHP and Lua”

“the rust stdlib is useful”

RecommendsComment from 12 Jul 2026 in “Understanding the Odin Programming Language”

“the Rust stdlib iterator for lines() handles both conventions. It just works. Very easy.”

RecommendsComment from 2 Jun 2026 in “Coreutils for Windows”

“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.”

CriticizesComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“I'm glad they didn't go with the idiotic Go approach”

MixedComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“Working safely with files should not require *const c_char.”

CriticizesComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“It's more mistake prone than POSIX (in some aspects) because it is missing a whole family of low-level syscalls.”

CriticizesComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“I find the rust standard library to default to Unix too much for a generic programming language”

CriticizesComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“rewrite the code to use that library rather than rust stdlib methods”

CriticizesComment 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”

CriticizesComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“Rust stdlib nudges the developer towards using neat APIs at an incorrect level of abstraction”

CriticizesComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“the solid, boring and slightly rusty std instead of another 100 dependencies”

MixedComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“strikes a good balance between being too small or too big”

RecommendsComment from 8 Mar 2026 in “UUID package coming to Go standard library”

“The rust standard library is excellent.”

RecommendsComment from 28 Feb 2026 in “Rust Is Just a Tool”

“the small standard library in Rust is a big mistake”

CriticizesComment from 24 Feb 2026 in “What it means that Ubuntu is using Rust”

“exposes enough platform details to allow writing the missing knobs”

RecommendsComment from 21 Feb 2026 in “Understanding Std:Shared_mutex from C++17”

“Rust makes using an optimized BTreeMap the default, much-easier thing to do when actually writing code”

RecommendsComment from 15 Jan 2026 in “Is Rust faster than C?”

“it's certainly not ideal that the standard library currently has blind spots around allocation”

CriticizesComment from 6 Jan 2026 in “C Is Best”

“I applaud the decision and the will of the core teams for sticking to their guns in this area.”

RecommendsComment from 18 Dec 2025 in “Rust GCC backend: Why and how”

“Rust's libstd sabotaging it and giving up before even trying”

CriticizesComment from 5 Dec 2025 in “Thoughts on Go vs. Rust vs. Zig”

“with async/await you end up with two versions of every function or library (see Rust’s std and crates like async_std”

CriticizesComment from 3 Dec 2025 in “Zig's new plan for asynchronous programs”

“I honestly feel like that's one of Rust's biggest failings.”

CriticizesComment from 24 Nov 2025 in “Shai-Hulud Returns: Over 300 NPM Packages Infected”

“It panics on allocation failure. You expect Rust programmers to look at stdlib and not imitate it?”

CriticizesComment from 19 Nov 2025 in “Cloudflare outage on November 18, 2025 post mortem”

“The no_std constraint is painful to deal with as a dev even with no dependencies”

CriticizesComment from 8 Nov 2025 in “Why is Zig so cool?”

“std is compiled with panic/fmt and backtrace machinery on by default”

CriticizesComment from 8 Nov 2025 in “Why is Zig so cool?”

“have a look at what Rust's standard library does with BTreeMap”

RecommendsComment from 5 Nov 2025 in “Intervaltree with Rust Back End”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.