Development workflow
1. Fork and clone
Fork the repository on GitHub, then clone your fork:2. Create a branch
Create a feature branch for your changes:3. Make changes
Edit code, add tests, and update documentation as needed.4. Run quality checks
Before committing, ensure your code passes all checks:5. Commit and push
Commit your changes with a descriptive message:6. Open a pull request
Go to the hline repository and open a pull request from your branch.Code quality requirements
All contributions must meet these standards:Formatting
Code must be formatted withrustfmt:
cargo fmt --all to auto-format.
Linting
Code must pass Clippy with no warnings:Tests
All tests must pass:Code style guidelines
Follow the existing code style in the repository:- Match the Rust style used in existing files
- Use descriptive variable and function names
- Add comments for complex logic
- Keep functions focused and reasonably sized
- Follow Rust naming conventions:
snake_casefor functions and variablesPascalCasefor types and traitsSCREAMING_SNAKE_CASEfor constants
Pull request process
- Ensure CI passes: All GitHub Actions checks must pass
- Keep PRs focused: One feature or fix per pull request
- Update documentation: Add or update docs for new features
- Write clear descriptions: Explain what your PR does and why
- Respond to feedback: Address review comments promptly
Reporting issues
Found a bug or have a feature request? Open an issue on the GitHub repository. When reporting bugs, include:- Steps to reproduce
- Expected behavior
- Actual behavior
- Environment details (OS, Rust version, etc.)
License
By contributing to hline, you agree that your contributions will be licensed under the MIT License. See theLICENSE file for the full license text.