redox/CONTRIBUTING.md

160 lines
7 KiB
Markdown
Raw Normal View History

2016-11-01 19:04:50 +01:00
# Contributing to Redox
2023-11-18 23:45:35 +01:00
**Thank you for your interest in contributing to Redox!**
This document will outline the basics of where to start if you wish to contribute to the project. There are many ways to help us out and and we appreciate all of them. We look forward to **your contribution!**
2016-11-01 19:04:50 +01:00
2023-02-28 09:52:59 +01:00
## Code Of Conduct
We follow the [Rust Code Of Conduct](https://www.rust-lang.org/policies/code-of-conduct).
2023-02-28 10:23:53 +01:00
## License
2023-11-18 23:45:35 +01:00
In general, your contributions to Redox are governed by the [MIT License](https://en.wikipedia.org/wiki/MIT_License). Each project repository has a `LICENSE` file that provides the license terms for that project.
2023-03-01 21:18:19 +01:00
Please review the LICENSE for the project you are contributing to.
2023-02-28 10:23:53 +01:00
2023-11-18 23:45:35 +01:00
On [this](https://doc.redox-os.org/book/ch01-02-philosophy.html) page we explain why we use the MIT license.
2023-02-28 10:23:53 +01:00
2023-03-02 23:09:50 +01:00
## Chat
Join us on [Matrix Chat](https://doc.redox-os.org/book/ch13-01-chat.html) to discuss issues or ask questions.
2024-02-12 17:47:27 +01:00
## Important Places to Contribute
2023-03-01 21:47:51 +01:00
2023-11-18 23:45:35 +01:00
(Before starting to contribute you **must** read the [FAQ](https://www.redox-os.org/faq/) and the [Redox Book](https://doc.redox-os.org/book/))
2023-05-22 00:12:51 +02:00
2023-11-18 23:45:35 +01:00
You can contribute to the Redox documentation and code on these repositories:
2023-03-01 21:47:51 +01:00
(The order is based on difficulty, easy things first)
- [Website](https://gitlab.redox-os.org/redox-os/website)
2024-02-12 17:47:27 +01:00
- [Book](https://gitlab.redox-os.org/redox-os/book) - High-level documentation
2023-11-18 23:45:35 +01:00
- [Build System Configuration](https://gitlab.redox-os.org/redox-os/redox) - Our main repository
2024-02-12 17:47:27 +01:00
- [Cookbook](https://gitlab.redox-os.org/redox-os/cookbook) - Ports system
- [Orbital](https://gitlab.redox-os.org/redox-os/orbital) - Display server and window manager
- [Package Manager](https://gitlab.redox-os.org/redox-os/pkgutils)
2023-11-18 23:45:35 +01:00
- [relibc](https://gitlab.redox-os.org/redox-os/relibc) - Redox C Library
2024-02-12 17:47:27 +01:00
- [Drivers](https://gitlab.redox-os.org/redox-os/drivers) - Device daemons
2023-03-01 21:47:51 +01:00
- [Kernel](https://gitlab.redox-os.org/redox-os/kernel)
2024-02-12 17:47:27 +01:00
### Skill Levels
2016-11-01 19:04:50 +01:00
2023-11-18 23:45:35 +01:00
If you aren't fluent in Rust:
2023-11-18 23:45:35 +01:00
- Write documentation
2024-02-12 17:47:27 +01:00
- Use and test Redox, fill issues for bugs or needed features (please verify the repository issues before)
- Web development on the website (we don't accept JavaScript code)
2023-11-18 23:45:35 +01:00
- Write unit tests (may require minimal knowledge of Rust)
2023-11-18 23:45:35 +01:00
If you are fluent in Rust, but not operating system Development:
2024-02-12 17:47:27 +01:00
- Improve the Orbital display server and window manager.
2023-11-18 23:45:35 +01:00
- Port programs written in Rust to Redox (in most cases you need to port crates, be aware of missing functions on relibc, porting without these functions will make patches dirty)
2024-02-12 17:47:27 +01:00
- Improve the program compatibility in relibc
- Improve the package manager
- Improve the [Ion](https://gitlab.redox-os.org/redox-os/ion) shell
2023-11-18 23:45:35 +01:00
If you are fluent in Rust, and have experience with operating system development:
2024-02-12 17:47:27 +01:00
- Familiarize yourself with the repository and code
2023-11-18 23:45:35 +01:00
- Grep for `TODO`, `FIXME`, `BUG`, `UNOPTIMIZED`, `REWRITEME`, `DOCME`, and `PRETTYFYME` and fix the code you find
2024-02-12 17:47:27 +01:00
- Update old code to remove warnings
2023-11-18 23:45:35 +01:00
- Improve and optimize code, especially in the kernel
2024-02-12 17:47:27 +01:00
- Write device drivers
For those who want to contribute to the Redox GUI, our GUI strategy has recently changed.
2024-02-12 17:47:27 +01:00
- We are improving the [Orbital](https://gitlab.redox-os.org/redox-os/orbital) display server and window manager, you can read more about it on [this](https://gitlab.redox-os.org/redox-os/redox/-/issues/1430) tracking issue.
- Redox is in the process of adopting other Rust-written GUI toolkits, such as [Iced](https://iced.rs) and [Slint](https://slint-ui.com/). Please check out those projects if this is your area of interest.
2023-11-18 23:45:35 +01:00
- OrbTk is in maintenance mode, and its developers have moved to other projects such as the ones below. There is currently no Redox-specific GUI development underway.
2023-03-07 03:39:20 +01:00
2023-11-18 23:45:35 +01:00
## Tracking Issues Index
2024-02-12 17:47:27 +01:00
We use an index to track the development priorities, you can find them on [this](https://gitlab.redox-os.org/redox-os/redox/-/issues/1384) page.
2023-03-07 03:39:20 +01:00
## Build System
To download the build system use the following commands:
(You need to have [curl](https://curl.se/) installed on your system)
```sh
curl -sf https://gitlab.redox-os.org/redox-os/redox/raw/master/bootstrap.sh -o bootstrap.sh
```
```sh
time bash -e bootstrap.sh
```
To start the compilation of the default recipes run the command below:
```sh
make all
```
You can find the build system organization and commands on [this](https://doc.redox-os.org/book/ch08-06-build-system-reference.html) page.
2023-12-07 21:01:51 +01:00
## Developer FAQ
You can see the most common questions and problems on [this](https://doc.redox-os.org/book/ch09-07-developer-faq.html) page.
## Porting Software
2023-11-18 23:45:35 +01:00
You can read how to use the Cookbook recipe system to port applications on [this](https://doc.redox-os.org/book/ch09-03-porting-applications.html) page.
2023-12-07 21:01:51 +01:00
## Libraries and APIs
2023-08-21 17:31:52 +02:00
2023-12-07 21:01:51 +01:00
You can read [this](https://doc.redox-os.org/book/ch09-06-libraries-apis.html) page to learn about the libraries and APIs used in Redox.
2023-08-21 17:31:52 +02:00
## Development Tips
2023-11-18 23:45:35 +01:00
You can find important tips on [this](https://doc.redox-os.org/book/ch09-02-coding-and-building.html#development-tips) section.
2023-12-07 21:01:51 +01:00
## References
We maintain a list of wikis, articles and videos to learn Rust, OS development and computer science on [this](https://doc.redox-os.org/book/ch09-08-references.html) page.
If you are skilled there's a possibility that they could improve your knowledge in some way.
2023-02-28 09:52:59 +01:00
## Best Practices and Guidelines
2023-11-18 23:45:35 +01:00
You can read the best practices and guidelines on [this](https://doc.redox-os.org/book/ch11-00-best-practices.html) chapter.
2016-11-01 19:04:50 +01:00
## Style Guidelines
2016-11-01 19:04:50 +01:00
### Rust
2016-11-01 19:04:50 +01:00
2023-11-18 23:45:35 +01:00
Since **Rust** is a relatively small and new language compared to others like C and C++, there's really only one standard. Just follow the official Rust standards for formatting, and maybe run `rustfmt` on your changes, until we setup the CI system to do it automatically.
2016-11-01 19:04:50 +01:00
### Git
2016-11-01 19:04:50 +01:00
2023-11-18 23:45:35 +01:00
Please follow our [Git style](https://doc.redox-os.org/book/ch12-04-creating-proper-pull-requests.html) for pull requests.
2023-03-01 01:07:12 +01:00
## GitLab
### Issues
2023-11-18 23:45:35 +01:00
To know how to create issues on the Redox GitLab, read [this](https://doc.redox-os.org/book/ch12-05-filing-issues.html) page.
2023-03-01 01:07:12 +01:00
### Pull Requests
2023-11-18 23:45:35 +01:00
Please follow [our process](https://doc.redox-os.org/book/ch12-04-creating-proper-pull-requests.html) for creating proper pull requests.
2023-03-01 01:07:12 +01:00
## Other Ways to Contribute
2016-11-01 19:04:50 +01:00
2023-11-18 23:45:35 +01:00
If you aren't good on coding, but you still want to help keep the project going, you can contribute and support in a variety of ways! We'll try to find a way to use anything you have to offer.
### Design
2023-11-18 23:45:35 +01:00
If you're a good designer, whether it's 2D graphics, 3D graphics, interfaces, web design, you can help. We need logos, UI design, UI skins, app icons, desktop backgrounds, etc.
- [Redox backgrounds](https://gitlab.redox-os.org/redox-os/backgrounds) - You can send your wallpapers on this repository.
- [Redox assets](https://gitlab.redox-os.org/redox-os/assets) - You can send your logos, icons and themes on this repository.
If you have questions about the graphic design, ask us on the [Chat](https://doc.redox-os.org/book/ch13-01-chat.html).
2023-02-28 09:52:59 +01:00
### Donate to Redox
2023-11-18 23:45:35 +01:00
If you are interested in donating to the Redox OS Nonprofit, you can find instructions [here](https://www.redox-os.org/donate/).