mirror of
https://github.com/lucaspalomodevelop/binbreak.git
synced 2026-03-13 00:07:28 +00:00
* chore: remove unnecessary needs_render checks from game logic * chore: remove needs_render flag and related logic from game state * chore: add rustfmt configuration file for consistent formatting * chore: clean up imports and formatting in app.rs, binary_numbers.rs, main_screen_widget.rs, rustfmt.toml, and utils.rs * chore: remove outdated comment from binary_numbers.rs * chore: remove outdated comments from binary_numbers.rs * chore: extract game over rendering logic into a separate function * run clippy fix * chore: add Clippy configuration files for linting thresholds * run clippy fix * chore: allow clippy warnings in selected places. check fix later * docs: add command docs for linting and formatting * docs: add command docs for linting and formatting * split BinaryNumbersPuzzle.render_ref into several sub functions for rendering different areas. * chore: adjust clippy lint levels to allow certain patterns * chore: add CI configuration with testing, clippy, and formatting jobs * cargo fmt * chore: simplify clippy and formatting commands in CI configuration * chore: consolidate cargo caching in CI configuration * chore: replace cargo caching with rust-cache action in CI configuration * chore: use is_multiple_of for streak check in score calculation * chore: simplify game over check in render logic
51 lines
1.3 KiB
TOML
51 lines
1.3 KiB
TOML
[package]
|
|
name = "binbreak"
|
|
version = "0.1.0"
|
|
description = "A terminal based binary number guessing game"
|
|
authors = ["William Raendchen <william@holonaut.io>"]
|
|
license = "MIT"
|
|
edition = "2024"
|
|
repository = "https://github.com/epic-64/binbreak"
|
|
readme = "README.md"
|
|
keywords = ["tui", "terminal", "game", "binary", "numbers"]
|
|
categories = ["games", "command-line-utilities"]
|
|
documentation = "https://docs.rs/binbreak"
|
|
homepage = "https://github.com/epic-64/binbreak"
|
|
exclude = ["binbreak_highscores.txt", "target/*", ".github/*"]
|
|
|
|
[dependencies]
|
|
crossterm = "0.29.0"
|
|
ratatui = "0.29.0"
|
|
indoc = "2.0.7"
|
|
color-eyre = "0.6.3"
|
|
rand = "0.9.1"
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
unused_must_use = "warn"
|
|
unused_imports = "warn"
|
|
dead_code = "warn"
|
|
|
|
[lints.clippy]
|
|
# Lint groups - enable comprehensive checking
|
|
pedantic = { level = "allow", priority = -1 }
|
|
nursery = { level = "allow", priority = -1 }
|
|
correctness = { level = "deny", priority = -1 }
|
|
all = { level = "warn", priority = -1 }
|
|
|
|
# Allow certain common patterns
|
|
match_same_arms = "allow"
|
|
|
|
# Complexity warnings (thresholds in clippy.toml)
|
|
cognitive_complexity = "warn"
|
|
too_many_arguments = "warn"
|
|
too_many_lines = "warn"
|
|
type_complexity = "warn"
|
|
struct_excessive_bools = "warn"
|
|
fn_params_excessive_bools = "warn"
|
|
|
|
# Style preferences - encourage safer code
|
|
enum_glob_use = "warn"
|
|
unwrap_used = "warn"
|
|
expect_used = "warn"
|