Skip to content

Commit

Permalink
Fix proc-macro dynamic lib
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jul 9, 2024
1 parent 509df9c commit 7b12f33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Cargo.lock
target
cobertura.xml
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# These hacks are required for the test binaries depending on the dynamic library libstd-*.so
# See: https://github.com/rust-lang/cargo/issues/4651
#
# We also need to exclude the derive macro from coverage because it will always show as 0% by
# virtue of executing at compile-time outside the view of Tarpaulin.
coverage:
env LD_LIBRARY_PATH="$(shell rustc --print sysroot)/lib" \
cargo-tarpaulin --workspace --all-features --out xml --exclude tree_hash_derive

.PHONY: coverage

0 comments on commit 7b12f33

Please sign in to comment.