

Then, open the rss_reader project's src/main.rs source code file. To keep build times fast, we'll select just the Foundation_Collections and Web_Syndication features that we need for this code. A Cargo.toml file is a text file that describes a Rust project, including any dependencies it has.Īdd a dependency on the windows crate, as shown in the listing below. First, open the Cargo.toml file at the root of the project. Let's implement the main rss_reader project. Then open the rss_reader project in VS Code.

> Created binary (application) `rss_reader` package Using Cargo, create a new Rust project named rss_reader, and cd to the newly-created folder: > cargo new rss_reader Launch a command prompt ( cmd.exe), and cd to a folder where you want to keep your Rust projects.

Now let's try out Rust for Windows by writing a simple console app that downloads the titles of blog posts from a Really Simple Syndication (RSS) feed. The previous topic introduced Rust for Windows, and the windows crate.
