Thank you for your interest in contributing to Yellowstone Vixen! This guide will help you get started with setting up your development environment and contributing code.
- Getting Started
- Setting Up Your Environment
- Making Changes
- Running Tests
- Submitting Changes
- Code of Conduct
To contribute to this project, you'll need to have Rust installed on your machine. This project builds successfully with the latest stable Rust, and also with the latest nightly. We also use a workspace structure with multiple crates.
-
Clone the Repository
git clone https://github.com/rpcpool/yellowstone-vixen.git cd yellowstone-vixen -
Install Rust and Set the Toolchain
If you haven't installed Rust yet, you can do so by following the instructions on the Rust website.
-
Build the Project
Ensure that you can build the project successfully.
cargo build
-
Create a Branch
Create a new branch for your work. Use a descriptive name for the branch.
git checkout -b my-feature-branch
-
Make Your Changes
Make your changes in the appropriate crate(s) within the
cratesdirectory. Use thecrates/testcrate to try out and verify your changes. -
Format Your Code
Ensure that your code is properly formatted. We use
rustfmtwith nightly toolchain for formatting.cargo +nightly fmt --all
-
Run Clippy
Run Clippy to catch common mistakes and ensure code quality.
cargo clippy --all-targets --tests -- -Dwarnings
Before submitting your changes, make sure all tests pass.
cargo test-
Commit Your Changes
Commit your changes with a descriptive commit message.
git add . git commit -m "Add my new feature"
-
Push Your Changes
Push your changes to your fork.
git push origin my-feature-branch
-
Open a Pull Request
Go to the repository on GitHub and open a pull request. Provide a clear description of the changes you have made and the problem they solve.
Please note that this project is released with a CODE_OF_CONDUCT.md. By participating in this project you agree to abide by its terms.
Thank you for contributing to our project! If you have any questions, feel free to ask. We appreciate your efforts in improving the project.