mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-03 15:07:47 +00:00
1.6 KiB
1.6 KiB
Contributing to AlterWare Launcher
We welcome contributions to the AlterWare Launcher! Here are some guidelines to follow:
Note
Always run
cargo fmtandcargo clippyto ensure your code is formatted correctly and passes lint checks.
Prerequisites
- Rust - Install the latest stable version
- Git - For cloning the repository
- Perl - [Linux only] Required for OpenSSL
Build Steps
-
Clone the repository:
git clone https://github.com/alterware/alterware-launcher.git cd alterware-launcher -
Build the project:
cargo build --release -
Find the executable: The compiled binary will be located at
target/release/alterware-launcher(.exe)
Additional Notes
- Structs generally go in
src/structs.rs - Try to follow the existing coding style, make use of
cargo fmtandcargo clippyto ensure consistency - Use existing formatting, printing and helper functions when possible (see
src/misc.rsandsrc/extend.rs) - Unit tests go in
src/tests.rs - Make sure your code compiles on Windows and Unix targets
- The GitHub Actions currently only run on Linux
- You can use these to check for errors on unix platforms
- You have to verify your code on Windows manually
- The GitHub Actions currently only run on Linux
- For debugging, you can use
cargo buildwithout the--releaseflag. The debug build will be slower but includes additional debugging information. - To run tests, use
cargo test
License
By contributing to AlterWare Launcher, you agree that your contributions will be licensed under the GPLv3 license.