Skip to content

Latest commit

 

History

History
111 lines (69 loc) · 2.76 KB

CONTRIBUTING.md

File metadata and controls

111 lines (69 loc) · 2.76 KB

Contributing Guide

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.

Table of Contents

  1. Getting Started
  2. Setting Up Your Environment
  3. Making Changes
  4. Running Tests
  5. Submitting Changes
  6. Code of Conduct

Getting Started

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.

Setting Up Your Environment

  1. Clone the Repository

    git clone https://github.com/rpcpool/yellowstone-vixen.git
    cd yourproject
  2. 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
  3. Build the Project

    Ensure that you can build the project successfully.

    cargo build

Making Changes

  1. Create a Branch

    Create a new branch for your work. Use a descriptive name for the branch.

    git checkout -b my-feature-branch
  2. Make Your Changes

    Make your changes in the appropriate crate(s) within the crates directory. Use the crates/test crate to try out and verify your changes.

  3. Format Your Code

    Ensure that your code is properly formatted. We use rustfmt for formatting.

    cargo fmt
  4. Run Clippy

    Run Clippy to catch common mistakes and ensure code quality.

    cargo clippy

Running Tests

Before submitting your changes, make sure all tests pass.

cargo test

Submitting Changes

  1. Commit Your Changes

    Commit your changes with a descriptive commit message.

    git add .
    git commit -m "Add my new feature"
  2. Push Your Changes

    Push your changes to your fork.

    git push origin my-feature-branch
  3. 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.

Code of Conduct

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.