Skip to content

Commit b64a56a

Browse files
authored
feat: add coverage and docs recipes to justfile (#231)
1 parent f6cf19a commit b64a56a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

justfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,13 @@ update-template-lockfile:
2222
sed -i 's/$proj_name/\{\{ project_name \}\}/' $cargo_lock_path
2323
cp $cargo_lock_path cot-cli/src/project_template/Cargo.lock.template
2424
rm -rf $tmpdir
25+
26+
coverage:
27+
# generate coverage report as HTML
28+
# requires cargo-llvm-cov installed and nightly toolchain
29+
cargo llvm-cov --all-features --workspace --branch --doctests --html --open
30+
31+
docs:
32+
# generate docs for the `cot` crate with similar settings to docs.rs
33+
# requires nightly toolchain
34+
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --no-deps --all-features --lib

0 commit comments

Comments
 (0)