File tree 4 files changed +5
-4
lines changed
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
34
34
special executable by linking your code with libtest. The executable
35
35
automatically runs all functions annotated with the ` #[bench] ` attribute.
36
36
Cargo 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 .
38
38
39
39
The libtest harness may be disabled by setting ` harness = false ` in the target
40
40
manifest 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
27
27
special executable by linking your code with libtest. The executable
28
28
automatically runs all functions annotated with the #[bench] attribute.
29
29
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.
31
32
32
33
The libtest harness may be disabled by setting harness = false in the
33
34
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
30
30
special executable by linking your code with libtest. The executable
31
31
automatically runs all functions annotated with the ` #[bench] ` attribute.
32
32
Cargo 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 .
34
34
35
35
The libtest harness may be disabled by setting ` harness = false ` in the target
36
36
manifest 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
32
32
special executable by linking your code with libtest. The executable
33
33
automatically runs all functions annotated with the \fB #[bench] \fR attribute.
34
34
Cargo 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 .
36
36
.sp
37
37
The libtest harness may be disabled by setting \fB harness = false \fR in the target
38
38
manifest 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