tzf-rs 1.2.0

Fast convert longitude,latitude to timezone name.
Documentation
.PHONY: fmt
fmt:
	cargo fmt

THIRDPARTY.yml: cargo.lock Cargo.toml
	cargo-bundle-licenses --format yaml --output THIRDPARTY.yml

.PHONY: pb
pb:
	export TZF_RS_BUILD_PB=1 && cargo build

# Test commands
.PHONY: test
test:
	cargo test-all

.PHONY: test-examples
test-examples:
	cargo run --example geojson_conversion --features export-geojson
	cargo run --example export_tokyo --features export-geojson
	cargo run --example export_specific_timezones --features export-geojson
	cargo run --example query_tokyo --features export-geojson

.PHONY: doc
doc:
	cargo +nightly doc --no-deps --all-features

.PHONY: bench
bench:
	cargo bench | tee benchmark_result.txt
	./scripts/bench_memory.sh benchmark_result.txt | tee benchmark_report.md

.PHONY: ci
ci: test test-examples
	cargo fmt --check
	make bench

extract-plot: bench
	cp target/criterion/DefaultFinderIndexModes/0/report/violin.svg assets/violin.svg
	cp target/criterion/DefaultFinderIndexModes/NoIndex/0/report/pdf.svg assets/no_index.pdf.svg
	cp target/criterion/DefaultFinderIndexModes/YStripesOnly/0/report/pdf.svg assets/ystripes_only.pdf.svg