Welcome to Aria!
First of all, thank you for considering contributing to Aria! We’re excited you’re here.
Whether you’re fixing bugs, writing tests, or improving documentation, every contribution counts. Your help makes Aria better for everyone!
This document provides guidelines to help you get started.
There are many ways to contribute, and all of them are valuable.
Some issues are labeled good starter bugs or help wanted. If you’re looking to start contributing to Aria, these could be great starting places.
Ready to dive in? Here’s how to set up your environment and submit your first pull request.
git clone https://github.com/YOUR_USERNAME/aria.git
cd aria
Before you do anything else, review the Getting Started section in README.md. It should give you a compiled build of Aria and a passing test suite.
Once you know you’re in a happy steady state, create a new branch for your changes. Please choose a descriptive name. If you’re working on an existing issue, it’s helpful to include the issue number in the branch name.
# Example for fixing issue #42
git checkout -b fix-issue-42-json-parsing-error
We recommend installing the pre-commit hooks, as they automatically run checks on your code to ensure that it adheres to the project’s style and quality standards.
Now you’re ready to make your changes!
The Aria compiler and VM are written in Rust, as are some core parts of the Aria standard library. Most of the Aria standard library is written in Aria itself, and you should be able to make meaningful contributions to it with minimal to no Rust expertise.
rustfmt (which is run automatically by the pre-commit hooks if you install them). For Aria code, please observe the style in surrounding files.tests/ directory. This is crucial for maintaining the quality of the project.Once your changes are ready, it’s time to submit a pull request.
Commit your changes with a clear and descriptive commit message.
git commit
(in your text editor of choice)
Fix an issue with parsing nested lists in JSON
When a nested JSON list was being parsed, the parser state was incorrectly
set to look for a { instead of ]. Fix this by keeping track of the nesting
structure correctly.
Fixes #42
There is no specific required format, as long as your commit message describes what you changed and (perhaps more importantly why you changed it), and adds a Fixes tag, if your patch is fixing a GitHub issue.
./tree_check.sh
The GitHub CI will run the same checks, and will reject your pull request if they fail, but it’s faster to catch issues locally before pushing. If you need help with any of the checks, please leave a comment on your pull request and a project maintainer will assist you.
git push origin fix-issue-42-json-parsing-error
Go to the original Aria repository on GitHub and open a pull request. If you use the github tool, gh pr create will also guide you through some of these steps.
Thank you again for your contribution. It’s an exciting time for Aria, and we’re happy to have you on board!