Add info about what's different between debug/release
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>
Tue, 17 May 2016 22:48:35 +0000 (18:48 -0400)
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>
Tue, 17 May 2016 22:57:03 +0000 (18:57 -0400)
src/doc/guide.md

index 15f87fcf8360cd7c245dd754ad9b3a7a7221628e..e01a65c4fdb90014ced8db10a86fd2aaeb70e55a 100644 (file)
@@ -98,6 +98,10 @@ class="s1">   Compiling</span> hello_world v0.1.0 (file:///path/to/project/hello
 `cargo build --release` puts the resulting binary in
 `target/release` instead of `target/debug`.
 
+Compiling in debug mode is the default for development-- compilation time is
+shorter since the compiler doesn't do optimizations, but the code will run
+slower. Release mode takes longer to compile, but the code will run faster.
+
 # Working on an existing Cargo project
 
 If you download an existing project that uses Cargo, it’s really easy