Skip to content

Commit

Permalink
fancy quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Aug 9, 2017
1 parent 36ea26e commit 6e53771
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 95 deletions.
4 changes: 2 additions & 2 deletions second-edition/src/ch14-00-more-about-cargo.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# More about Cargo and Crates.io

So far we've used only the most basic features of Cargo to build, run, and test
our code, but it can do a lot more. Here we'll go over some of its other, more
So far weve used only the most basic features of Cargo to build, run, and test
our code, but it can do a lot more. Here well go over some of its other, more
advanced features to show you how to:

* Customize your build through release profiles
Expand Down
20 changes: 10 additions & 10 deletions second-edition/src/ch14-01-release-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ what they actually are. -->
<!-- They are pre-defined, we've tried to clarify /Carol -->

Cargo has four profiles defined with good default configurations for each use
case. Cargo uses the different profiles based on which command you're running.
case. Cargo uses the different profiles based on which command youre running.
The commands correspond to the profiles as shown in Table 14-1:

<!-- Hm, so these profiles aren't built-in, just supported? and used for what
Expand Down Expand Up @@ -44,7 +44,7 @@ $ cargo build --release
Finished release [optimized] target(s) in 0.0 secs
```

The "dev" and "release" notifications here indicate that the compiler is
The dev and release notifications here indicate that the compiler is
using different profiles.

<!-- which profile is "debug" associated with? As you can probably tell, I'm
Expand All @@ -64,7 +64,7 @@ If you have multiple profiles in the toml, how do you choose which one to use?
I'm confused about how you're drawing your conclusions. /Carol -->

Cargo has default settings for each of the profiles that apply when there
aren't any `[profile.*]` sections in the project's *Cargo.toml* file. By adding
arent any `[profile.*]` sections in the projects *Cargo.toml* file. By adding
`[profile.*]` sections for any profile we want to customize, we can choose to
override any subset of the default settings. For example, here are the default
values for the `opt-level` setting for the `dev` and `release` profiles:
Expand All @@ -79,17 +79,17 @@ opt-level = 3

The `opt-level` setting controls how many optimizations Rust will apply to your
code, with a range of zero to three. Applying more optimizations makes
compilation take longer, so if you're in development and compiling very often,
you'd want compiling to be fast at the expense of the resulting code running
slower. That's why the default `opt-level` for `dev` is `0`. When you're ready
to release, it's better to spend more time compiling. You'll only be compiling
compilation take longer, so if youre in development and compiling very often,
youd want compiling to be fast at the expense of the resulting code running
slower. Thats why the default `opt-level` for `dev` is `0`. When youre ready
to release, its better to spend more time compiling. Youll only be compiling
in release mode once, and running the compiled program many times, so release
mode trades longer compile time for code that runs faster. That's why the
mode trades longer compile time for code that runs faster. Thats why the
default `opt-level` for the `release` profile is `3`.

We can choose to override any default setting by adding a different value for
them in *Cargo.toml*. If we wanted to use optimization level 1 in the
development profile, for example, we can add these two lines to our project's
development profile, for example, we can add these two lines to our projects
*Cargo.toml*:

<!-- So do we choose which profile to use when? How do we do that? Or is that
Expand All @@ -114,4 +114,4 @@ will use the defaults for the `dev` profile plus our customization to
optimizations than the default, but not as many as a release build.

For the full list of configuration options and defaults for each profile, see
[Cargo's documentation](http://doc.crates.io/).
[Cargos documentation](http://doc.crates.io/).
Loading

0 comments on commit 6e53771

Please sign in to comment.