File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Benchmarks are built with the `--test` option to `rustc` which creates a
3434special executable by linking your code with libtest. The executable
3535automatically runs all functions annotated with the ` #[bench] ` attribute.
3636Cargo passes the ` --bench ` flag to the test harness to tell it to run
37- only benchmarks.
37+ only benchmarks, regardless of whether the harness is libtest or a custom harness .
3838
3939The libtest harness may be disabled by setting ` harness = false ` in the target
4040manifest settings, in which case your code will need to provide its own ` main `
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ DESCRIPTION
2727 special executable by linking your code with libtest. The executable
2828 automatically runs all functions annotated with the #[bench] attribute.
2929 Cargo passes the --bench flag to the test harness to tell it to run only
30- benchmarks.
30+ benchmarks, regardless of whether the harness is libtest or a custom
31+ harness.
3132
3233 The libtest harness may be disabled by setting harness = false in the
3334 target manifest settings, in which case your code will need to provide
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Benchmarks are built with the `--test` option to `rustc` which creates a
3030special executable by linking your code with libtest. The executable
3131automatically runs all functions annotated with the ` #[bench] ` attribute.
3232Cargo passes the ` --bench ` flag to the test harness to tell it to run
33- only benchmarks.
33+ only benchmarks, regardless of whether the harness is libtest or a custom harness .
3434
3535The libtest harness may be disabled by setting ` harness = false ` in the target
3636manifest settings, in which case your code will need to provide its own ` main `
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Benchmarks are built with the \fB\-\-test\fR option to \fBrustc\fR which creates
3232special executable by linking your code with libtest. The executable
3333automatically runs all functions annotated with the \fB #[bench] \fR attribute.
3434Cargo passes the \fB \-\- bench \fR flag to the test harness to tell it to run
35- only benchmarks.
35+ only benchmarks, regardless of whether the harness is libtest or a custom harness .
3636.sp
3737The libtest harness may be disabled by setting \fB harness = false \fR in the target
3838manifest settings, in which case your code will need to provide its own \fB main \fR
You can’t perform that action at this time.
0 commit comments