zarrs_icechunk 0.3.0

icechunk store support for the zarrs crate
Documentation
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 # --no-deps

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