Skip to content

Commit

Permalink
update code coverage flag (use stable options argument) (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfraem authored Aug 14, 2024
1 parent 489aa0e commit d8fb4ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/bump-dependency-version-to-fix-vulnerability.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"iota-crypto": patch
---

Bump dependencies to fix vulnerability from `cargo audit` (`curve25519-dalek`: 3.2 -> 4.1.3, `x25519-dalek`: 1.1 -> 2.0.1, `age`: 0.9 -> 0.10).
4 changes: 2 additions & 2 deletions .github/workflows/scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mkdir coverage

# Run tests with profiling instrumentation
echo "Running instrumented unit tests..."
RUSTFLAGS="-Zinstrument-coverage" LLVM_PROFILE_FILE="crypto-rs-%m.profraw" cargo +nightly test --tests --all --all-features
RUSTFLAGS="-Cinstrument-coverage" LLVM_PROFILE_FILE="crypto-rs-%m.profraw" cargo +nightly test --tests --all --all-features

# Merge all .profraw files into "crypto-rs.profdata"
echo "Merging coverage data..."
Expand All @@ -19,7 +19,7 @@ BINARIES=""

for file in \
$( \
RUSTFLAGS="-Zinstrument-coverage" \
RUSTFLAGS="-Cinstrument-coverage" \
cargo +nightly test --tests --all --all-features --no-run --message-format=json \
| jq -r "select(.profile.test == true) | .filenames[]" \
| grep -v dSYM - \
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,6 @@ age = { version = "0.10", default-features = false }

[profile.dev]
split-debuginfo = "unpacked"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_i128)', 'cfg(has_u128)'] }

0 comments on commit d8fb4ed

Please sign in to comment.