Want to contribute? Great!
All contributions are more than welcome ! This includes bug reports, bug fixes, enhancements, features, questions, ideas, and documentation.
This document will hopefully help you contribute to Argus Capture.
- Legal
- Reporting an issue
- Setup your build environment
- Building the main branch
- Before you contribute
- Code reviews
- Coding Guidelines
- Discuss a Feature
- Development
- Code Style
All contributions to Argus Capture are licensed under the GNU General Public License v3.0.
This project uses GitHub issues to manage the issues. Open an issue directly in GitHub.
If you believe you found a bug, and it's likely possible, please indicate a way to reproduce it, what you are seeing and what you would expect to see. Don't forget to indicate your Argus Capture version.
For Red Hat RPM based distributions use the following command:
dnf install git rust rust-std-static cargo rustfmt clippy- You can install Rust using rustup
- Install MSYS2 and add it to your PATH. You can download it from MSYS2.
- Open the MSYS2 Blue terminal (not yellow or purple) and install the necessary dependencies.
pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-libgphoto2 mingw-w64-x86_64-clang
- Add the following environment variables to your system using the PowerShell.
$env:LIBCLANG_PATH = "C:\msys64\mingw64\bin"
$env:PKG_CONFIG_PATH = "C:\msys64\mingw64\lib\pkgconfig"
$env:PATH += ";C:\msys64\mingw64\bin"- Open a new terminal and run
cargo buildin the project directory to build the project.
In order to get the necessary dependencies.
To build the main branch:
git clone https://github.com/ArgusCapture/ArgusCapture.git
cd ArgusCapture
make build
cd target/debug
./argus-capture
and you will have a running instance.
To contribute, use GitHub Pull Requests, from your own fork.
Also, make sure you have set up your Git authorship correctly:
git config --global user.name "Your Full Name"
git config --global user.email your.email@example.com
We use this information to acknowledge your contributions in release announcements.
GitHub pull requests can be reviewed by all such that input can be given to the author(s).
See GitHub Pull Request Review Process for more information.
- Discuss the feature
- Do development
- Follow the code style
- Commits should be atomic and semantic. Therefore, squash your pull request before submission and keep it rebased until merged
- If your feature has independent parts submit those as separate pull requests
You can discuss bug reports, enhancements and features in our forum.
Once there is an agreement on the development plan you can open an issue that will used for reference in the pull request.
You can follow this workflow for your development.
Add your repository
git clone git@github.com:yourname/ArgusCapture.git
cd ArgusCapture
git remote add upstream https://github.com/ArgusCapture/ArgusCapture.git
Create a work branch
git checkout -b mywork main
During development
git commit -a -m "[#issue] My feature"
git push -f origin mywork
If you have more commits then squash them
git rebase -i HEAD~2
git push -f origin mywork
If the main branch changes then
git fetch upstream
git rebase -i upstream/main
git push -f origin mywork
as all pull requests should be squashed and rebased.
In your first pull request you need to add yourself to the AUTHORS file.
Please, follow the coding style of the project.
You can use the rustfmt tool to help with the formatting, by running
cargo fmt
and verify the changes.