From: Behnam Esfahbod Date: Mon, 7 Aug 2017 18:26:53 +0000 (-0700) Subject: [docs] Wrap long lines X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~7^2~28^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e774367afc7d25bb356a956711715293013be782;p=cargo.git [docs] Wrap long lines --- diff --git a/src/doc/guide.md b/src/doc/guide.md index 897db6575..39b25c2f4 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -12,7 +12,8 @@ To accomplish this goal, Cargo does four things: * Introduces two metadata files with various bits of project information. * Fetches and builds your project’s dependencies. -* Invokes `rustc` or another build tool with the correct parameters to build your project. +* Invokes `rustc` or another build tool with the correct parameters to build + your project. * Introduces conventions to make working with Rust projects easier. # Creating a new project @@ -89,7 +90,8 @@ Hello, world! You’ll now notice a new file, `Cargo.lock`. It contains information about our dependencies. Since we don’t have any yet, it’s not very interesting. -Once you’re ready for release, you can use `cargo build --release` to compile your files with optimizations turned on: +Once you’re ready for release, you can use `cargo build --release` to compile +your files with optimizations turned on:
$ cargo build --release
 `. They are compiled when you run
-your tests to protect them from bitrotting.
+They can compile either as executables (with a `main()` function) or libraries
+and pull in the library by using `extern crate `. They are
+compiled when you run your tests to protect them from bitrotting.
 
 You can run individual executable examples with the command `cargo run --example
 `.
@@ -547,7 +550,8 @@ name = "foo"
 crate-type = ["staticlib"]
 ```
 
-You can build individual library examples with the command `cargo build --example `.
+You can build individual library examples with the command
+`cargo build --example `.
 
 # Tests