twyg 0.3.0

A tiny logging setup for Rust applications
Documentation
default: all

all: deps build lint check test demos

auth:
	@echo "Copy and paste the following in the terminal where you"
	@echo "will be executing cargo commands:"
	@echo
	@echo '    eval $$(ssh-agent -s) && ssh-add'
	@echo

build:
	@cargo build

lint:
	@cargo +nightly clippy --version
	@cargo +nightly clippy --all-targets --all-features -- --no-deps -D clippy::all

cicd-lint:
	@cargo clippy --version
	@cargo clippy --all-targets --all-features -- --no-deps -D clippy::all

check:
	@cargo deny check
	@cargo +nightly udeps

test:
	@cargo test

examples:
	@cargo run --example=colour-caller
	@cargo run --example=no-caller
	@cargo run --example=no-colour
	@cargo run --example=from-config
	@cargo run --example=from-confyg
	@cargo run --example=stderr

demos: examples

deps:
	@cargo update

publish:
	@cargo publish

nightly:
	@rustup toolchain install nightly

install-cargo-deny:
	@echo ">> Installing cargo deny ..."
	@cargo install --locked cargo-deny

setup-cargo-deny: install-cargo-deny
	@echo ">> Setting up cargo deny ..."
	@cargo deny init

install-udeps:
	@echo ">> Setting up cargo udeps ..."
	@cargo install cargo-udeps --locked

.PHONY: default all auth build lint test examples demos deps publish