Skip to content
[env]
PORT = "8090"
ADMIN_PIN = "123456"
DUCKDB_PATH = "pokedex.duckdb"
SQLITE_PATH = "battles.db"
CACHE_CONTROL = "no-cache"
RESET_DB = "true"

[tools]
rust = { version = "1.97" }

[tasks.run]
description = "Run the Pokedex application server"
run = "cargo run"

[tasks.check]
description = "Check project compilation"
run = "cargo check"

[tasks.clippy]
description = "Run pedantic clippy linter"
run = "cargo clippy --all-targets"

[tasks.test]
description = "Run test suite"
run = "cargo test"

[tasks.fmt]
description = "Format code and apply clippy fixes"
run = ["cargo fmt", "cargo clippy --fix --all-targets --allow-dirty"]

[tasks.verify]
description = "Full quality verification: format check, clippy, and tests"
run = ["cargo fmt --check", "cargo clippy --all-targets", "cargo test"]

[tasks.watch]
description = "Watch source files and auto-reload on changes"
run = "watchexec --exts rs,css,js,json -r cargo run"