binbreak
a terminal based binary number guessing game
File Explorer
- ci.yml
- demo.mp4
- sc1.png
- sc10.png
- sc11.png
- sc12.png
- sc13.png
- sc14.png
- sc2.png
- sc3.png
- sc4.png
- sc5.png
- sc6.png
- sc7.png
- sc8.png
- sc9.png
- signed-toggle.gif
- splash.gif
- app.rs
- binary_numbers.rs
- keybinds.rs
- main.rs
- main_screen_widget.rs
- utils.rs
- .gitignore
- build.sh
- Cargo.lock
- Cargo.toml
- clippy.toml
- LICENSE
- README.md
- rustfmt.toml
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
cargo build
View Details ▼
cargo build
Compile a local package and all of its dependencies.
cargo {{[b|build]}}
Build the package or packages defined by the `Cargo.toml` manifest file in the local path:
cargo {{[b|build]}} {{[-r|--release]}}
Build artifacts in release mode, with optimizations:
cargo {{[b|build]}} --locked
Require that `Cargo.lock` is up to date:
cargo clippy
View Details ▼
cargo clippy
A collection of lints to catch common mistakes and improve your Rust code.
cargo clippy
Run checks over the code in the current directory:
cargo clippy --locked
Require that `Cargo.lock` is up to date:
cargo clippy --workspace
Run checks on all packages in the workspace:
cargo fmt
View Details ▼
cargo fmt
Run `rustfmt` on all source files in a Rust project.
See also: `rustfmt`.
cargo fmt
Format all source files:
cargo fmt --check
Check for formatting errors without writing to the files:
cargo fmt -- {{rustfmt_args}}
Pass arguments to each `rustfmt` call:
cargo run
View Details ▼
cargo run
Run the current Cargo package.
Note: The working directory of the executed binary will be set to the current working directory.
cargo {{[r|run]}}
Run the default binary target:
cargo {{[r|run]}} --bin {{name}}
Run the specified binary:
cargo {{[r|run]}} --example {{name}}
Run the specified example:
cargo test
View Details ▼
cargo test
Execute the unit and integration tests of a Rust package.
cargo {{[t|test]}} {{test_name}}
Only run tests containing a specific string in their names:
cargo {{[t|test]}} -- --test-threads {{count}}
Set the number of simultaneous running test cases:
cargo {{[t|test]}} {{[-r|--release]}}
Test artifacts in release mode, with optimizations:
