Skip to Content
The Rust Programming Language (Covers Rust 2018)
book

The Rust Programming Language (Covers Rust 2018)

by Carol Nichols
July 2019
Intermediate to advanced
560 pages
14h 12m
English
No Starch Press
Content preview from The Rust Programming Language (Covers Rust 2018)

7MANAGING GROWING PROJECTS WITH PACKAGES, CRATES, AND MODULES

Image

As you write large programs, organizing your code will be important because keeping track of your entire program in your head will become impossible. By grouping related functionality and separating code with distinct features, you’ll clarify where to find code that implements a particular feature and where to go to change how a feature works.

The programs we’ve written so far have been in one module in one file. As a project grows, you can organize code by splitting it into multiple modules and then multiple files. A package can contain multiple binary crates and optionally one library ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Rust Programming Language

The Rust Programming Language

Steve Klabnik, Carol Nichols
Hands-on Rust

Hands-on Rust

Herbert Wolverson
Rust Web Programming

Rust Web Programming

Maxwell Flitton

Publisher Resources

ISBN: 9781098122539