14MORE ABOUT CARGO AND CRATES.IO

Image

So far we’ve used only the most basic features of Cargo to build, run, and test our code, but it can do a lot more. In this chapter, we’ll discuss some of its other, more advanced features to show you how to do the following:

  • Customize your build through release profiles
  • Publish libraries on https://crates.io/
  • Organize large projects with workspaces
  • Install binaries from https://crates.io/
  • Extend Cargo using custom commands

Cargo can do even more than what we cover in this chapter, so for a full explanation of all its features, see its documentation at https://doc.rust-lang.org/cargo/.

Customizing Builds with ...

Get The Rust Programming Language (Covers Rust 2018) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.