Thank you for your interest in contributing to Mango. We welcome all contributions that help improve the project. This guide outlines how you can get involved and key coding conventions to follow.
- Fork & Clone – Fork the repository and clone it locally.
- Set Up – Install dependencies and configure your environment using the Developer Guide.
- Choose an Issue – Check the issue tracker for open tasks or propose your own.
- Work on Changes – Create a new branch for your contribution.
- Commit & Push – Follow best practices for commit messages and push your branch.
- Submit a Pull Request (PR) – Open a PR with a clear description of your changes.
- Use
rustfmtfor formatting andcargo clippyfor linting. - Handle errors gracefully using
ResultandOption. - Keep the code safe and efficient, adhering to Rust’s memory safety features.
- Use explicit types where necessary and keep code readable.
- Ensure safety and clarity, especially in smart contract logic.
- Write tests and provide documentation where applicable.
- Follow Coding Standards – Stick to the Rust and Move best practices outlined above.
- Keep PRs Focused – One feature or fix per PR to make reviews easier.
- Respect Feedback – Be open to code reviews and constructive criticism.
- Security & Privacy – Avoid exposing sensitive data in commits or discussions.
If you find a bug or have a feature request:
- Check if it’s already reported in our Discord.
- If not, open a new issue with a clear title and detailed description.
- Provide steps to reproduce, expected behavior, and screenshots if applicable.
Join the discussion on Discord or reach out via Telegram for any questions.
By contributing, you agree to follow the Code of Conduct. We appreciate your support in making Mango better.