Progetto "Piastrelle" del corso di Algoritmi e Strutture Dati... in rust 🦀.
-
Run/Build:
- debug run:
cargo run < yourinput.txt
(slow!) - optimized run:
cargo build --release
,./target/release/piastrelle < yourinput.txt
- debug run:
-
Test:
- all tests:
cargo test --release
- unit tests:
cargo test --release unit_tests
- input/output tests:
cargo test --release io_tests
(tests all inputs ininputs/
)
- all tests:
-
Clean:
- format code:
cargo fmt
- check code (best practices, ...):
cargo clippy --all-targets --all-features -- -D warnings
- remove all old artifacts (compiled binaries, ...):
cargo clean
- format code: