# Rust standard library

Hacker Approved page: https://hackerapproved.com/p/rust-standard-library/

9 people recommended Rust standard library in Hacker News comments, 2 had mixed feelings and 15 criticized it, November 2025 to October 2026. It was recommended in 7 of 12 months, in 9 threads. It does not meet the Hacker Approved badge rule.

**Verdict:** More people criticize it than recommend it. 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.

Summary written by Claude from the comments below.

## What people warn about

- Thin low-level file APIs, weak safety (2 comments in the sample): "It's more mistake prone than POSIX (in some aspects) because it is missing a whole family of low-level syscalls." ([source](https://news.ycombinator.com/item?id=47945809)) "Working safely with files should not require *const c_char." ([source](https://news.ycombinator.com/item?id=47946386))
- Panics on allocation failure, blind spots (2 comments in the sample): "It panics on allocation failure. You expect Rust programmers to look at stdlib and not imitate it?" ([source](https://news.ycombinator.com/item?id=45978960)) "it's certainly not ideal that the standard library currently has blind spots around allocation" ([source](https://news.ycombinator.com/item?id=46512134))

## Why people recommend it

- Easy, useful built-in APIs (3 comments in the sample): "the Rust stdlib iterator for lines() handles both conventions. It just works. Very easy." ([source](https://news.ycombinator.com/item?id=48376628)) "The rust standard library is excellent." ([source](https://news.ycombinator.com/item?id=47194527)) "the rust stdlib is useful" ([source](https://news.ycombinator.com/item?id=48883295))
- Avoids extra dependencies, solid and boring (2 comments in the sample): "the solid, boring and slightly rusty std instead of another 100 dependencies" ([source](https://news.ycombinator.com/item?id=47586574)) "Rust has an enormous standard library" ([source](https://news.ycombinator.com/item?id=49375526))
- Sensible defaults like BTreeMap (2 comments in the sample): "Rust makes using an optimized BTreeMap the default, much-easier thing to do when actually writing code" ([source](https://news.ycombinator.com/item?id=46630333)) "have a look at what Rust's standard library does with BTreeMap" ([source](https://news.ycombinator.com/item?id=45821270))

## Other standard libraries people recommend

- [Go standard library](https://hackerapproved.com/p/go-standard-library/): 28 recommend, 3 mixed, 12 criticize
- [Python standard library](https://hackerapproved.com/p/python-standard-library/): 11 recommend, 1 mixed, 7 criticize
- [C++ Standard Library](https://hackerapproved.com/p/c-plus-plus-standard-library/): 9 recommend, 4 mixed, 22 criticize
- [Java standard library](https://hackerapproved.com/p/java-standard-library/): 6 recommend, 0 mixed, 3 criticize

## The badge

A product earns the Hacker Approved badge when at least 10 people recommend it, recommenders outnumber critics at least 2 to 1 (mixed feelings count toward neither side), it was recommended in at least 4 of the 12 months and in at least 5 different threads, and no single thread supplies more than half of the people who recommend it. Health and money products are never badged.

## Cite as

Hacker Approved, "Rust standard library", https://hackerapproved.com/p/rust-standard-library/ (9 recommend, 2 mixed, 15 criticize; Hacker News comments, November 2025 to October 2026).

Counts updated 2 Nov 2026, with data through October 31, 2026.
