|
@ -12,48 +12,48 @@ DEBUG_OVERFLOW_INFO=RUSTFLAGS="-C debug-assertions -C overflow-checks -C debugin |
|
|
# -- linting --------------------------------------------------------------------------------------
|
|
|
# -- linting --------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
.PHONY: clippy |
|
|
.PHONY: clippy |
|
|
clippy: ## Runs Clippy with configs
|
|
|
|
|
|
|
|
|
clippy: ## Run Clippy with configs
|
|
|
$(WARNINGS) cargo +nightly clippy --workspace --all-targets --all-features |
|
|
$(WARNINGS) cargo +nightly clippy --workspace --all-targets --all-features |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: fix |
|
|
.PHONY: fix |
|
|
fix: ## Runs Fix with configs
|
|
|
|
|
|
|
|
|
fix: ## Run Fix with configs
|
|
|
cargo +nightly fix --allow-staged --allow-dirty --all-targets --all-features |
|
|
cargo +nightly fix --allow-staged --allow-dirty --all-targets --all-features |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: format |
|
|
.PHONY: format |
|
|
format: ## Runs Format using nightly toolchain
|
|
|
|
|
|
|
|
|
format: ## Run Format using nightly toolchain
|
|
|
cargo +nightly fmt --all |
|
|
cargo +nightly fmt --all |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: format-check |
|
|
.PHONY: format-check |
|
|
format-check: ## Runs Format using nightly toolchain but only in check mode
|
|
|
|
|
|
|
|
|
format-check: ## Run Format using nightly toolchain but only in check mode
|
|
|
cargo +nightly fmt --all --check |
|
|
cargo +nightly fmt --all --check |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: lint |
|
|
.PHONY: lint |
|
|
lint: format fix clippy ## Runs all linting tasks at once (Clippy, fixing, formatting)
|
|
|
|
|
|
|
|
|
lint: format fix clippy ## Run all linting tasks at once (Clippy, fixing, formatting)
|
|
|
|
|
|
|
|
|
# --- docs ----------------------------------------------------------------------------------------
|
|
|
# --- docs ----------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
.PHONY: doc |
|
|
.PHONY: doc |
|
|
doc: ## Generates & checks documentation
|
|
|
|
|
|
|
|
|
doc: ## Generate and check documentation
|
|
|
$(WARNINGS) cargo doc --all-features --keep-going --release |
|
|
$(WARNINGS) cargo doc --all-features --keep-going --release |
|
|
|
|
|
|
|
|
# --- testing -------------------------------------------------------------------------------------
|
|
|
# --- testing -------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
.PHONY: test-default |
|
|
.PHONY: test-default |
|
|
test-default: ## Run default tests
|
|
|
|
|
|
|
|
|
test-default: ## Run tests with default features
|
|
|
$(DEBUG_OVERFLOW_INFO) cargo nextest run --profile default --release --all-features |
|
|
$(DEBUG_OVERFLOW_INFO) cargo nextest run --profile default --release --all-features |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: test-no-default |
|
|
|
|
|
test-no-default: ## Run tests with `no-default-features`
|
|
|
|
|
|
|
|
|
.PHONY: test-no-std |
|
|
|
|
|
test-no-std: ## Run tests with `no-default-features` (std)
|
|
|
$(DEBUG_OVERFLOW_INFO) cargo nextest run --profile default --release --no-default-features |
|
|
$(DEBUG_OVERFLOW_INFO) cargo nextest run --profile default --release --no-default-features |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: test |
|
|
.PHONY: test |
|
|
test: test-default test-no-default ## Run all tests
|
|
|
|
|
|
|
|
|
test: test-default test-no-std ## Run all tests
|
|
|
|
|
|
|
|
|
# --- checking ------------------------------------------------------------------------------------
|
|
|
# --- checking ------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
@ -64,7 +64,7 @@ check: ## Check all targets and features for errors without code generation |
|
|
# --- building ------------------------------------------------------------------------------------
|
|
|
# --- building ------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
.PHONY: build |
|
|
.PHONY: build |
|
|
build: ## By default we should build in release mode
|
|
|
|
|
|
|
|
|
build: ## Build with default features enabled
|
|
|
cargo build --release |
|
|
cargo build --release |
|
|
|
|
|
|
|
|
.PHONY: build-no-std |
|
|
.PHONY: build-no-std |
|
|