File: Justfile

package info (click to toggle)
rust-datatest-stable 0.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 440 kB
  • sloc: awk: 19; sh: 5; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Print a help message.
help:
    just --list


# Run `cargo hack --feature-powerset` with the given arguments.
powerset *args:
    cargo hack --feature-powerset {{args}}

# Build docs for crates and direct dependencies
rustdoc:
    @cargo tree --depth 1 -e normal --prefix none --workspace \
        | gawk '{ gsub(" v", "@", $0); printf("%s\n", $1); }' \
        | xargs printf -- '-p %s\n' \
        | RUSTC_BOOTSTRAP=1 RUSTDOCFLAGS='--cfg=doc_cfg' xargs cargo doc --no-deps --lib --all-features

    echo "/ /rustdoc/datatest_stable/ 301" > target/doc/_redirects

# Generate README.md files using `cargo-sync-rdme`.
generate-readmes:
    cargo sync-rdme --toolchain nightly --all-features

# Collect coverage, pass in `--html` to get an HTML report
coverage *args:
    cargo +nightly llvm-cov --no-report nextest --all-features
    cargo +nightly llvm-cov --no-report --doc --all-features
    cargo +nightly llvm-cov report --doctests {{args}}