Thank you for your interest in contributing to api.zig! We welcome contributions from the community.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/api.zig.git - Create a branch:
git checkout -b feature/my-feature
Make sure you have Zig 0.15.0 or later installed:
zig versionBuild and test:
zig build
zig build test- Write your code
- Add tests for new functionality
- Ensure all tests pass:
zig build test - Format your code (Zig's formatter is built-in)
- Use clear, descriptive commit messages
- Reference issues when applicable:
Fixes #123 - Keep commits focused on a single change
- Update documentation if needed
- Add tests for new features
- Ensure CI passes
- Request review from maintainers
- Follow Zig's standard style conventions
- Use meaningful variable and function names
- Add doc comments for public functions using
/// - Add module documentation using
//!
- Use the issue templates provided
- Include Zig version and OS
- Provide minimal reproduction steps
By contributing, you agree that your contributions will be licensed under the MIT License.
Open a discussion or issue on GitHub.
Thank you for contributing! 🎉