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. The project uses the nightly toolchain for Rust, specifically nightly-2024-02-01
. We also use a workspace structure with multiple crates.
-
Clone the Repository
git clone https://github.com/rpcpool/yellowstone-vixen.git cd yourproject
-
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. Once Rust is installed, set the toolchain to
nightly-2024-02-01
.rustup toolchain install nightly-2024-02-01 rustup override set nightly-2024-02-01
-
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
crates
directory. Use thecrates/test
crate to try out and verify your changes. -
Format Your Code
Ensure that your code is properly formatted. We use
rustfmt
for formatting.cargo fmt
-
Run Clippy
Run Clippy to catch common mistakes and ensure code quality.
cargo clippy
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.