Rust 1.85.0 + Rust 2024 Edition (#68)

- Add `rust-toolchain.toml`
- Refactor `flake` to consider `rust-toolchain.toml`, especially Rust version
- `just`: Add run-sound command
- Ignore sound files
- Format
This commit is contained in:
Jens Krause
2025-02-25 20:30:20 +01:00
committed by GitHub
parent e094d7d81b
commit 3d9b235f12
15 changed files with 63 additions and 45 deletions

View File

@@ -6,32 +6,42 @@ default:
@just --list
alias b := build
alias f := format
alias l := lint
alias t := test
alias r := run
# build app
build:
cargo build
alias t := test
# run tests
test:
cargo test
alias f := format
# format files
format:
just --fmt
cargo fmt
alias l := lint
# lint
lint:
cargo clippy --no-deps
alias r := run
# run app
run:
cargo run
alias rs := run-sound
# run app while sound feature is enabled. It expects a path to a sound file.
run-sound path:
cargo run --features sound -- --sound={{ path }}
# demos
alias dp := demo-pomodoro