From the course: Rust Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Rust Standard Library and prelude

Rust Standard Library and prelude - Rust Tutorial

From the course: Rust Essential Training

Start my 1-month free trial

Rust Standard Library and prelude

- [Instructor] Like most programming languages, Rust has a standard library to provide a basic set of capabilities that most programs need. It includes core data types, like the string type we've been using, common functions, shared macros and lots of other things. Admittedly, the Rust standard library isn't as expansive as the standard libraries in some other languages like Python but it provides a minimal set of battle-tested code that you can trust and serves as a foundation for writing portable Rust software in the broader Rust ecosystem. The documentation for the standard library is included when installing Rust and also available online from rustlang.org. The standard library is organized into a collection of modules, which you can see listed by clicking this link on the main documentation page. Clicking on any one of these module names will take you to it's documentation page. So, for example, if we want to write…

Contents