.PHONY: all clean format check test docs publish
all:
cargo build --lib --release
clean:
cargo clean
@rm -rf pkg target* test_assets/*.opus
format:
cargo fmt
check:
cargo clippy -- -W clippy::all -W clippy::correctness -W clippy::suspicious -W clippy::complexity -W clippy::perf -W clippy::style -W clippy::pedantic -W clippy::panic -A clippy::doc_markdown -A clippy::wildcard_imports -A clippy::module_name_repetitions -D warnings
test:
cargo test -- --nocapture
docs:
cargo rustdoc --release --all-features -- -A rustdoc::broken_intra_doc_links
echo "<meta http-equiv=\"refresh\" content=\"0;url=libopusenc/index.html\" />" > target/doc/index.html
publish:
cargo publish