<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arthur.alves on Medium]]></title>
        <description><![CDATA[Stories by Arthur.alves on Medium]]></description>
        <link>https://medium.com/@arthursantos_?source=rss-61482fcf9c54------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*S7CVx4nDHFZSWvBJwgcYTw@2x.jpeg</url>
            <title>Stories by Arthur.alves on Medium</title>
            <link>https://medium.com/@arthursantos_?source=rss-61482fcf9c54------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:30:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arthursantos_/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to create your first project in Rust]]></title>
            <link>https://medium.com/@arthursantos_/how-to-create-your-first-project-in-rust-de2a73e87115?source=rss-61482fcf9c54------2</link>
            <guid isPermaLink="false">https://medium.com/p/de2a73e87115</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[substrate]]></category>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Arthur.alves]]></dc:creator>
            <pubDate>Tue, 17 May 2022 02:37:19 GMT</pubDate>
            <atom:updated>2022-05-17T02:45:55.839Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*SqaPHpndGLkkExEg9MsvLQ.png" /></figure><p>Is you’re new to Rust or simply doesn’t remember how to create a new project in this amazing language called Rust, follow those steps:</p><p>To start a new <a href="https://doc.rust-lang.org/cargo/appendix/glossary.html#package">package</a> with Cargo, use cargo new:</p><pre>$ cargo new project_name --bin</pre><p>or</p><pre>$ cargo new --bin project_name</pre><p>Just change “project_name” by the name that you want to give to your project.</p><p>If you do want to create a project and define what cargo is going to do simply use:</p><pre>$ cargo build --verbose</pre><p>After this, go to you terminal. You’re going to find a path like this:</p><p>(I’m using linux, but your terminal, undependently, your OS, is going to work basically equal to this)</p><pre>your-name@your-desktop:~/Rust/$</pre><p>Then use cd project-name:</p><p>After it, you’re going to see a folder structure like this:</p><pre>.<br>├── Cargo.toml<br>└── src<br>    └── main.rs</pre><p>Your code is going to be contained in the SRC folder. Your first function is inside main.rs.</p><p>To run your code and see if you did everything correctly type in the same line:</p><p>cargo run</p><pre>Compiling colateral v0.1.0 (/home/arthur/Programming /Rust/03_day/colateral)<br>    Finished dev [unoptimized + debuginfo] target(s) in 1.48s<br>     Running `target/debug/colateral`<br>Hello, world!</pre><p>You just ran your first project =)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de2a73e87115" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>