mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 19:54:34 -06:00
rebuild pages at 59f62f8
This commit is contained in:
@@ -268,10 +268,10 @@ the next chapter.</p>
|
||||
<p>Cargo has generated a "Hello World!" for you, just like the one we wrote
|
||||
earlier! So that part is the same. The differences between our previous project
|
||||
and the project generated by Cargo that we've seen so far are:</p>
|
||||
<ul>
|
||||
<ol>
|
||||
<li>Our code goes in the <code>src</code> directory</li>
|
||||
<li>The top level contains a <code>Cargo.toml</code> configuration file</li>
|
||||
</ul>
|
||||
</ol>
|
||||
<p>Cargo expects your source files to live inside the <code>src</code> directory so that the
|
||||
top-level project directory is just for READMEs, license information,
|
||||
configuration files, and anything else not related to your code. In this way,
|
||||
@@ -322,12 +322,12 @@ this:</p>
|
||||
Hello, world!
|
||||
</code></pre>
|
||||
<p>So a few more differences we've now seen:</p>
|
||||
<ul>
|
||||
<ol start="3">
|
||||
<li>Instead of using <code>rustc</code>, build a project using <code>cargo build</code> (or build and
|
||||
run it in one step with <code>cargo run</code>)</li>
|
||||
<li>Instead of the result of the build being put in the same directory as our
|
||||
code, Cargo will put it in the <code>target/debug</code> directory.</li>
|
||||
</ul>
|
||||
</ol>
|
||||
<p>The other advantage of using Cargo is that the commands are the same no matter
|
||||
what operating system you're on, so at this point we will no longer be
|
||||
providing specific instructions for Linux and Mac versus Windows.</p>
|
||||
|
||||
+4
-4
@@ -351,10 +351,10 @@ the next chapter.</p>
|
||||
<p>Cargo has generated a "Hello World!" for you, just like the one we wrote
|
||||
earlier! So that part is the same. The differences between our previous project
|
||||
and the project generated by Cargo that we've seen so far are:</p>
|
||||
<ul>
|
||||
<ol>
|
||||
<li>Our code goes in the <code>src</code> directory</li>
|
||||
<li>The top level contains a <code>Cargo.toml</code> configuration file</li>
|
||||
</ul>
|
||||
</ol>
|
||||
<p>Cargo expects your source files to live inside the <code>src</code> directory so that the
|
||||
top-level project directory is just for READMEs, license information,
|
||||
configuration files, and anything else not related to your code. In this way,
|
||||
@@ -405,12 +405,12 @@ this:</p>
|
||||
Hello, world!
|
||||
</code></pre>
|
||||
<p>So a few more differences we've now seen:</p>
|
||||
<ul>
|
||||
<ol start="3">
|
||||
<li>Instead of using <code>rustc</code>, build a project using <code>cargo build</code> (or build and
|
||||
run it in one step with <code>cargo run</code>)</li>
|
||||
<li>Instead of the result of the build being put in the same directory as our
|
||||
code, Cargo will put it in the <code>target/debug</code> directory.</li>
|
||||
</ul>
|
||||
</ol>
|
||||
<p>The other advantage of using Cargo is that the commands are the same no matter
|
||||
what operating system you're on, so at this point we will no longer be
|
||||
providing specific instructions for Linux and Mac versus Windows.</p>
|
||||
|
||||
Reference in New Issue
Block a user