28 lines
436 B
Makefile
28 lines
436 B
Makefile
|
|
check:
|
||
|
|
cargo check --all-targets
|
||
|
|
|
||
|
|
doc:
|
||
|
|
cargo doc --open
|
||
|
|
|
||
|
|
fmt:
|
||
|
|
cargo fmt
|
||
|
|
|
||
|
|
lint:
|
||
|
|
cargo clippy --all-targets
|
||
|
|
|
||
|
|
publish:
|
||
|
|
cargo publish --registry sunbeam
|
||
|
|
|
||
|
|
test:
|
||
|
|
cargo test --no-fail-fast
|
||
|
|
|
||
|
|
test-cover:
|
||
|
|
cargo llvm-cov
|
||
|
|
|
||
|
|
test-examples:
|
||
|
|
#!/usr/bin/env bash
|
||
|
|
for example in $(ls examples/*.rs | sed 's/examples\/\(.*\)\.rs/\1/'); do
|
||
|
|
echo "Running $example"
|
||
|
|
cargo run --example "$example"
|
||
|
|
done
|