Rust Language

Rust tutorial: Get started with the Rust language

How to get your feet wet using Rust’s tool chain, creating projects, working with third-party code, and managing libraries

1 2 Page 2
Page 2 of 2

Work with other Rust projects

A good way to get your legs with Rust is to check out a third-party project and work on it locally. The easy way to do that is just make a Git clone of a Rust project’s repository. As long as the repo has a Cargo.toml file in its root, it’ll be recognized by Cargo.

One thing Cargo can’t do, at least not yet, is make a local clone of a crate by itself. This is possible with Git, and most anyone doing serious work with Rust should have Git installed anyway. But you can add that functionality to Cargo directly via third-party Cargo subcommands, cargo-clone and cargo-clone-crate.

Where to look for projects to tinker with and learn from? For starters, go to the Awesome Rust repository on GitHub. Among them is the Servo web browser engine project, one of Rust’s first intended real-world applications.

Many other projects are useful on their own merits, not only for getting a leg up with Rust or because they’re components of a larger effort. These include Trust-DNS (a DNS server and client), Alacritty (a GPU-enhanced terminal emulator), and the MaidSafe decentralized data platform. (For fun, check out Magog, a Rogue-like game.)

Awesome Rust also lists many of the best crates and third-party tools to learn about and put to use.

If you’re hunting for a project to get involved with as a full-blown developer, check out Useful Rust Projects. Many of the projects listed there need developers or documentors, or are looking for new ownership.

Copyright © 2018 IDG Communications, Inc.

1 2 Page 2
Page 2 of 2