TOOLCHAIN ?= nightly
all: build
build:
cargo +$(TOOLCHAIN) build --all-features
test:
cargo +$(TOOLCHAIN) test --all-features
doc: RUSTDOCFLAGS="-D warnings --cfg docsrs"
doc:
cargo +$(TOOLCHAIN) doc -Z unstable-options -Z rustdoc-scrape-examples --all-features
clippy:
cargo +$(TOOLCHAIN) clippy --all-features -- -D warnings
check: build test clippy doc
cargo +$(TOOLCHAIN) fmt --all -- --check
cargo +$(TOOLCHAIN) check
cargo +$(TOOLCHAIN) check --no-default-features
check_extra:
cargo +$(TOOLCHAIN) clippy --all-features -- -D warnings -W clippy::nursery -A clippy::significant_drop_tightening -A clippy::significant_drop_in_scrutinee
fmt:
cargo +$(TOOLCHAIN) fmt
clean:
cargo clean
example_virtualizarr_netcdf:
rm -r examples/data/test.icechunk.zarr || true
./examples/virtualizarr_netcdf.py
cargo run --example virtualizarr_netcdf
.PHONY: all build test doc clippy check fmt clean