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:
18
justfile
18
justfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user