build-docker-image: @echo "building docker image" docker build -t crabby_trade:latest -f Dockerfile.dev . @echo "built docker image!" build-cargo-package: build-docker-image @echo "building cargo crate" docker run -v $(realpath .):/crab_trade crabby_trade cargo build build-docs: build-docker-image @echo "building docs" docker run -v $(realpath .):/crab_trade crabby_trade cargo doc --no-deps --document-private-items run-interactive: build-docker-image @echo "running docker image, interactive" docker run -v $(realpath .):/crab_trade -it crabby_trade /bin/bash run-tests: build-docker-image @echo "running tests" docker run -v $(realpath .):/crab_trade crabby_trade cargo test publish_crate: build-cargo-package run-tests @echo "publishing crate" docker run -v ${realpath .}:/crab_trade crabby_trade cargo publish --token ${CARGO_API_KEY} --allow-dirty