init repository

This commit is contained in:
rmanach
2025-10-24 09:11:57 +02:00
commit d7474bce34
5 changed files with 44 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
VERSION := $(shell cargo info rs-optimg | grep "^version" | cut -d ' ' -f2 | xargs)
LOG_LEVEL := debug
show:
@echo "rsympa version: $(VERSION)"
lint:
cargo clippy --fix --allow-dirty
format:
cargo fmt --all
check: lint format
doc:
cargo doc -r --no-deps --open
run: check
RUST_LOG=$(LOG_LEVEL) cargo run - --debug
build: check
cargo build --release
test:
cargo test --no-fail-fast --lib --tests