File: Justfile

package info (click to toggle)
rust-minus 5.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,192 kB
  • sloc: makefile: 2
file content (31 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (2)
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
_prechecks:
  -cargo hack 2> /dev/null

  if [ $? == 101 ]; then \
    cargo install cargo-hack; \
  fi

fmt:
 cargo fmt --all

check-fmt:
 cargo fmt --all -- --check

build: _prechecks
  cargo hack --feature-powerset build

tests:
 cargo test --all-features --no-run
 cargo test --all-features

examples:
 cargo check --example=dyn_tokio --features=dynamic_output
 cargo check --example=msg-tokio --features=dynamic_output
 cargo check --example=static --features=static_output
 cargo check --example=less-rs --features=dynamic_output,search

lint: _prechecks
  cargo hack --feature-powerset clippy
  
verify-all: check-fmt build tests examples lint
 @echo "Ready to go"