A fun and interactive number guessing game written in Rust, featuring Ferris the Crab!
- Language: Rust (1.85.0)
- Build Tool: Cargo
- Dependency Management: Cargo
- Toolchain Management: Mise-en-place (mise)
- Code Formatting: rustfmt
- Linting: clippy
- Install mise for toolchain management
- Git for version control
-
Clone the repository:
git clone https://github.com/Brisinger/guess-with-ferris.git cd guess-with-ferris -
Install project dependencies using mise:
mise install
-
Ensure you're using the correct Rust version:
mise use
-
Build the project:
cargo build
-
Run the game:
cargo run
The project includes several predefined tasks in mise.toml:
mise run format: Format the code using rustfmtmise run lint: Run clippy for lintingmise run build: Build the release binarymise run ci: Run all CI checks (format, lint, build)
-
Ensure all dependencies are installed:
mise install
-
Build the optimized release binary:
mise run build
-
The binary will be available at
target/release/guessing_game
Mise ensures consistent development environments by:
- Managing Rust toolchain versions
- Enforcing consistent tooling versions across the team
- Providing reproducible builds
guess-with-ferris/
├── src/ # Source code
├── scripts/ # Utility scripts
├── .github/workflows/ # CI/CD configuration
├── Cargo.toml # Project manifest
└── mise.toml # Toolchain configuration
The Cargo.toml file is the manifest for your Rust project:
[package]
name = "guessing_game"
version = "0.1.0"
edition = "2024"
dependencies = [
"rand = \"0.8.5\""
]-
[package]:name: The name of your packageversion: Current version (follows semantic versioning)edition: Rust edition (2024 in this case)
-
[dependencies]:- Lists all external crates your project depends on
- Version requirements can be specified using semantic versioning
Mise is used to manage the Rust toolchain and other development tools. The configuration is in mise.toml:
[tools]
"rust" = { version = "1.85.0", profile = "default" }- Automatic Tool Installation: Mise will automatically install the specified Rust version
- Per-project Toolchains: Different projects can use different Rust versions
- Reproducible Builds: Ensures everyone uses the same tool versions
# Install all tools specified in mise.toml
mise install
# Use the tools specified in the current directory
mise use
# Show current tool versions
mise which rustc
mise which cargo- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is licensed under the Apache License 2.0.
Copyright 2025 Shubhojit Dasgupta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Made with ❤️ and 🦀