Recommended Crate Directory The standard library in Rust is not "batteries included", excluding functionality like HTTP(S), JSON, timezones, random numbers, and async IO. The recommended crate directory is a hand-curated guide to the crates.io ecosystem, helping you choose which crates to use. See also: crates.io (the official crates directory) and lib.rs (a semi-curated directory). CommonVery commonly used crates that everyone should know aboutGeneralGeneral purpose Use CaseRecommended CratesRandom numbersrand[docs]De facto standard random number generation library split out from the standard libraryfastrand[docs]A simple and fast random number generator (but not cryptographically secure).Time & DateUnfortunately there is no clear answer as to which is best between time and chrono.Evaluate for yourself between these two, but be resassured that both are trusted and well-maintained.time[docs]A smaller, simpler library. Preferable if covers your needs, but it's quite limited in what it provides.chrono[docs]The most comprehensive and full-featured datetime library, but more complex because of it.Regular Expressionsregex[docs]De facto standard regex library. Very fast, but does not support fancier features such as backtracking.fancy-regex[docs]Use if need features such as backtracking which regex doesn't supportUUIDsuuid[docs]Implements generating and parsing UUIDs and a number of utility functionsTemporary filestempfile[docs]Supports both temporary files and temporary directoriesGzip (de)compressionflate2[docs]Uses a pure-Rust implementation by default. Use feature flags to opt in to system zlib.Insertion-ordered mapindexmap[docs]A HashMap that separately keeps track of insertion order and allows you to efficiently iterate over its elements in that orderStack-allocated arraysarrayvec[docs]Arrays that are ONLY stack-allocated with fixed capacitysmallvec[docs]Arrays that are stack-allocated with fallback to the heap if the fixed stack capacity is exceededtinyvec[docs]Sta...
First seen: 2026-03-23 02:58
Last seen: 2026-03-24 01:14