Thank you for considering contributing to OpenFeature Rust SDK! We appreciate your help and look forward to collaborating with you.
Here are the key steps for contributing to the OpenFeature Rust SDK:
-
Fork the Repository: Create a personal fork of the repository on GitHub.
-
Clone Your Fork:
mkdir open-feature cd open-feature git clone https://github.com/YOUR_GITHUB_USERNAME/rust-sdk.git cd rust-sdk
-
Create a Branch: Create a new branch with a name that follows the recommended convention:
git checkout -b <prefix>/<gh-issue-number>
- If there is a corresponding GitHub issue number, include it in the branch name.
- Otherwise, name the branch meaningfully, using hyphens to replace spaces.
- Use the following prefixes based on the type of change:
- 🐛 Bug Fixes:
fix/<description>
orfix/<issue-number>
- ✨ New Features:
feat/<description>
orfeat/<issue-number>
- 🧹 Chore:
chore/<description>
orchore/<issue-number>
- 📚 Documentation:
docs/<description>
ordocs/<issue-number>
- 🚀 Performance:
perf/<description>
orperf/<issue-number>
- 🛠️ Build:
build/<description>
orbuild/<issue-number>
- 📦 Dependencies:
deps/<description>
ordeps/<issue-number>
- 🚦 CI:
ci/<description>
orci/<issue-number>
- 🔄 Refactoring:
refactor/<description>
orrefactor/<issue-number>
- 🔙 Reverts:
revert/<description>
orrevert/<issue-number>
- 🎨 Styling:
style/<description>
orstyle/<issue-number>
- 🧪 Tests:
test/<description>
ortest/<issue-number>
- 🐛 Bug Fixes:
-
Make Changes: Implement your changes or additions to the codebase.
-
Commit Changes: Stage your changes and commit them with a descriptive message.
-
Push to Your Fork: Push your branch to your forked repository.
-
Create a Pull Request: Open a pull request from your forked repository to the main OpenFeature Rust SDK repository.
-
Address Feedback: If there are any comments or requested changes, address them in your branch and push the updates.
-
Merge: Once your pull request is approved, it will be merged into the main repository.
To set up your development environment, ensure you have the following installed:
After installing Rust, you can verify your installation with following command:
rustc --version
After installing Cargo, you can verify your installation with following command:
cargo --version
To build the project, execute the following command:
cargo build
To test the project, execute the following command:
cargo test
To build documentation for the project, execute the following command:
cargo doc
To run the project, execute the following command:
cargo run
Thank you 🙏 for your interest and support! Your contributions help us improve and grow 🌱 the OpenFeature Rust SDK. We truly appreciate your time and effort in making our project better. If you have any questions or need assistance, please don’t hesitate to reach out on Slack in the #openfeature-rust channel!