You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cargo build now builds to /target/debug/, changed the docs to reflect that.
Deleted trailing space in hello-cargo.md
Added note about build --release in hello-cargo
thanks to steven klabnik for pointing it out for me
edited out redundant wording
Bam! We build our project with `cargo build`, and run it with
86
-
`./target/hello_world`. This hasn't bought us a whole lot over our simple use
86
+
`./target/debug/hello_world`. This hasn't bought us a whole lot over our simple use
87
87
of `rustc`, but think about the future: when our project has more than one
88
88
file, we would need to call `rustc` more than once, and pass it a bunch of options to
89
89
tell it to build everything together. With Cargo, as our project grows, we can
90
-
just `cargo build` and it'll work the right way.
90
+
just `cargo build` and it'll work the right way. When you're project is finally ready for release, you can use `cargo build --release` to compile your crates with optimizations.
91
91
92
92
You'll also notice that Cargo has created a new file: `Cargo.lock`.
93
93
@@ -163,4 +163,4 @@ much more in-depth guide to Cargo can be found [here](http://doc.crates.io/guide
163
163
164
164
Now that you've got the tools down, let's actually learn more about the Rust
165
165
language itself. These are the basics that will serve you well through the rest
0 commit comments