Contributing to jwt-hack
June 4, 2025 · View on GitHub
Thank you for your interest in contributing to jwt-hack! This document provides guidelines and instructions for contributing to this project.
Code of Conduct
By participating in this project, you agree to abide by our Code of Conduct.
Getting Started
Prerequisites
- Rust and Cargo installed (latest stable version recommended)
- Git
Development Setup
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/YOUR-USERNAME/jwt-hack.git cd jwt-hack - Create a branch for your work:
git checkout -b features/your-feature-name # or git checkout -b bugfix/issue-description
Building and Testing
To build the project:
cargo build
To run tests:
cargo test
Git Branch Strategy
We use a straightforward branching strategy where feature and bugfix branches are merged directly into the main branch:
features/feature-name→main: For new features and enhancementsbugfix/issue-description→main: For bug fixes
Please follow this naming convention for your branches to make the purpose of your contribution clear.
Pull Request Process
-
Create your pull request:
- Ensure your code builds without errors
- Make sure all tests pass
- Update documentation if needed
- Include clear and concise commit messages
- Reference any related issues with
#issue-number
-
PR Description:
- Provide a clear description of the changes
- Include the motivation for the change
- Describe any potential side effects or areas that might be affected
- Add screenshots if your change affects the UI
-
Code Review:
- The maintainers will review your code
- Be responsive to feedback and make necessary changes
- Your PR will be merged once it meets the project standards
Style Guidelines
Rust Code Style
- Follow the Rust API Guidelines
- Use
cargo fmtto format your code before committing - Run
cargo clippyand address any warnings
Commit Messages
- Use clear, concise commit messages
- Start with a verb in the present tense (e.g., "Add feature" not "Added feature")
- Reference issue numbers when applicable (e.g., "Fix #123: Memory leak in URL parser")
Documentation
- Update the README.md if you add or change functionality
- Add comments to your code where necessary
- Document any new public APIs
Feature Requests and Bug Reports
- Use GitHub Issues to submit feature requests and bug reports
- Clearly describe the issue or feature
- For bugs, include steps to reproduce, expected behavior, and actual behavior
- If possible, provide a minimal code example that demonstrates the issue
License
By contributing to jwt-hack, you agree that your contributions will be licensed under the same MIT License that covers the project.
Thank you for contributing to jwt-hack! Your efforts help make this tool better for everyone.