File: justfile

package info (click to toggle)
rust-petgraph 0.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,820 kB
  • sloc: makefile: 2
file content (45 lines) | stat: -rw-r--r-- 1,527 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
# Lists all available recipes
default:
    just --list

# Builds the project in development mode
build:
    cargo build

# Tests with all features enabled
test:
    cargo test --features all

# Miri with all tests (this might take very long). Consider the fast-miri recipe instead or specify individual tests
miri:
    cargo miri test

# Miri with the same configuration as in (non-thorough) CI. Uses nextest and excludes some tests that are known to be very slow
miri-fast:
    cargo miri nextest run -- \
                --skip b01_vienna_test \
                --skip b07_vienna_test \
                --skip generic_graph6_encoder_test_cases \
                --skip graph6_for_csr_test_cases \
                --skip graph6_for_graph_map_test_cases \
                --skip graph6_for_graph_test_cases \
                --skip graph6_for_matrix_graph_test_case \
                --skip graph6_for_stable_graph_test_cases

# Fmt with the same configuration as in CI
fmt:
    cargo fmt --all -- --check

# Clippy with the same configuration as in CI
clippy:
    cargo clippy --all-features --lib --bins --examples --tests -- -D warnings

# Runs all linting checks that are run in CI
lint: fmt clippy

# Runs all tests and linting that are run in CI
ci: fmt clippy test

# Checks if no-std is working same as in CI. Requires the wasm32v1-none target to be installed
check-no-std:
    cargo check --no-default-features -p petgraph --target wasm32v1-none --features graphmap,serde-1,stable_graph,matrix_graph,generate,unstable