crabler 0.1.25

Web scraper for Crabs
Documentation
BACKTRACE ?= 0
CARGO = cargo --color always
CARGO_ARGS = $(if $(RELEASE),--release) $(if $(STATIC_BINARY), --target=x86_64-unknown-linux-musl)

.PHONY: build-nix
build-nix:
	nix-shell shell.nix --run 'make build'

.PHONY: test-nix
test-nix:
	nix-shell shell.nix --run 'make test'

.PHONY: build
build:
	$(CARGO) build $(CARGO_ARGS)

.PHONY: test
test:
	$(CARGO) test $(CARGO_ARGS) -- --nocapture

.PHONY: shell
shell:
	nix-shell shell.nix

rust-setup:
	rustup default stable

publish:
	nix-shell shell.nix --run 'cargo publish'