Skip to content

Commit f95470c

Browse files
committed
coverage: update DEVELOPMENT.md
1 parent a026a86 commit f95470c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

DEVELOPMENT.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,11 @@ pkg install coreutils gsed
253253

254254
Code coverage report can be generated using [grcov](https://github.com/mozilla/grcov).
255255

256-
### Using Nightly Rust
257-
258256
To generate [gcov-based](https://github.com/mozilla/grcov#example-how-to-generate-gcda-files-for-a-rust-project) coverage report
259257

260258
```shell
261259
export CARGO_INCREMENTAL=0
262-
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
260+
export RUSTFLAGS="-Cinstrument-coverage -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
263261
export RUSTDOCFLAGS="-Cpanic=abort"
264262
cargo build <options...> # e.g., --features feat_os_unix
265263
cargo test <options...> # e.g., --features feat_os_unix test_pathchk
@@ -269,11 +267,6 @@ grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existin
269267

270268
if changes are not reflected in the report then run `cargo clean` and run the above commands.
271269

272-
### Using Stable Rust
273-
274-
If you are using stable version of Rust that doesn't enable code coverage instrumentation by default
275-
then add `-Z-Zinstrument-coverage` flag to `RUSTFLAGS` env variable specified above.
276-
277270
## Tips for setting up on Mac
278271

279272
### C Compiler and linker

0 commit comments

Comments
 (0)