File: justfile

package info (click to toggle)
rust-impl-more 0.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: makefile: 2
file content (48 lines) | stat: -rw-r--r-- 1,466 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
_list:
    @just --list

# Check project.
check: clippy
    just --unstable --fmt --check
    nixpkgs-fmt --check .
    fd --hidden --extension=md --extension=yml --exec-batch prettier --check
    fd --hidden --extension=toml --exec-batch taplo format --check
    fd --hidden --extension=toml --exec-batch taplo lint
    cargo +nightly fmt -- --check

# Format project.
fmt:
    just --unstable --fmt
    nixpkgs-fmt .
    fd --hidden --extension=md --extension=yml --exec-batch prettier --write
    fd --hidden --extension=toml --exec-batch taplo format
    cargo +nightly fmt

# Lint workspace with Clippy.
clippy:
    cargo clippy --workspace --no-default-features
    cargo clippy --workspace --all-features

# Downgrade dependencies required to testing using MSRV.
downgrade-msrv:
    @ echo "No downgrades currently necessary."

# Test workspace.
test: test-no-coverage build-no-std

# Test workspace (without generating coverage output).
test-no-coverage:
    cargo nextest run --workspace --all-targets --all-features

# Test docs.
test-docs:
    cargo test --doc --workspace --all-features

# Test workspace (without generating coverage output).
build-no-std:
    cargo build --target=thumbv6m-none-eabi --manifest-path=./ensure-no-std/Cargo.toml

# Build rustdoc.
doc:
    rm "$(cargo metadata --format-version=1 | jq -r '.target_directory')/doc/crates.js"
    RUSTDOCFLAGS="--cfg=docsrs -Dwarnings" cargo +nightly doc --workspace --no-deps --all-features