Contributing
We love contributions from our community! This guide explains how to get involved and contribute to CocoIndex.
Setting Up Development Environment
-
Install Rust toolchain: docs
-
(Optional) Setup and activate python virtual environment
virtualenv --python=$(which python3.12) .venv
. .venv/bin/activate -
Install maturin
pip install maturin
-
Build the library
maturin develop
-
(Optional) Before running a specific example, set extra environment variables, for exposing extra traces, allowing dev UI, etc.
. .env.lib_debug
Submit Your Code
To submit your code:
- Fork the CocoIndex repository
- Create a new branch on your fork
- Make your changes
- Open a Pull Request (PR) when your work is ready for review
In your PR description, please include:
- Description of the changes
- Motivation and context
- Test coverage details
- Note if it's a breaking change
- Reference any related GitHub issues
A core team member will review your PR within one business day and provide feedback on any required changes. Once approved and all tests pass, the reviewer will squash and merge your PR into the main branch.
Your contribution will then be part of CocoIndex! We'll highlight your contribution in our release notes 🌴.