File tree 1 file changed +2
-2
lines changed
book/src/02_basic_calculator
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,14 +75,14 @@ development,
75
75
therefore it sacrifices runtime performance in favor of faster compilation times and a better debugging experience.\
76
76
The ` release ` profile, instead, is optimized for runtime performance but incurs longer compilation times. You need
77
77
to explicitly request via the ` --release ` flag—e.g. ` cargo build --release ` or ` cargo run --release ` .
78
- The ` test ` profile is the default profile used by ` cargo test ` . The ` test ` profile inherits the settings form the ` dev ` profile.
78
+ The ` test ` profile is the default profile used by ` cargo test ` . The ` test ` profile inherits the settings from the ` dev ` profile.
79
79
The ` bench ` profile is the default profile used by ` cargo bench ` . The ` bench ` profile inherits from the ` release ` profile.
80
80
Use ` dev ` for iterative development and debugging, ` release ` for optimized production builds,\
81
81
` test ` for correctness testing, and ` bench ` for performance benchmarking.
82
82
83
83
> "Have you built your project in release mode?" is almost a meme in the Rust community.\
84
84
> It refers to developers who are not familiar with Rust and complain about its performance on
85
- > social media (e.g. Reddit, Twitter, etc. ) before realizing they haven't built their project in
85
+ > social media (e.g. Reddit, Twitter) before realizing they haven't built their project in
86
86
> release mode.
87
87
88
88
You can also define custom profiles or customize the built-in ones.
You can’t perform that action at this time.
0 commit comments