${HOME}/.cargo/bin/cargo-tree:
cargo install cargo-tree
tree: ${HOME}/.cargo/bin/cargo-tree
PATH=${HOME}/.cargo/bin:${PATH} cargo tree
fmt:
cargo fmt
travis_fmt:
rustup default 1.27.0
rustup component add rustfmt-preview
cargo fmt -- --write-mode=check
build:
RUSTFLAGS='-D warnings' cargo build
test:
RUSTFLAGS='-D warnings' RUST_BACKTRACE=1 cargo test -- --skip sudo_ --skip loop_
sudo_test:
sudo env "PATH=${PATH}" RUSTFLAGS='-D warnings' RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test
clippy:
! cargo install clippy || RUSTFLAGS='-D warnings' cargo clippy
uml-graphs: ${HOME}/.cargo/bin/cargo-script
PATH=${HOME}/.cargo/bin:${PATH} cargo script scripts/uml_graphs.rs
.PHONY:
build
clippy
fmt
sudo_test
test
travis_fmt
tree